avoid modifying in comments

Alberto Tortella
863
Alberto Tortella  

Hi all, when an order is opened my expert writes a comment in the order.

Can I avoid that the expert modifies the comment when half position is closed at target price?

Thank you!

Simon Gniadkowski
17303
Simon Gniadkowski  
Alberto_jazz:

Hi all, when an order is opened my expert writes a comment in the order.

Can I avoid that the expert modifies the comment when half position is closed at target price?

If your EA is indeed modifying the Comment then yes you can change your code so it no longer does that . . . . I suspect it may be your Broker making the change.
Alberto Tortella
863
Alberto Tortella  

I only wrote a comment when orders are opened, so it's not my expert that modifies the comments.

I didn't know could be my broker making the change, is there a possibility to avoid this?

Simon Gniadkowski
17303
Simon Gniadkowski  
Alberto_jazz:

I didn't know could be my broker making the change, is there a possibility to avoid this?

https://www.mql5.com/en/forum/139499

https://www.mql5.com/en/forum/138539

Tjipke de Vries
6754
Tjipke de Vries  
Alberto_jazz:

I only wrote a comment when orders are opened, so it's not my expert that modifies the comments.

I didn't know could be my broker making the change, is there a possibility to avoid this?


no the order get new ticketnumber with comment like from #........

first part is closed with comment like to #..........

William Roeder
23407
William Roeder  
Alberto_jazz:

Hi all, when an order is opened my expert writes a comment in the order.

Can I avoid that the expert modifies the comment when half position is closed at target price?

Comments can NOT be modified by EA/Script at all. Brokers can change comments, including complete replacement.