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
Entries trigger on momentum reversals across timeframe-specific overbought and oversold thresholds, filtered through configurable quality gates including an ATR rank filter, higher-timeframe exhaustion filter, and counter-trend range filter. Positions exit via ATR-based stop loss and take profit targets alongside an exit cooldown mechanism. Configurable settings include channel lengths, timeframe gates, session filters, and trade direction modes, overlaid directly on the price chart.
WaveTrend oscillator momentum reversal engine
Timeframe-specific overbought and oversold thresholds
Triple quality gates for ATR rank, HTF exhaustion, and range filtering
ATR-based dynamic stop loss and take profit execution
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Channel Length (chLen)
int
10
tn_chLen
Average Length (avgLen)
int
21
tn_avgLen
Signal Length (sigLen)
int
4
tn_sigLen
OB 15m
int
60
tn_ob_15m
OS 15m
int
-60
tn_os_15m
OB 1H
int
53
tn_ob_1h
OS 1H
int
-53
tn_os_1h
OB 4H
int
50
tn_ob_4h
OS 4H
int
-50
tn_os_4h
OB 1D
int
45
tn_ob_1d
OS 1D
int
-45
tn_os_1d
Gate A: ATR Rank band killer
bool
true
tn_gate_a
Show all 22 settings
Setting
Type
Default
Variable
Gate C: HTF exhaustion filter
bool
true
tn_gate_c
Gate G: Counter-trend range filter
bool
true
tn_gate_g
ATR Rank Length
int
50
tn_atr_rank_len
HTF (for exhaustion filter)
timeframe
240
tn_htf_tf
ATR Length
int
14
tn_atr_len
SL Multiplier
float
1.5
tn_sl_mult
TP Multiplier
float
3.0
tn_tp_mult
Cooldown (bars after exit)
int
5
tn_cooldown
Session Filter (empty=any)
session
0000-0000
tn_session
Direction Mode
string
Both
tn_direction
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.
Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
This strategy draws on the price chart and combines Stochastic RSI, the Money Flow Index, and an exponential moving average to open long or short trades. Longs use the lower oscillator thresholds and shorts use the upper ones, with direction limited to longs,
This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at
This strategy implements Larry Connors' 2-period RSI mean-reversion algorithm overlaid on the price chart. It filters trades using a long-term Simple Moving Average (SMA), entering long positions when the price trades above the SMA and the short-term RSI drops
This strategy combines multi-timeframe RSI analysis with exponential moving average filters to execute trades on price bounces. It evaluates daily and weekly RSI levels alongside pip-distance thresholds between fast, slow, and long-term EMAs. Position entries