What does WMA with period = 1 mean?

 

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

 
  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);
 
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!

Reason: