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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
When price touches the average it arms, then marks long or short entries on a wick rejection seen on 5 or 15 minute candles, or a run of three same-direction closes on 3 and 5 minute candles. The stop is the trigger extreme plus an ATR buffer, the target the rolling 24-hour extreme, and the stop moves to break even at a set multiple. A statistics panel is optional.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Mode
string
Manual
mode
Strategy Active (manual toggle)
bool
true
active
Max Trades Per Day (0 = no limit)
int
0
maxPerDay
Lookback (weeks)
int
8
lookbackWeeks
MA Length
int
200
maLen
MA Timeframe
timeframe
60
maTF
Smoothing Type
string
None
smoothType
Smoothing Length
int
14
smoothLen
BB StdDev
float
2.0
bbMult
Strategy Uses
string
Smoothed MA
signalLine
Entry: Wick Rejection (5m / 15m)
bool
true
useWick
Entry: Triple Close Reversal (3m + 5m)
bool
true
useTriple
Show all 21 settings
Setting
Type
Default
Variable
Wick Timeframe
string
5m or 15m
wickMode
Lot Size
float
0.10
lots
SL ATR Length (15m)
int
14
atrLen
SL Buffer (x ATR)
float
0.5
atrMult
Whole Number Step
float
1.0
wholeStep
Move SL to BE at RR
float
1.0
beRR
Show 24h High/Low
bool
false
showPD
Show Info Panel
bool
true
showTable
Show Skipped Signals
bool
false
showSkips
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.
Calculates and plots a multi-band envelope on the price chart based on mean reversion principles and Keltner Channel concepts. Instead of standard moving averages, it uses advanced filters such as Ehlers SuperSmoother, Butterworth, Gaussian, or traditional ave
VWMA_WF plots a 24-period volume-weighted moving average of the 60-minute hlc3 price on the chart, plus percentage offset bands. It draws a long label when price is at or below the lower band and a down fractal is confirmed, and it sends a short alert when pri
Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E