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
Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as counter-trend entries when price approaches VWAP during RSI extreme reversals. Positions exit through configurable ATR-based stop-loss and take-profit levels. Trades can be restricted to specific exchange session hours, and the strategy plots overlay signals directly on the main chart.
Dual EMA momentum crossover signals with VWAP bias
RSI mean-reversion entries on pullbacks near VWAP
ATR-based stop-loss and take-profit management
Configurable exchange session time window filter
Directional trade mode selection for long, short, or both
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA Length
int
9
fastLen
Slow EMA Length
int
21
slowLen
RSI Length
int
14
rsiLen
RSI Overbought
int
70
rsiOB
RSI Oversold
int
30
rsiOS
ATR Length
int
14
atrLen
Stop Loss ATR Mult
float
1.5
slMult
Take Profit ATR Mult
float
2.0
tpMult
Filter to Session Hours
bool
true
useSession
Session Window (Exchange TZ)
session
0830-1500
sessStart
Trade Direction
string
Both
tradeMode
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.
Intraday Reversal Predictor (Order-Safe) is an overlay strategy designed for regular trading hours reversal setups. It calculates daily-anchored VWAP standard deviation bands, RSI, and fast/slow EMAs. A composite scoring model aggregates band touches, momentum
This mean-reversion strategy combines multi-timeframe exponential moving averages, Bollinger Bands, and the Relative Strength Index. It generates long and optional short trade signals when price interacts with the Bollinger Bands alongside RSI threshold confir
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 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
This strategy plots on the price chart and trades fair value gaps filtered by RSI and two EMAs. It opens a long when a bullish gap, a rising candle, RSI below the oversold level, and price under both EMAs align, and a short on the opposite conditions. Each tra