1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
Advanced Swing Strategy v6 combines eight modular signal engines: EMA crossover pullbacks, price action breakouts, RSI momentum and divergence, MACD histogram flips, volume surges, candlestick patterns (such as pin bars), Supertrend flips, and Parabolic SAR with ADX trend filtering. Users can toggle individual modules and adjust indicator periods, thresholds, and tolerances. The architecture treats base indicators as raw signals designed for consensus filtering.
Modular toggle system for eight distinct signal engines
EMA crossover with customizable pullback tolerance
Price action breakout detection over configurable lookback
RSI momentum and divergence filtering
Parabolic SAR combined with ADX directional filter
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Enable EMA Crossover + Pullback
bool
true
useEMASignal
Enable Price Action Breakout
bool
true
useBreakoutSignal
Enable RSI Momentum
bool
true
useRSISignal
Enable MACD Histogram Flip
bool
true
useMACDSignal
Enable Volume Surge
bool
true
useVolumeSignal
Enable Candlestick Patterns
bool
true
useCandlestickSignal
Enable Supertrend Flip
bool
true
useSupertrendSignal
Enable Parabolic SAR + ADX
bool
true
useSarAdxSignal
Fast EMA
int
9
emaFastLen
Slow EMA
int
21
emaSlowLen
Pullback tolerance, %
float
0.5
emaPullbackPct
Breakout lookback
int
20
breakoutLen
Show all 30 settings
Setting
Type
Default
Variable
RSI Length
int
14
rsiLen
Bull RSI level
int
40
rsiBullLevel
Bear RSI level
int
60
rsiBearLevel
Simple divergence lookback
int
5
rsiDivLookback
MACD Fast
int
12
macdFastLen
MACD Slow
int
26
macdSlowLen
MACD Signal
int
9
macdSignalLen
Volume SMA
int
20
volumeMaLen
Volume surge multiplier
float
1.5
volumeSurgeMult
Pinbar: max body % of range
float
35.0
pinbarBodyMaxPct
Pinbar: min lead wick % of range
float
55.0
pinbarWickMinPct
Supertrend Factor
float
3.0
supertrendFactor
Supertrend ATR
int
10
supertrendAtrLen
SAR Start
float
0.02
sarStart
SAR Increment
float
0.02
sarInc
SAR Max
float
0.2
sarMax
ADX Length
int
14
adxLen
ADX Threshold
int
25
adxThreshold
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.
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
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
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
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
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
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