I am trying to do repetitive ordermodify task but wish to keep track of which orders had been affected to avoid repeats.
How best can I do this? Ideas needed please.
I would use the ticket-number to identify different orders.
Or you can place an Text Object on the Chart.
Thanks for the answer.
Let me try to explain further.
I place an order with ordersend and add a magic no.
I select the order using the magic no & close 50% of the trade based onan instruction from an external source. I do not want that last instructionrepeated on every tick since it has already been carried out.
Of course, I cannot modify comment, this would have solved the problem.
So, I am looking for a way to add a unique id somewhere that lets the programknow that a specific instruction is done and should not be repeated.I can easily loop through these to see if the id unique id has been done or not.
You have to save what you have done in your program.
you can use a struct and an array of struct..
How to do I save? Sorry. I'm fairly new to MQL
Have access to all codes.
Writing it myself.