Download MetaTrader 5
To add comments, please log in or register
Take active part in the life of the community. Improve your rating!
TT_FX1
145
TT_FX1 2008.01.23 21:21 

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
2655
Ray 2008.01.23 21:38  

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 2015.02.23 18:54  
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
13630
whroeder1 2015.02.23 19:31  
  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