How To Close All Open Orders at the touch of the MA Not after the candle close?
AhmedMorra: i want to close them if the price "touched " the MA not after the Candle close under the MA,
|
|
William Roeder:
|
Thanks. your suggestions helped me find out what was wrong with my code.
When you say "Touch" the price,strategy tester should be on "Every tick", and I learned it the hard way.
Hello Fellow Traders,
It's have been a week since i started learning how to program MQL4
And i Have A problem , The EA I am working on opens a lot of orders and i want all these orders to be closed at the touch of the ma
let's say i have opened 7 buy orders above 21 MA and i want to close them if the price "touched " the MA not after the Candle close under the MA, if that makes sense.
that is the code i am using to close all orders after the touch but it closes all the orders after the candle closes below the MA
thanks traders