Skip to main content
|View as Markdown|

Statistical Indicators

Regression channels, regime CUSUM tests, correlation oscillators, and curve extrapolators. This category documents 13 MetaTrader 5 library indicators.

← Back to Indicator Library Reference · Interactive Indicator Showcase

Quick Index​

IndicatorPlacementVersionSummary
AIMS CUSUM RegimesMain-Chart Overlay1.00AIMS CUSUM Change-Point Detection MT5
AIMS Recursive Least SquaresMain-Chart Overlay1.00AIMS Recursive Least Squares (RLS) Forecast MT5
AIMS Rolling KPSSSubwindow Oscillator1.00AIMS Rolling KPSS Stationarity Statistic MT5
AIMS Forecast OscillatorSubwindow Oscillator1.00AIMS Chande Forecast Oscillator (%F) MT5
AIMS AutocorrelationSubwindow Oscillator1.00AIMS Rolling Autocorrelation & Significance Bands MT5
AIMS Arctan OscillatorSubwindow Oscillator1.00ArcTan Z-Score Reversal Oscillator
AIMS Isotonic Reg OscSubwindow Oscillator1.00Isotonic Regression PAVA Oscillator
AIMS Normalized ResonatorSubwindow Oscillator1.00Normalized Bandpass Resonator Oscillator
AIMS Correlated Sine OscSubwindow Oscillator1.00Correlated Sine Oscillator
AIMS Harmonic Resonance OscSubwindow Oscillator1.00Harmonic Resonance Oscillator (Ehlers Bandpass)
AIMS Extrapolated TrendMain-Chart Overlay1.00Extrapolated Previous Trend (OLS Regression)
AIMS Linear Reg HistogramMain-Chart Overlay1.00Linear Regression Channel & Bin Histogram
AIMS Cubic Bezier ExtrapMain-Chart Overlay1.00Cubic Bezier Curve Extrapolation

Indicator Specifications​

AIMS CUSUM Regimes​

  • Placement: Main-Chart Overlay
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: AIMS CUSUM Change-Point Detection MT5
  • Plot Labels: CUSUM Regime Level, Bullish Pressure, Bearish Pressure, Regime Change Up, Regime Change Down

Parameters​

ParameterVariableTypeDefault
Rolling Statistics PeriodInpLengthint50
Detection Threshold (h)InpThresholddouble4.0
Allowable Slack (k)InpSlackdouble0.5

AIMS Recursive Least Squares​

  • Placement: Main-Chart Overlay
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: AIMS Recursive Least Squares (RLS) Forecast MT5
  • Plot Labels: RLS Mean, Upper RLS Band, Lower RLS Band, Mean Reversion Buy, Mean Reversion Sell

Parameters​

ParameterVariableTypeDefault
Forgetting Factor (0.80 - 0.999)InpLambdadouble0.98
Band StdDev MultiplierInpBandMultdouble2.0
Show Mean Reversion SignalsInpShowSignalsbooltrue

AIMS Rolling KPSS​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: AIMS Rolling KPSS Stationarity Statistic MT5
  • Plot Labels: KPSS Statistic

Parameters​

ParameterVariableTypeDefault
Rolling Window LengthInpWindowLenint50
Stationarity Test TypeInpTestTypeENUM_KPSS_TYPEKPSS_LEVEL
Newey-West Bartlett BandwidthInpBandwidthint4

AIMS Forecast Oscillator​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: AIMS Chande Forecast Oscillator (%F) MT5
  • Plot Labels: Chande Forecast Osc %, Signal Line

Parameters​

ParameterVariableTypeDefault
Regression LengthInpLengthint14
Signal Smoothing LengthInpSigLenint3
Signal MA TypeInpSigTypeENUM_CFO_SIG_TYPECFO_SMA
Show Signal LineInpShowSigbooltrue

AIMS Autocorrelation​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: AIMS Rolling Autocorrelation & Significance Bands MT5
  • Plot Labels: Autocorrelation, Upper Significance (+2/sqrt(n)), Lower Significance (-2/sqrt(n))

