Understanding Standard Deviation (StdDev) in MetaTrader 5: A Trader's Guide

Mike 2010.01.26 20:23 59 0 0
Attachments

Hey traders! Today, we’re diving into a handy technical indicator that every trader should have in their toolbox: Standard Deviation (commonly referred to as StdDev). This indicator is all about measuring market volatility.

So, what’s the deal with StdDev? It helps us understand the scale of price fluctuations compared to the Moving Average. If you notice a large StdDev value, it indicates that the market is quite volatile, with price bars straying far from that moving average. On the flip side, a low StdDev value suggests that the market is calm, with prices clustering around the moving average.

Typically, traders use this indicator in conjunction with others. For example, when calculating Bollinger Bands, the StdDev value is added to the Moving Average to create those bands we all know and love.

Market behavior tends to ebb and flow, swinging between high trading activity and sluggish periods. Here’s how to interpret StdDev:

  • If the StdDev value is too low, it usually indicates that the market is pretty quiet, which often suggests a potential spike in activity is on the horizon.
  • Conversely, if the StdDev value is extremely high, it’s likely that the market is about to take a breather and activity may slow down soon.

Standard Deviation technical indicator

Calculation:

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

Where:

  • StdDev (i) - Standard Deviation of the current bar;
  • SQRT - square root;
  • AMOUNT(j = i - N, i) - sum of squares from j = i - N to 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.
List
Comments 0