Download MetaTrader 5

What does WMA with period = 1 mean?

To add comments, please log in or register
thomas2004
175
thomas2004  

Hi all,

I happen to read an article where it tells to use a WMA indicator with period = 1. Is this a nonsence? This means no smoothing and it is the same as the price itself. Right?


Thomas

whroeder1
17100
whroeder1  
  1. Yes. EMA(1) = SMA(1) = WMA(1) = Price.
  2. It is sometimes used in code as short cut, to select which price:
    input ENUM_APPLIED_PRICE    Price = PRICE_CLOSE;
    :
    double price=iMA(NULL,0,1,0,MODE_SMA, Price, i);
    line[i] = function(price);
thomas2004
175
thomas2004  
whroeder1:
  1. Yes. EMA(1) = SMA(1) = WMA(1) = Price.
  2. It is sometimes used in code as short cut, to select which price:



Many thanks!

To add comments, please log in or register