Parameters​

ParameterVariableTypeDefault
Analyzed SeriesInpSeriesENUM_ACF_SERIESACF_RETURNS
Sample Window (n)InpWindowint200
Primary LagInpLagint1

AIMS Arctan Oscillator​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: ArcTan Z-Score Reversal Oscillator
  • Plot Labels: Reversal Potential, ATO Line

Parameters​

ParameterVariableTypeDefault
Smoothing & Z-Score LengthInpLengthint21
Pre-Gain [-10..10]InpPreGainint0

AIMS Isotonic Reg Osc​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Isotonic Regression PAVA Oscillator
  • Plot Labels: Isotonic Oscillator, Bull Cross, Bear Cross

Parameters​

ParameterVariableTypeDefault
Isotonic Period [2..200]InpLengthint20

AIMS Normalized Resonator​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Normalized Bandpass Resonator Oscillator
  • Plot Labels: Normalized Resonator, Signal Line, Bullish Cross, Bearish Cross

Parameters​

ParameterVariableTypeDefault
Center Cycle PeriodInpCenterPeriodint100
Passband Delta (0.01..1.0)InpBandwidthdouble0.5
Peak Normalization Lookback MultiplierInpLookbackMultdouble1.0
Signal EMA PeriodInpSignalLenint9
Overbought ThresholdInpOverboughtdouble0.8
Oversold ThresholdInpOversolddouble-0.8

AIMS Correlated Sine Osc​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Correlated Sine Oscillator
  • Plot Labels: Correlated Sine, Bull Zero Cross, Bear Zero Cross

Parameters​

ParameterVariableTypeDefault
Cycle PeriodInpPeriodint20
Phase MultiplierInpSmoothMultdouble1.0

AIMS Harmonic Resonance Osc​

  • Placement: Subwindow Oscillator
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Harmonic Resonance Oscillator (Ehlers Bandpass)
  • Plot Labels: Harmonic Resonance, Dynamic Overbought, Dynamic Oversold, Overbought Signal, Oversold Signal

Parameters​

ParameterVariableTypeDefault
Reference PeriodInpRefPeriodint30
Short Harmonic MultiplierInpShortMultdouble0.5
Medium Harmonic MultiplierInpMedMultdouble1.0
Long Harmonic MultiplierInpLongMultdouble2.0
Bandpass BandwidthInpBandwidthdouble0.10
Normalization LookbackInpNormLengthint50
Overbought ThresholdInpObLeveldouble80.0
Oversold ThresholdInpOsLeveldouble20.0

AIMS Extrapolated Trend​

  • Placement: Main-Chart Overlay
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Extrapolated Previous Trend (OLS Regression)
  • Plot Labels: Extrapolated Previous Trend

Parameters​

ParameterVariableTypeDefault
Regression Period TimeframeInpSessionTfENUM_TIMEFRAMESPERIOD_D1

AIMS Linear Reg Histogram​

  • Placement: Main-Chart Overlay
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Linear Regression Channel & Bin Histogram
  • Plot Labels: LinReg Mid, LinReg Upper, LinReg Lower

Parameters​

ParameterVariableTypeDefault
Regression LookbackInpLengthint100
Histogram Bins (3..20)InpBinsint10
Residual StdDev MultiplierInpMultdouble2.0
Draw Right-Side Bin HistogramInpShowHistbooltrue

AIMS Cubic Bezier Extrap​

  • Placement: Main-Chart Overlay
  • Version: 1.00
  • Platform: MetaTrader 5 (MQL5)
  • Summary: Cubic Bezier Curve Extrapolation
  • Plot Labels: Cubic Bezier Curve, Extrapolated Projection

Parameters​

ParameterVariableTypeDefault
Bezier Anchor Window (Bars)InpWindowint60
Forward Extrapolation BarsInpExtrapBarsint5