An indicator that classifies the market as trending, ranging or breakout using ADX and ATR ratios, then blends three signal families into one confidence score from 0 to 100.
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
The families are EMA trend following, Bollinger and RSI mean reversion, and Donchian with Keltner squeeze breakout. Score thresholds separate no-trade, watch and entry levels. It shows a regime label, a confidence meter, optional no-trade shading and entry markers on the price chart. A non-repainting mode uses the prior bar's values.
ADX and ATR regime detection
Trend, mean reversion and breakout signal families
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Non-Repainting Mode
bool
true
i_nonRepaint
Show Debug Panel
bool
false
i_showDebug
Enable Alerts
bool
true
i_alertsOn
ADX Period
int
14
i_adxPeriod
ADX Trend Threshold
int
25
i_adxThreshold
ATR Period
int
14
i_atrPeriod
ATR Slow Period
int
50
i_atrSlowPeriod
EMA Fast
int
8
i_emaFast
EMA Slow
int
21
i_emaSlow
EMA Trend
int
50
i_emaTrend
Bollinger Period
int
20
i_bbPeriod
Bollinger StdDev
float
2.0
i_bbStd
Show all 23 settings
Setting
Type
Default
Variable
RSI Period
int
14
i_rsiPeriod
Donchian Period
int
20
i_donchianPeriod
Keltner Multiplier
float
1.5
i_squeezeKcMult
No Trade Threshold
int
30
i_confNoTrade
Watch Only Threshold
int
50
i_confWatch
Small Entry Threshold
int
70
i_confSmall
Strong Entry Threshold
int
85
i_confStrong
Show Regime Label
bool
true
i_showRegimeLabel
Show Confidence Meter
bool
true
i_showConfMeter
Show No-Trade Zone Shading
bool
true
i_showNoTradeZone
Entry Marker Size
string
normal
i_entryMarkerSize
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 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
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
The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,
This overlay indicator scores breakouts of recent highs and lows against failed-breakout checks, EMA trend alignment, RSI momentum, and an ATR volatility band. It plots green buy and red sell labels when conditions pass a minimum score, and it prints ATR-based
Dynamic Extreme Channels & Reversals tracks evolving price highs and lows to plot adaptive channel bands and a midline directly on the price chart. When no new extremes occur within the specified lookback window, the channel boundaries interpolate toward price
This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th