Mean Reversion Strategy generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish engulfing candle occurs above the EMA while RSI is overbought. Position sizing is calculated dynamically based on a user-defined risk percentage and ATR-based stop loss distance. Exits are managed with customizable ATR-based stop loss and take profit targets, including partial exits. Adjustable inputs control the indicator periods, risk parameters, and take-profit multipliers.
EMA trend filter with RSI condition checks
Engulfing candlestick pattern detection
ATR-based dynamic stop loss and take profit levels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA Length
int
200
ema_len
RSI Length
int
14
rsi_len
──── TP/SL multiplicator
bool
false
tp_sl_mul
Risk (%)
float
1
risk
ATR Bars
int
14
atr_bars
▪ Stoploss Multiplicator
float
3
stop_mult
▪ Takeprofit Multiplicator
float
5
tp_mult
▪ TP1 Multiplicator
float
0.75
tp1_mult
▪ TP2 Multiplicator
float
1.5
tp2_mult
► TPx close (%)
float
15
tp_close
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 combines a 7-period RSI with an ADX filter to trade market regimes on the price chart. 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 inv
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 combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra
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 combines candlestick price action with Exponential Moving Average, RSI, and MACD filters to identify short-term trend trades. A long signal occurs when a bullish candle engulfs the previous open while price remains above the EMA, RSI stays below
2 EMA/SMA + RSI Strategy [Alorse] combines three configurable moving averages with a short-period Relative Strength Index filter. It plots fast, slow, and trend moving averages on the price chart. Long entries trigger when the fast moving average is above the