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
Entries need a persistent confirmed trend, a fresh trigger, and price not too extended from the zero-lag line. Exits need opposite evidence and a minimum ATR retrace, a long exits before any short, and a cooldown applies. A close-confirmed ATR guard exits invalidated trades but is not a broker stop. Gap, shock and micro-range filters are included.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price source
source
close
src
Responsive ZLEMA length
int
14
zlemaLen
Slow baseline length
int
55
slowLen
Structure HMA length
int
34
hmaLen
ATR length
int
14
atrLen
Do not enter beyond ZLEMA x ATR
float
1.2
maxExtensionAtr
Minimum adverse retrace to exit x ATR
float
0.75
minRetraceAtr
Mature move threshold x ATR
float
1.0
minFavorableAtr
Mature move giveback x ATR
float
1.4
matureGivebackAtr
ADX/DMI length
int
14
adxLen
Trend entry ADX
float
22.0
adxTrendEnter
Range entry ADX
float
17.0
adxRangeEnter
Show all 40 settings
Setting
Type
Default
Variable
Release range ADX
float
20.0
adxTrendRelease
Choppiness length
int
14
chopLen
Range choppiness
float
61.8
chopRangeEnter
Trend release choppiness
float
55.0
chopTrendRelease
Efficiency length
int
12
effLen
Range efficiency
float
0.28
effRangeEnter
Trend release efficiency
float
0.35
effTrendRelease
ATR baseline length
int
50
atrBaseLen
Pause entries above ATR ratio
float
2.2
panicAtrRatio
Pause entries above candle range x ATR
float
2.8
shockAtrMult
Pause entries after abnormal gaps
bool
true
useGapFilter
Gap threshold x previous ATR
float
1.5
gapAtrMult
Micro-range window
int
20
microWindowBars
Micro-range maximum width x ATR
float
2.4
microBoxMaxAtr
Decisive breakout buffer x ATR
float
0.15
breakoutBufferAtr
Confirmed trend bars before entry
int
2
entryConfirmBars
Breakout lookback
int
12
breakLen
Pullback distance from ZLEMA x ATR
float
0.35
pullbackAtr
RSI length
int
14
rsiLen
Bullish RSI floor
float
53.0
rsiBullLevel
Bearish RSI ceiling
float
47.0
rsiBearLevel
MACD fast
int
12
macdFastLen
MACD slow
int
26
macdSlowLen
MACD signal
int
9
macdSignalLen
Minimum entry score
int
7
minScore
Use volume when available
bool
true
useVolume
Volume average length
int
20
volumeLen
Volume confirmation x average
float
1.15
volumeFactor
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 indicator adapts Michael Chalek's Dual Thrust trading concept to plot breakout levels and overlay bands directly on the price chart. It calculates lookback ranges based on historical price action and provides two algorithmic variations along with multiple
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This overlay indicator scores breakouts of recent highs and lows against failed-breakout checks, EMA trend alignment, RSI momentum, and an ATR volatility band. It plots green buy and red sell labels when conditions pass a minimum score, and it prints ATR-based
Greeffer's Long Study calculates Donchian Channels alongside a volume moving average filter to generate trade signals. When price touches the lower or upper channel boundaries combined with volume exceeding a custom moving average multiplier, the indicator tri
This overlay indicator plots customized asymmetrical Bollinger Bands on the price chart to detect breakout trade signals. It calculates a middle simple moving average and standard deviation bands using separate standard deviation multipliers for upper and lowe
This indicator plots a four-pole Gaussian channel on the price chart. It filters close prices into a yellow midline and filters true range to place equal green and red bands. A long marker prints when price crosses above the upper band and the daily Bitcoin cl