Strategy · Pine Script v6 · On the chart

Adaptive Strategy

by Studentcodee

This adaptive strategy combines multiple classic technical indicators into a unified framework to generate trading signals on the price chart.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code698
Settings29inputs
LicenceNone stated
Last update1 year ago27 May 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Adaptive Strategy evaluates conditions across Moving Average crossovers, Donchian channel breakouts, MACD, RSI, Bollinger Bands, Parabolic SAR, Pivot Points, Supertrend, Keltner Channels, and Stochastic oscillators. Settings allow fine-tuning of periods, multipliers, and overbought or oversold thresholds for each sub-system. A notable limitation is that it repaints on live tick updates and features no default stop loss management.

Details

Published by

Studentcodee on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Oscillators & momentum, Moving averages, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Slippage (ticks), при сравнении стратегийfloat2slippage
Commission (%), при сравнении стратегийfloat0.05commPct
Fast MA Lengthint5fastLen
Slow MA Lengthint12slowLen
Channel Lengthint10chanLen
MACD Fast Lengthint20macdFast
MACD Slow Lengthint34macdSlow
MACD Signal Lengthint12macdSignalLp
RSI Lengthint21rsiLen
RSI Oversoldint40rsiOS
RSI Overboughtint80rsiOB
BB Lengthint30bbLen
Show all 29 settings
SettingTypeDefaultVariable
BB Multiplierfloat3bbMult
SAR Startfloat0.02start
SAR Incrementfloat0.02increment
SAR Max AFfloat0.2maximum
Pivot Lookback Leftint8pivLeft
Pivot Lookback Rightint4pivRight
Supertrend ATR Lengthint10stATR
Supertrend Factorfloat3.0stFactor
KC Lengthint20kcLen
KC Multiplierfloat2.0kcMult
KC SourcesourceclosekcSrc
KC Use EMAbooltruekcExpMA
KC Bands StylestringAverage True RangekcBands
KC ATR Lengthint10kcATRLn
Stoch Lengthint7ssLen
Stoch Overboughtint70ssOB
Stoch Oversoldint15ssOS
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

ADA4H Optuna Strategy

by skywalker0803r
42 stars

This strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of ADA4H Optuna Strategy

Edge 59

by subos2008
6 stars

Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 59

AG Momentum Breakout

by eltonaguiar
4 stars

AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th

Strategy v6 TrendOscillators & momentum
Updated today · None stated GitHub repository of AG Momentum Breakout
4 stars

Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Christian Qullamaggie Strategy

RSI-7 Breakout

by aofwittawat
4 stars

This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a

Strategy v5 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of RSI-7 Breakout

RSI EMA Breakout

by latentwill
4 stars

This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position

Strategy v5 TrendOscillators & momentum
Updated 6 days ago · None stated GitHub repository of RSI EMA Breakout

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers