How to find the difference of MA

 
it not work. Hope results in Points. &&(iMAMQL4(NULL,0,89,0,MODE_EMA,PRICE_CLOSE,0)-iMAMQL4(NULL,0,200,0,MODE_EMA,PRICE_CLOSE,0)>100)
MQL5 forum
MQL5 forum
  • www.mql5.com
MQL5: Forum on automated trading systems and strategy testing
 

Assuming that your iMAMQL4 function works correctly (that is not sure due to the fact we have no visibility of the entire code), it should work correctly.

Be sure of correcting

&&(iMAMQL4(NULL,0,89,0,MODE_EMA,PRICE_CLOSE,0)-iMAMQL4(NULL,0,200,0,MODE_EMA,PRICE_CLOSE,0)>100)

to

&&(iMAMQL4(NULL,0,89,0,MODE_EMA,PRICE_CLOSE,0)-iMAMQL4(NULL,0,200,0,MODE_EMA,PRICE_CLOSE,0)>100*_Point)
 
Fabio Cavalloni #:

Assuming that your iMAMQL4 function works correctly (that is not sure due to the fact we have no visibility of the entire code), it should work correctly.

Be sure of correcting

to

That Work, Thank you.