Need help in coding my EA (it won't execute trades when there is requote)

 

I need help in adding function to execute when any requotes happened.


This EA open & close position smoothly when the 1st instant order sent to server executed but if it's fail due to requote (price have changed), this EA didn't execute in the new price offered although the new price is still within slippage range.


Perhaps this happened because there's no open & close position re-try features.


Can someone help me adding this features ?


Thanks

Files:
ma.mq4  10 kb
Reason: