Indicator · Pine Script v6 · On the chart

NO.1 V1 Final Regime Router

by vedkanani123

An overlay signal indicator that routes between three exclusive modes: a trend mode using Supertrend flips or Donchian continuation, a range fade mode, and a transition mode that trades breakouts of a finished Asia range.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code830
Settings40inputs
LicenceNone stated
Last update2 months ago23 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Shock candles, gaps, micro-ranges and news windows suppress signals. Day rules cap trades per UTC day, restrict hours and skip certain Monday and Friday periods. A higher-timeframe Supertrend can be required to agree. Each signal carries a stop.

Details

Published by

vedkanani123 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Sessions & time, Trend, Breakout

Markets

Gold

Timeframes

M1-M5, M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Max trades per UTC dayint2maxDay
Lock day after a 2R missbooltruelockAfter2R
After 3 losses raise score (not size)booltrueraiseAfter3
Only 07:00–17:00 UTC (intraday)booltrueuseSession
Skip Monday before 08:00 UTCbooltrueskipMon
Skip Friday from 16:00 UTCbooltrueskipFri
Block 12:20–14:10 UTCbooltrueblockNews
TREND sleeve (flip + continuation)booltrueuseTrend
RANGE fade sleevebooltrueuseFade
TRANSITION breakout sleevebooltrueuseBreak
Allow fade on M1 (off = safer)boolfalseforceFadeM1
ATRint14atrLen
Show all 40 settings
SettingTypeDefaultVariable
Supertrend factor (0 = auto)float0.0stFactorIn
EMAint21emaLen
ZLEMAint14zlemaLen
HTF Supertrend must agreebooltrueuseHtf
Auto HTFbooltrueautoHtf
Manual HTFtimeframe15manualHtf
HTF factorfloat3.10htfFactor
Min score (0 = auto)int0minScoreIn
ADXint14adxLen
Shock candle x ATRfloat2.80shockAtr
Gap pause x ATRfloat1.50gapAtr
Micro-box lookbackint20microBars
Micro-box max width x ATRfloat2.40microAtr
Asia end UTCint7asiaEndHour
London AM end UTCint12londonEndHour
Fade must stay in outer %float0.28nearFrac
Min dealing-range x ATRfloat1.40minRangeAtr
Max dealing-range x ATRfloat8.00maxRangeAtr
Min R to Gann halffloat1.80minRrToMid
Min reject / break body x ATRfloat0.18minBodyAtr
Min body / candlefloat0.38minBodyRatio
Stop buffer x ATRfloat0.10slBuf
Min stop x ATRfloat0.40minStopAtr
Max stop x ATRfloat2.60maxStopAtr
1Rfloat1.0r1
2Rfloat2.0r2
3Rfloat3.0r3
SL + TP same bar = LOSSbooltruesameBarLoss
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.

Similar Pine Scripts

Trend Score History

by ryangaraygay
2 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 1 year ago · MIT GitHub repository of Trend Score History
257 stars

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

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES
114 stars

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

Indicator v4 TrendBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Dual Thrust Trading Algorithm
92 stars

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

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Regime & Trap
56 stars

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

Indicator v5 TrendSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Trendlines With Breaks [LUX]

IB / ORB Live Stats

by TamaraKGreen
46 stars

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

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers