Is it possible to modify the order comment

 

Hi all

I m new to MQL4, other than using OrderComment() function to read back the comment, is there a way to modify or change the existing order comment ?

Please advice

Thanks


Tom

 

OrderModify()...

Parameters:

ticket - Unique number of the order ticket.
price - New open price of the pending order.
stoploss - New StopLoss level.
takeprofit - New TakeProfit level.
expiration - Pending order expiration time.
arrow_color - Arrow color for StopLoss/TakeProfit modifications in the chart. If the parameter is missing or has CLR_NONE value, the arrows will not be shown in the chart.


No.

 
Definetly should be a way of doing this. During my EA I change the tp of some Open Orders if they find some condition on the market, I dont know how to make my EA recognise that orders in the future...
 
  1. Don't resurrect seven year old threads.
  2. brokers can change comments, including complete replacement.
  3. Use Magic number in OrderSelect loop. order accounting - MQL4 forum
Reason: