How to keep notes

 

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.

Cheers

 

Manually?

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 on
an instruction from an external source. I do not want that last instruction
repeated 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 program
know 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

 
?? you are using a program that sends your orders?
 
Receives and executes the orders.
 
do you have access to the code - or are you doing the modifications yourself - manually or by code?l
 

Have access to all codes.

Writing it myself.

 
So if your code does something save that in a counter, a string, a struct - in a logfile, show it as comment?