When the ADX indicates ranging conditions below a set threshold, it triggers entries on RSI overbought or oversold extremes. By default, the entry logic is inverted to buy overbought and sell oversold momentum. Positions are exited when the ADX rises above the threshold. Optional swing high and swing low stop losses and take profits padded by ATR can be enabled, but stop losses are disabled by default.
ADX range and trend regime filter
Short-term RSI overbought and oversold trigger
Reversible trade entry direction
Optional swing high and low stop loss and take profit
Automatic position closure on rising ADX trend strength
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Direction
int
0
direction
Use Swing Lo/Hi Stop Loss & Take Profit
bool
false
i_SL
Swing Lo/Hi Lookback
int
20
i_SwingLookback
SL Expander
int
0
i_SLExpander
TP Expander
int
0
i_TPExpander
Reverse Trades
bool
true
i_reverse
ADX Close
bool
true
i_ADXClose
OS
int
20
OS
OB
int
80
OB
ADX Smoothing
int
14
adxlen
DI Length
int
200
dilen
adxlevel
int
20
adxlevel
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.
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 combines a Simple Moving Average (SMA) and the Relative Strength Index (RSI) to generate long trading signals. It enters a long position when price closes above the SMA filter while RSI drops below the oversold threshold. The strategy exits the p
This strategy enters long when a series labeled ADX is above a threshold and RSI is below 40, and enters short when that series is above the threshold and RSI is above 60. Both series are calculated with the RSI function, so the trend filter is not a true ADX.
This strategy trades pullbacks in the direction of a moving-average trend and draws on the price chart. An uptrend requires the 50-period EMA above the 200-period EMA with price above the slower average, and a downtrend is the reverse. It enters long or short
Lucid 100K v5 is a Pine Script strategy for trading MES futures on 5-minute charts. It overlays buy and sell signals directly on the price chart. The strategy runs two phases based on equity and recent profit factor. Phase 1 uses trend pullback entries with EM
This strategy executes mean-reversion trades based on RSI overbought and oversold levels directly on the price chart. It generates long signals when the RSI crosses back above the oversold boundary and short signals when it crosses below the overbought boundar