Standard Deviation (StdDev) - indicator for MetaTrader 4

Standard Deviation (StdDev) - indicator for MetaTrader 4

The Standard Deviation Indicator (StdDev) measures the market volatility. This indicator describes the price standard deviation value relative to the Moving Average.

The higher the Standard Deviation is, the more instable (volatile) the market is, i.e., bars prices are rather dispersed relative to the moving average. Opposite, the lower the deviations is, the more immovable the market is, i.e., the bars prices are approaching to the moving average very much. It is known, however, that the market dynamics consists in interchange of quiet periods and activity spikes.

So, the approach to this indicator is simple:

  • if the indicator value is too low (i.e., if the market is completely calm), it would be reasonable to expect the activity spike soon;

  • on the contrary, if the indicator is extremely high, this means that the activity will slow down soon.


StdDev (i) = SQRT (AMOUNT (j = i - N, i) / N)

AMOUNT (j = i - N, i) = SUM ((ApPRICE (j) - MA (ApPRICE (i), N, i)) ^ 2)


  • StdDev (i) — Standard Deviation of the current bar;
  • SQRT — square root;
  • AMOUNT(j = i - N, i) — sum of squares from j = i - N till i;
  • N — smoothing period;
  • ApPRICE (j) — the applied price of the j-th bar;
  • MA (ApPRICE (i), N, i) — any moving average of the current bar for N periods;
  • ApPRICE (i) — the applied price of the current bar.

The Standard Deviation Indicator (StdDev) MetaTrader 4

Full description of StdDev is available in the Technical analysis: Standard Deviation

Download Standard Deviation (StdDev) - indicator for MetaTrader 4

Related News

Latest News
Malaysia's economic growth slows to 4.4% in third-quarter year-on-year, in line with forecast
15.11.2019 05:15
KUALA LUMPUR (Reuters) - Malaysia's economy grew 4.4% in the third quarter from a year earlier, the central bank said on Friday, the slowest in a year on weaker exports amid the U.S.-China trade war. The pace of expansion matched the 4.4% rise forecast in a Reuters poll, but was much slower than the 4.9% pace in the second quarter. Malaysia
Read more
Thailand’s ‘Fragile’ Economy Expected to Post Muted Recovery
15.11.2019 05:12
(Bloomberg) -- Follow Bloomberg on LINE messenger for all the business news and analysis you need. Thailand’s economic expansion likely accelerated modestly in the third quarter from the slowest pace in almost five years, weighed down by the strength of the country’s currency. Gross domestic product probably rose 2.8% in the three months through
Read more
Malaysia Economic Growth Weakest in a Year Amid Global Slowdown
15.11.2019 05:09
(Bloomberg) -- Malaysia’s economic growth eased in the third quarter to its slowest pace in a year amid declining exports and weaker factory output. Gross domestic product rose 4.4% in the three months through September from a year ago, according to figures from the central bank. That matched the median expectation in a Bloomberg survey of
Read more
China Injects Cash Into Banking System as Growth Slows
15.11.2019 05:06
(Bloomberg) -- China unexpectedly injected cash into the financial system with a medium-term tool, in an effort to aid an economy expanding at the slowest pace since the early 1990s. The People’s Bank of China offered 200 billion yuan ($29 billion) of one-year loans to banks Friday, while keeping the interest rate unchanged at 3.25%, according to
Read more
Forex - U.S. Dollar Unchanged Amid Latest Trade News
15.11.2019 05:03 - The U.S. dollar was little changed on Friday in Asia as traders evaluated the latest trade news. Gao Feng, China’s Ministry of Commerce spokesperson, insisted again at a weekly press conference that the U.S. should roll back tariffs as part of a “phase one” agreement. “The trade war was begun with adding
Read more