Skip to content
72lab

Standard Deviation EA: no-code builder for MT4 / MT5

Volatility and trend strengthStandard Deviation measures how widely price is spread around its moving average; the higher the value, the more volatile the market. Use it as a volatility filter to enter only when volatility expands.

Rules you can build with it

Works as an entry rule or an exit rule. Short rules are mirrored automatically.

  • Long & shortStandard Deviation rises
  • Long & shortStandard Deviation falls
  • Long & shortStandard Deviation is above 100 points(adjustable level)
  • Long & shortStandard Deviation is below 100 points(adjustable level)
  • Long & shortStandard Deviation crosses above 100 points(adjustable level)
  • Long & shortStandard Deviation crosses below 100 points(adjustable level)

Settings

SettingsDefaultRange
Period202 – 100
MA typeSimple moving average (SMA)Simple moving average (SMA) / Exponential moving average (EMA) / Smoothed moving average (SMMA) / Linear weighted moving average (LWMA)
PriceCloseClose / Opening price / High / Low / Median price / Typical price / Weighted close
Level (points)1000 – 5000

How the backtest and the EA calculate it

Same as MT5's Standard Deviation: the population standard deviation of price around the chosen moving average.

Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.

Example strategies

Example 1
  • Entry · Standard Deviation (20, SMA, Close): Standard Deviation rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop
Example 2
  • Entry · Standard Deviation (20, SMA, Close): Standard Deviation rises
  • Entry · Moving Average (50, EMA, Close): MA rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop

Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.