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.
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
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Adaptive core length
int
14
coreLen
ATR length
int
14
atrLen
Trend structure lookback
int
24
trendLookback
Range window
int
20
rangeLookback
Trend trail x ATR (0 = auto)
float
0.0
trailInput
Trend / breakout score
int
65
scoreInput
Trend-following sleeve
bool
true
useTrend
Range-edge reversal sleeve
bool
true
useRange
Transition breakout sleeve
bool
true
useBreakout
Use volume when reliable
bool
false
useVolume
Adaptive core
bool
true
showCore
Active trail
bool
true
showTrail
Show all 16 settings
Setting
Type
Default
Variable
Completed range
bool
true
showRange
BUY / SELL labels
bool
true
showLabels
Regime background
bool
true
showBg
Color bars by active side
bool
true
colorBars
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.
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. The families are EMA trend following, Bollinger and RSI mean reversion, and Donchian w
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 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 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
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