Download MetaTrader 5

Is it possible to modify the order comment

To add comments, please log in or register
TT_FX1
145
TT_FX1  

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

Ray
2650
Ray  

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.

Luis
226
Luis  
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...
whroeder1
14781
whroeder1  
  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
To add comments, please log in or register