Moving average on ATR in MT4

 

Hi,

I want to have iMA 200 period on iATR 14 period in MT4. I have written the following code but it returns 0 and I don't what is the problem.  Any help is appreciated.

MA200=iMA(_Symbol,PERIOD_CURRENT,200,0,MODE_SMA,iATR(_Symbol,PERIOD_CURRENT,14,0),0);

Attached phot shows my request clearly.


 
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. You can't use iMA but iMAonArray.

  3. Nothing attached.
 

Dear William,

thank you. I am new in the forum and may have some mistakes.

Thanks again for your guidance.



William Roeder #:
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. You can't use iMA but iMAonArray.

  3. Nothing attached.