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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register