Everything can be called crutches. Because one does not understand assembly language machine code well, high-level and ultra-high-level programming languages were invented. What are not crutches?
When an exit/close condition occurs, add the tickets to the array. Then, if the array is non-empty, loop through it, calling OrderClose for each ticket. Then check existence of each ticket, and remove it from the list. Repeat these actions at 1-3 second intervals until the list is empty.
Можно ли в MetaTrader 5 торговать на реале уже сегодня? Как организовать такую торговлю? Приводится теория этих вопросов и рабочие коды, при помощи которых реализуется копирование сделок из терминала MetaTrader 5 в MetaTrader 4. Статья будет полезна как разработчикам советников, так и практикующим трейдерам.
makssub #: That would be fine, I guess. Can I have an example of implementation on a couple of orders?
Unfortunately, I don't have the time to write the code for you right now. Maybe someone with a lot of free time could do it... Or you can find examples on the Internet...
Dear professionals, I would like to ask for your help. Maybe I didn't read the whole thing. Can you please tell me if it is possible to fill an array from the keyboard?
Polycysticism is everything
that's at first :)
Of course, when I see such codes, tears of pity come to my eyes.
that's at first :)
Of course, when I see such codes, tears of pity come to my eyes.
At the same time, crutches won't write themselves...
that's at first :)
Of course, when I see such codes, tears of pity come to my eyes.
Gentlemen, please use reasoned criticism.
Gentlemen, please use reasoned criticism.
That's just us... just talking during a smoke break. Don't mind us.
When an exit/close condition occurs, add the tickets to the array. Then, if the array is non-empty, loop through it, calling OrderClose for each ticket. Then check existence of each ticket, and remove it from the list. Repeat these actions at 1-3 second intervals until the list is empty.
Can you show the entire closing function?
I drag and drop the EA into MT4 to the chart. Nothing happens. Why?
The option I suggested doesn't work for you?
That would be fine, I guess. Can I have an example of implementation on a couple of orders?
Unfortunately, I don't have the time to write the code for you right now. Maybe someone with a lot of free time could do it... Or you can find examples on the Internet...