Variance Ratio Test computes log returns, base period variance over a specified lookback window, and scaled multi-period variances to determine test Z-scores. The indicator plots single or multiple sampling period lines in a separate pane against configurable critical value bounds representing statistical significance levels. Users can customize the lookback length, sampling intervals, critical thresholds, and visual line options.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
===== Source =====
source
close
src
Lookback
int
32
t
Single VRT Sampling Period
int
2
k
Critical Value
string
5%
cl
-------- Show Multiple Variance Ratio Stats --------
bool
true
mv
Show VRT1
bool
true
v1
VRT1 Sampling Period
int
2
k1
Show VRT2
bool
true
v2
VRT2 Sampling Period
int
4
k2
Show VRT3
bool
true
v3
VRT3 Sampling Period
int
8
k3
Show VRT4
bool
true
v4
Show all 16 settings
Setting
Type
Default
Variable
VRT4 Sampling Period
int
16
k4
Show VRT5
bool
false
v5
VRT5 Sampling Period
int
32
k5
--- Line Thickness ---
int
1
lT
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 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
This indicator implements a dual-direction variation of the Williams Vix Fix oscillator in a separate pane. It normalizes price data using min-max scaling to compute both upward and downward synthetic volatility metrics across two selectable calculation modes
The Mean Squared Error indicator calculates the mean of squared differences between a source series and its EMA, averaged via a rolling buffer acting as SMA. This error metric plots as a filled red area on a separate pane, while the EMA overlays as a yellow li
This indicator classifies market behavior into momentum, mean-reversion, noise, or mixed regimes. It fuses four statistical predictability sensors—Variance Ratio across multiple horizons, return autocorrelation, Hurst exponent approximation, and fractal effici
This indicator builds a channel from a Hull moving average of the source and an ATR scaled by a band multiplier, then normalizes price inside that channel into a 0 to 100 oscillator. It smooths the result with a weighted moving average and plots the line in a
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre