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