An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asia box in transitions.
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 score gate filters weak setups, with limits on trades per day, session, Monday, Friday and news-window exclusions, and a higher-timeframe trend check. Signals form on confirmed bars.
Regime router with trend, range and breakout modules
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Max trades per UTC day
int
2
maxDay
Lock day after a 2R miss
bool
true
lockAfter2R
After 3 losses raise SCORE (not size)
bool
true
raiseAfter3
Only 07:00-17:00 UTC (intraday)
bool
true
useSession
Skip Monday before 08:00 UTC
bool
true
skipMon
Skip Friday from 16:00 UTC
bool
true
skipFri
Block 12:20-14:10 UTC (news)
bool
true
blockNews
TREND sleeve (flip + continuation)
bool
true
useTrend
RANGE fade sleeve
bool
true
useFade
TRANSITION breakout sleeve
bool
true
useBreak
Allow fade on M1 (off = safer)
bool
false
forceFadeM1
ATR length
int
14
atrLen
Show all 40 settings
Setting
Type
Default
Variable
Supertrend factor (0 = auto)
float
0.0
stFactorIn
EMA length
int
21
emaLen
ZLEMA length
int
14
zlemaLen
HTF trend must agree
bool
true
useHtf
Auto HTF
bool
true
autoHtf
Manual HTF
timeframe
60
manualHtf
HTF Supertrend factor
float
3.0
htfFactor
Min score (0 = auto by TF)
int
0
minScoreIn
ADX length
int
14
adxLen
Shock candle x ATR
float
2.8
shockAtr
Gap pause x ATR
float
1.5
gapAtr
Micro-box lookback
int
20
microBars
Micro-box max width x ATR
float
2.4
microAtr
Asia end UTC
int
7
asiaEndHour
London AM end UTC
int
12
lonEndHour
Fade stays in outer %
float
0.28
nearFrac
Min dealing-range x ATR
float
1.4
minRangeAtr
Max dealing-range x ATR
float
8.0
maxRangeAtr
Min R to range midpoint
float
1.8
minRrToMid
Min reject/break body x ATR
float
0.18
minBodyAtr
Min body / candle
float
0.38
minBodyRat
Stop buffer x ATR
float
0.10
slBuf
Min stop x ATR
float
0.40
minStopAtr
Max stop x ATR
float
2.6
maxStopAtr
1R target
float
1.0
r1
2R target
float
2.0
r2
3R target
float
3.0
r3
ATR trailing stop (after 1R)
bool
true
useTrail
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