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
Settings set the trail factor, price smoothing, minimum bars between flips, a break buffer and a minimum adverse move. Optional gates require ADX strength, DI direction, RSI side, HMA slope, a strong candle body and zero-lag alignment. Signals commit on bar close by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
14
atrLen
Trail Factor (main anti-noise)
float
3.2
factor
Smooth price (kill spikes)
bool
true
smoothOn
Smooth length
int
3
smoothLn
Zero-Lag bias length
int
14
zlemaLen
Min bars between flips
int
8
minBars
Break buffer × ATR
float
0.15
breakBuf
Min adverse move × ATR to allow flip
float
0.85
minAdv
Min favorable run × ATR before flip OK (0=off)
float
0.0
minRun
Require ADX strength
bool
true
useAdx
ADX Length
int
14
adxLen
Min ADX
float
20.0
adxMin
Show all 28 settings
Setting
Type
Default
Variable
Require ADX rising
bool
false
useAdxUp
Require DI direction
bool
true
useDi
Require RSI direction
bool
true
useRsi
RSI Length
int
14
rsiLen
Require HMA structure slope
bool
true
useHma
HMA Length (structure)
int
34
hmaLen
Require strong close candle
bool
true
useBody
Require Zero-Lag bias align
bool
true
useZlBias
Show trail
bool
true
showTrail
Show Zero-Lag line
bool
false
showZlema
Show HMA structure
bool
false
showHma
Trail fill
bool
true
showFill
Color candles
bool
true
colorBars
Dashboard
bool
true
showDash
Sideways background
bool
false
showBg
Signals on bar close only (non-repaint)
bool
true
barCloseOnly
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 plots an ATR-based Chandelier Exit trailing stop on the price chart. It tracks a long stop under recent highs and a short stop above recent lows, then switches direction when price crosses the opposite stop. Buy and sell labels mark those flips.
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
Range Filter [Alorse] is a technical indicator overlay for TradingView designed to filter market volatility and identify price trends. It calculates a smoothed range based on historical volatility using a configurable sampling period and multiplier applied to
This indicator calculates an ATR trailing stop line derived from the highest high minus an average true range multiple over a specified lookback period. It plots the trailing stop line directly on the price chart and colors price bars based on whether the clos
This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high