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 first signal can come from a trend breakout or a completed Asia range break, optionally preferring the day-open side. After the target is reached the day locks; a second signal is allowed only if the first has not lost. Monday-open and late-Friday skips, a session limit and higher-timeframe Supertrend agreement are optional.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Target move $ (price units)
float
20.0
targetDollars
No-loss buffer $
float
0.30
lossBuffer
Allow one no-loss second signal if $20 fails
bool
true
allowSecond
Only London–NY (07-17 UTC)
bool
false
useSession
Skip Monday before 08:00 UTC
bool
true
skipMondayOpen
Skip Friday from 17:00 UTC
bool
true
skipFridayLate
Count completed Asia range break as a first trigger
bool
true
useAsiaBreak
Prefer day-open side for the first signal
bool
true
useDayOpen
Auto-adapt to chart timeframe
bool
true
useAuto
Require completed HTF Supertrend
bool
true
useHtf
Auto-select HTF
bool
true
autoHtf
Manual HTF
timeframe
240
manualHtf
Show all 40 settings
Setting
Type
Default
Variable
HTF Supertrend factor
float
3.10
htfFactor
HTF ATR length
int
14
htfAtrLen
ATR length
int
14
atrLen
Fast ZLEMA
int
13
fastLen
Slow EMA
int
55
slowLen
HMA length
int
34
hmaLen
Macro EMA
int
100
macroLen
Slope lookback
int
5
slopeLen
Macro slope lookback
int
8
macroSlopeLen
Min slow slope x ATR
float
0.08
minSlopeAtr
Min macro slope x ATR
float
0.03
minMacroSlopeAtr
Min fast/slow separation x ATR
float
0.08
minSepAtr
Causal trail x ATR
float
3.70
trailMult
Widen trail in range x
float
1.45
rangeTrailBoost
Trail break buffer x ATR
float
0.12
trailBufferAtr
Structure trail lookback
int
20
structTrailLen
ADX / DMI length
int
14
adxLen
Min ADX for a first signal
float
18.0
adxTrend
Range ADX
float
16.0
adxRangeEnter
Trend-release ADX
float
20.0
adxTrendRelease
Min DMI spread
float
2.5
diSpreadMin
Choppiness length
int
14
chopLen
Range if chop above
float
61.8
chopEnter
Trend if chop below
float
55.0
chopRelease
Max chop on signal bar
float
58.0
maxFlipChop
Efficiency length
int
12
effLen
Range if efficiency below
float
0.22
effRangeEnter
Trend if efficiency above
float
0.32
effTrendRelease
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.
Trend Score History calculates a composite trend metric ranging between -5 and +5 by evaluating session VWAP, EMA alignment, price-volume flow, lower-timeframe Donchian channel breakouts, and Opening Range breakouts. It plots the cumulative score as histogram
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 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
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
This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi