iMA on first indicator's data!?

 

Hi Guys,

 

i want to calculate MA cross over on MACD in mt4 its easy u just MA to "first indicator's data" and thats it!

however when i try to do this with MQL it says "ENUM_APPLIED_PRICE" Can't convert Enum coz by any means this will be 8th but on help file it has from 0~6 so wondering how to achieve this?

tried google not good result so wondering if there is anyway or not if not then how its available on MT4 platform!?

 

thanks in advance 

 
Fill a buffer with the MACD values, then use iMAOnArray to get the MA values
Reason: