Indicator · Pine Script v6 · On the chart

NO.1 V3 Dual-Regime Router

by vedkanani123

A price-chart indicator that classifies the market into trend, range, transition or shock regimes using an adaptive core, ATR, ADX, choppiness and efficiency measures.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code203
Settings16inputs
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

Each regime has its own sleeve: trend-following on structure and momentum, range-edge reversals on completed windows, and breakout signals during transitions. Shock conditions open no new signal. Sleeves can be toggled, a score threshold sets selectivity, and it draws the core, trail, range boxes, labels and a regime background.

Details

Published by

vedkanani123 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Breakout, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
Adaptive core lengthint14coreLen
ATR lengthint14atrLen
Trend structure lookbackint24trendLookback
Range windowint20rangeLookback
Trend trail x ATR (0 = auto)float0.0trailInput
Trend / breakout scoreint65scoreInput
Trend-following sleevebooltrueuseTrend
Range-edge reversal sleevebooltrueuseRange
Transition breakout sleevebooltrueuseBreakout
Use volume when reliableboolfalseuseVolume
Adaptive corebooltrueshowCore
Active trailbooltrueshowTrail
Show all 16 settings
SettingTypeDefaultVariable
Completed rangebooltrueshowRange
BUY / SELL labelsbooltrueshowLabels
Regime backgroundbooltrueshowBg
Color bars by active sidebooltruecolorBars
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

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
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]

Reversal Breakout System

by TamaraKGreen
46 stars

This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d

Indicator v6 Candlestick patternsBreakout
Updated 7 weeks ago · None stated GitHub repository of Reversal Breakout System

Peak Reversal v3

by Zettt
43 stars

Peak Reversal v3 identifies potential mean-reversion points by plotting configurable Keltner Channels alongside a squeeze detector directly on the price chart. It detects momentum extremes when candles cross or trade completely outside the inner or outer chann

Indicator v6 Mean reversionVolatility & bands
Updated 1 year ago · None stated GitHub repository of Peak Reversal v3

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