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
A signal closes any opposite position and flips direction. It combines a fast zero-lag EMA, slow EMA, Hull average and macro EMA with slope, separation, ADX, DMI spread and choppiness checks, plus an optional completed higher-timeframe Supertrend agreement. A daily cap limits signals, with optional London and New York session limits. State commits on closed bars.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto-adapt to chart timeframe
bool
true
useAuto
Require completed HTF agreement
bool
true
useHtf
Auto-select HTF
bool
true
autoHtf
Manual HTF
timeframe
240
manualHtf
HTF Supertrend factor
float
3.1
htfFactor
HTF ATR length
int
14
htfAtrLen
Only London–NY session (07-17 UTC)
bool
false
useSession
Max signals per day
int
2
maxDailySignals
ATR length
int
14
atrLen
Fast ZLEMA
int
13
fastLen
Slow EMA
int
55
slowLen
HMA length
int
34
hmaLen
Show all 40 settings
Setting
Type
Default
Variable
Macro EMA
int
100
macroLen
Slope lookback
int
5
slopeLen
Macro slope lookback
int
8
macroSlopeLen
Min slow slope x ATR
float
0.12
minSlopeAtr
Min macro slope x ATR
float
0.05
minMacroSlopeAtr
Min fast/slow separation x ATR
float
0.12
minSepAtr
Causal trail x ATR
float
3.60
trailMult
Widen trail in range x
float
1.50
rangeTrailBoost
Trail break buffer x ATR
float
0.15
trailBufferAtr
Structure trail lookback
int
24
structTrailLen
ADX / DMI length
int
14
adxLen
Min ADX for a signal
float
22.0
adxTrend
Range ADX
float
17.5
adxRangeEnter
Trend-release ADX
float
21.0
adxTrendRelease
Min DMI spread
float
4.0
diSpreadMin
Choppiness length
int
21
chopLen
Range if chop above
float
61.8
chopEnter
Trend if chop below
float
53.5
chopRelease
Max chop on signal bar
float
54.0
maxFlipChop
Efficiency length
int
14
effLen
Range if efficiency below
float
0.24
effRangeEnter
Trend if efficiency above
float
0.36
effTrendRelease
Min efficiency on signal bar
float
0.36
minFlipEff
ATR baseline length
int
50
atrBaseLen
Min ATR ratio
float
0.95
minAtrRatio
Pause if ATR ratio above
float
2.40
pauseAtrRatio
Pause if candle range x ATR above
float
2.90
shockRangeAtr
Pause after abnormal gap
bool
true
useGapFilter
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 auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It
Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an
This script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th
Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b
42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and