Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Standard_Error_Bands

Standard Error Bands indicator - Smoothed linear regression line: 21-period linear regression curve smoothed by a three-period simple moving average. Upper channel line - linear regression line plus 2 standard errors. Lower channel line is a linear regression line minus 2 standard errors.

The indicator was described by John Andersen in "Stock and Commodities" magazine in September 1996.

It has four inputs:

  • Regression period - linear regression period
  • Smoothing period
  • Multiplier - standard deviation ratio
  • Applied price

Calculation:

Central = SMA(LReg,Smoothing period) Top    = Central + Multiplier * Deviation Bottom = Central - Multiplier * Deviation

where:

Deviation = StdDev(LReg,Smoothing period) LReg - linear regression at 'Applied price' with the 'Regression period' calculation period

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

22364