Indicator · Pine Script v6 · On the chart

Regime Adaptive Prediction Framework

by anil-sn

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.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code291
Settings27inputs
LicenceNone stated
Last update9 months ago5 Jan 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

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.

Details

Published by

anil-sn on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Oscillators & momentum, Mean reversion, Support & resistance

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
ADX Lengthint14adx_length
ADX Thresholdint25adx_threshold
Bollinger Lengthint20bb_length
Bollinger Std Devfloat2.0bb_std
Trend Filter TypestringSMAtrend_type
Use Volume Filterbooltrueuse_vol
RSI Periodint14rsi_period
RSI Overboughtint70rsi_overbought
RSI Oversoldint30rsi_oversold
Pivot Lookbackint10lookback
Signal Thresholdfloat0.20sensitivity
Auto-normalize Weightsbooltruenormalize_weights
Show all 27 settings
SettingTypeDefaultVariable
Momentum Weightfloat0.7w_mom
Volume Weightfloat0.3w_vol
Mean Reversion Weightfloat0.6w_mr
Color Candles by Trendbooltrueshow_bar
Show Trend Cloudbooltrueshow_cloud
Show Trading Signalsbooltrueshow_signals
Show S/R Levelsbooltrueshow_levels
Show Enhanced Signalsbooltrueshow_enhanced
Show Info Tablebooltrueshow_table
Show Dynamic Cursor Labelbooltrueshow_label
Show in Data Windowbooltrueshow_data
Bullish Colorcolorcolor.greenc_bull
Bearish Colorcolorcolor.redc_bear
Neutral Colorcolorcolor.grayc_neu
Text Colorcolorcolor.whitec_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.

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

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels

Moon Dev Lunar Sniper

by moondevonyt
92 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
14 stars

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

Indicator v6 TrendVolatility & bands
Updated 3 weeks ago · MIT GitHub repository of Self-Aware Trend System [WillyAlgoTrader]

SPY 0DTE Scalper - 15min

by chris-c-thomas
14 stars

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

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 15min

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