Indicator · Pine Script v6 · Own pane

FracDiff Z NQ 1m + HMM Policy A

by qmqvt44stq-del

A fractional differencing Z-score oscillator in a separate pane for one-minute Nasdaq futures that adds a regime gate based on a three-vote model of directional efficiency, range expansion and VWAP slope, allowing entries only in a mean-reversion state.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code372
Settings40inputs
LicenceNone stated
Last update4 months ago15 Jun 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

Further filters cover ADX, VWAP distance, session choice and skipping the first half hour. Entry modes include a one-minute snapback and a five-minute gate arming a one-minute window, with webhook-ready alerts.

Details

Published by

qmqvt44stq-del on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Mean reversion, Oscillators & momentum, Sessions & time

Markets

Indices

Timeframes

M1-M5

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
Integration Order (d)float0.71d
Lag Truncation (N)int130N
Price Sourcesourcehlc3src
Z Lookbackint60z_len
Band Width (σ)float2.618band_w
Min Extreme Multiplierfloat1.05extreme_mult
ADX Trend Filterbooltrueuse_adx_filter
Max ADXfloat30.0adx_thresh
VWAP Stretch Filterbooltrueuse_vwap_filter
Min VWAP Distance (pts)float10.0vwap_min_dist
Skip First 30 Min (9:30-10:00)booltrueskip_open_30
HMM Gate Timeframestring1mhmm_timeframe
Show all 40 settings
SettingTypeDefaultVariable
MR Dir-Eff Maxfloat0.224hmm_dir_eff_max
MR Range-Exp Minfloat1.0hmm_range_exp_min
MR |VWAP Slope| Maxfloat0.12hmm_vwap_slope_max
MR Votes Required (of 3)int2hmm_votes_required
Optional HMM ADX Safetyboolfalseuse_hmm_adx
Optional HMM ADX Maxfloat28.0hmm_adx_max
Optional HMM VWAP Slope Safetyboolfalseuse_hmm_vwap
Optional HMM |VWAP Slope| Maxfloat0.8hmm_vwap_extra_max
Sessionstringfull_rthsession_mode
Entry Modestring1m Snapbackentry_mode
Entry Alerts (webhook-ready)booltrueentry_alerts
Window Length (1m bars)int11window_bars
Max 5m Candles After MAX Signalint2max_5m_after_signal
5m Arm ConditionstringDeep Extremegate_arm_mode
One Entry Per Windowbooltrueone_entry_per_window
Confirmation StylestringCombo (Z-Accel + Vol)confirm_preset
Z-Accel Threshold (σ)float0.15z_accel_thr
Volume MA Lengthint20vol_confirm_len
Volume Spike Multiplierfloat1.5vol_confirm_mult
Absorption Lookbackint10abs_lookback
Absorption Max Body/Rangefloat0.35abs_body_max
Absorption Close Off Extremefloat0.25abs_close_edge
Custom: 1m Snapbackbooltrueuse_confirm_snap
Custom: Z-Accel + Volbooltrueuse_confirm_combo
Custom: Absorptionboolfalseuse_confirm_absorb
Custom: Z-Accel Onlyboolfalseuse_confirm_zaccel
Show Active Window Stripbooltrueshow_window_strip
Clean Mode — Signals Onlybooltrueclean_mode
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

261 stars

This indicator calculates standardized z-scores of price data across four different lookback periods (6, 14, 26, and 100). Standardizing data subtracts the moving average from the price and divides by the standard deviation. It applies a Double Exponential Mov

Indicator v5 Mean reversionVolatility & bands
114 stars

This indicator calculates normalized percentage bounds around price highs and lows to anticipate local trend reversals. It oscillates within a fixed -1 to 1 channel and plots two boundary tracking curves alongside a background Karobein oscillator histogram for

Indicator v4 Mean reversionOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Mean Reversion Indicator
99 stars

This indicator calculates the statistical autocorrelation coefficient of an input series over a user-defined lookback window at a specified lag. It tracks values using an internal circular buffer, computes sample mean, variance, and autocovariance, and normali

Indicator v6 TrendMean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Autocorrelation Function (ACF)

Pretty Good Oscillator

by mihakralj
47 stars

The Pretty Good Oscillator calculates the distance between the selected price source and its simple moving average, normalized by the Average True Range over a specified period. It renders as an oscillator line in a separate pane alongside a zero line and thre

Indicator v6 Oscillators & momentumMean reversion
Updated 8 months ago · MIT GitHub repository of Pretty Good Oscillator

Calculates a composite carry and decay oscillator fusing impulse-autocorrelation half-life, a Hurst exponent approximation, path efficiency, and range expansion ratios. It evaluates whether an impulse is likely to persist or mean-revert, plotting the oscillato

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Market Memory & Decay Oscillator [WavesUnchained]

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