Dear programmers. Can you help? I have to "tighten" an EA (I am laying it out) to set the number of open orders. I do not know if it will help. I put these owls on several pairs and only one order is opened. If I open an order on one of the pairs the signals on the other pair are not ignored. I do not know what to do with it.
Can you please tell me the code: EA opens one order per day, how to close these orders at the end of the day, e.g. 23:50?
if(TimeCurrent()>=D'23:50') close_all();
Will this option close all orders or only those which have been opened by the EA?
In this case, will all orders be closed or only those opened by the Expert Advisor?
:)))
What you write in the close_all() function
:)))
What you write in close_all()
It's not entirely clear about the close_all() function, it's not in the metadvisor. Maybe the OrderClose() function is meant?
he means something like this
he means something like this