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
| Settings | Default | Range |
|---|---|---|
| Period | 20 | 2 – 100 |
| MA type | Simple moving average (SMA) | Simple moving average (SMA) / Exponential moving average (EMA) / Smoothed moving average (SMMA) / Linear weighted moving average (LWMA) |
| Price | Close | Close / Opening price / High / Low / Median price / Typical price / Weighted close |
| Level (points) | 100 | 0 – 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
- Entry · Standard Deviation (20, SMA, Close): Standard Deviation rises
- Stop-loss 300 points, take-profit 600 points
- 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
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.