Estimates the Hurst exponent with detrended fluctuation analysis on log returns, indicating whether recent price behaviour leans toward trending or mean reverting around a 0.5 mid line.
Inputs set the sample size, base and maximum scales, an optional smoothing filter and a date range that limits computation. Colours mark significant trend or mean reversion against a confidence interval, with an optional table. It plots in a separate pane without trade signals.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Date Range
string
ALL
useRange
Number
float
300
number
Sample Size
int
100
len
Show Filter
bool
false
showma
Length
int
18
slen
Base Scale
int
8
Bsc
Max Scale
int
2
Msc
Plot Style
string
Ci
stl
Line Thickness
int
1
lT
MA
color
color.orange
c_ma
Line Thickness
int
1
lTma
> 0.5
color
color.aqua
c_t
Show all 20 settings
Setting
Type
Default
Variable
< 0.5
color
#FF0080ff
c_m
Significant Trend
color
color.lime
c_st
Significant Mean Reversion
color
color.yellow
c_sm
Confidence Interval
color
color.white
c_cv
Mid Line
color
color.white
c_mid
Show Table
string
ON
dt
Dark Background
string
ON
bg
Size
string
normal
tsize
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.
The Augmented Dickey-Fuller indicator calculates statistical stationarity and tests for unit roots in price series over a rolling window. It performs ordinary least squares regression on differenced historical price data to compute a t-statistic and an estimat
This indicator calculates sample autocorrelation across multiple lag intervals for a selected price series. It computes correlation values over a user-specified lookback period using raw prices, log returns, absolute log returns, or squared log returns. Plotte
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
This indicator combines MACD and RSI to generate pullback signals on forex pairs. It plots MACD line, signal line and histogram alongside RSI and Wave Trend oscillator. Higher-timeframe MACD provides trend bias while RSI identifies overbought and oversold zone
Rolling Z-Score Trend [QuantAlgo] calculates a rolling Z-score using mean and standard deviation over a user-defined lookback window to evaluate statistical price deviations and momentum. Plotted in a separate indicator pane, it displays the rolling Z-score li
A crypto futures signal indicator in a separate pane that scores setups and only flags those passing a validity gate. It has a trend pullback engine using limit-order style entries and a range engine that fades stretched moves back toward the mean. Filters inc