MA Mode Question

 

how do I use special modes in MA settings like:

MA-Method = Linear Weighted

MA-Method = Exponetial

Apply to = First Indicators Data

   MA1 = iMA(NULL, 0, 11, 0, MODE_Linear, PRICE_First,0);
   MA2 = iMA(NULL, 0, 34, 0, MODE_Exponent, PRICE_First,0);
 

OK i have found the mode codes

https://docs.mql4.com/indicators/iMA

but there is no code for applied_price = First Indicators Data

   MA1 = iMA(NULL, 0, 11, 0, MODE_LWMA, PRICE_First,0);
   MA2 = iMA(NULL, 0, 34, 0, MODE_EMA, PRICE_First,0);
 

As far as I know, you can't.

You have to get the values of the indicator into a buffer and then use iMAOnArray.

If I am wrong then I will be more than happy to find out how to do it :)

Reason: