Standard Deviation Indicator Calculator
Calculate the MetaTrader-style population dispersion of an applied-price window around its current selected moving average, with every center and variance component visible.
Choose the period, MA method and applied price
Use completed OHLC bars from one consistent source. The default is a 20-period EMA over weighted close price.
One completed bar per line. Separate values with commas, semicolons or tabs. Maximum 500 rows.
Latest Standard Deviation arithmetic
Entered WPR, Standard Deviation and Heiken-Ashi 1.0.0.
| Label | Index | Open | High | Low | Close | Applied price | Moving average | Squared sum | Variance | StdDev | State |
|---|
How Standard Deviation is calculated
Standard Deviation[i] = √Variance[i], for j = i − N + 1 through i
Version 1.0.0 supports simple, exponential, smoothed and linear-weighted moving averages plus close, open, high, low, median, typical and weighted applied prices.
The current moving-average value is the center for every price in the current complete window. Variance divides by N, matching the published MetaQuotes indicator rather than sample variance divided by N minus one.
Assumptions and limits
- Period must be a whole number from 2 to 200.
- EMA and SMMA are seeded with the first complete-window simple average; changing the visible history can change later recursive values.
- The result remains in price units and is not return volatility or an annualized percentage.
- Rows must use one symbol, timeframe, price convention and broker feed.
- Volatility regime, expansion, contraction, forecast and recommendation labels are withheld.
Worked example from the audited fixture
How to interpret the result
The N-divisor deviation measures entered applied-price dispersion around the current declared moving average. It is not N−1 return volatility, and changing the applied price or averaging method changes both the center and deviation.
Frequently asked questions
- Enter one period, a moving-average method, an applied price and at least one complete period of ordered OHLC bars.
- Version 1.0.0 supports simple, exponential, smoothed and linear-weighted moving averages.
- Choose close, open, high, low, median, typical or weighted close price.
- The selected current moving average is subtracted from each applied price in the current window, squared, summed, divided by N and square-rooted.
- It divides by N, matching the published MetaQuotes indicator population convention.
- Both recursive methods start at zero-based index period minus one with the simple average of the first complete window.
- No. It is price-unit dispersion of the selected applied price and is not a return percentage or annualized statistic.
- No. Regime, expansion, contraction, forecast, direction, timing, entry and exit interpretations are withheld.
Sources and methodology
- MetaQuotes Code Base — Standard Deviation — Published current-MA-centered population variance, MA methods and applied-price options.
Compare dispersion and band arithmetic
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

