A chart-overlay indicator that classifies market regime with ADX and Bollinger Bands, then scores momentum, volume and mean-reversion conditions using adjustable weights, optionally normalised.
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 signal appears when the score passes a threshold. It draws a trend cloud from 20 and 50 period SMA or EMA, pivot-based support and resistance, candle colouring, an info table and a cursor label. Settings cover ADX, Bollinger and RSI parameters, pivot lookback, threshold and weights.
ADX and Bollinger regime detection
Weighted momentum, volume and mean-reversion score
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ADX Length
int
14
adx_length
ADX Threshold
int
25
adx_threshold
Bollinger Length
int
20
bb_length
Bollinger Std Dev
float
2.0
bb_std
Trend Filter Type
string
SMA
trend_type
Use Volume Filter
bool
true
use_vol
RSI Period
int
14
rsi_period
RSI Overbought
int
70
rsi_overbought
RSI Oversold
int
30
rsi_oversold
Pivot Lookback
int
10
lookback
Signal Threshold
float
0.20
sensitivity
Auto-normalize Weights
bool
true
normalize_weights
Show all 27 settings
Setting
Type
Default
Variable
Momentum Weight
float
0.7
w_mom
Volume Weight
float
0.3
w_vol
Mean Reversion Weight
float
0.6
w_mr
Color Candles by Trend
bool
true
show_bar
Show Trend Cloud
bool
true
show_cloud
Show Trading Signals
bool
true
show_signals
Show S/R Levels
bool
true
show_levels
Show Enhanced Signals
bool
true
show_enhanced
Show Info Table
bool
true
show_table
Show Dynamic Cursor Label
bool
true
show_label
Show in Data Window
bool
true
show_data
Bullish Color
color
color.green
c_bull
Bearish Color
color
color.red
c_bear
Neutral Color
color
color.gray
c_neu
Text Color
color
color.white
c_text
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.
Quantum State Space & Probabilistic Agents projects a horizontal state space grid directly on the price chart. It evaluates momentum from RSI, trend strength from an EMA/ATR ratio, and mean-reversion from standard deviation to compute directional probabilities
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 calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly
This intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand