Download MetaTrader 5

Modify comment of deal

To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
zifu wang
636
zifu wang 2012.04.04 09:11 

Guys,  Is it possible to modify comment of deal which you have placed?  

Alexey Petrov
Admin
1219
Alexey Petrov 2012.04.04 11:06  
If under 'deal' you mean a position, then yes - by performing another deal by the same symbol (increasing position volume or partial closing). In this case the old comment to the position will be replaced by a new comment
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Position Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Position Properties - Documentation on MQL5
zifu wang
636
zifu wang 2012.04.04 14:49  
alexey_petrov:
If under 'deal' you mean a position, then yes - by performing another deal by the same symbol (increasing position volume or partial closing). In this case the old comment to the position will be replaced by a new comment

Not for position, just for a deal, I wanna replace old comment of the deal with new one. 

Is there any function to perform this job? like this format: 

comment(long deal_number, string new_comment) ;
Alexey Petrov
Admin
1219
Alexey Petrov 2012.04.05 10:56  
Unfortunately, there is no such function. You can only set a comment while sending an order via OrderSend
zifu wang
636
zifu wang 2012.04.05 11:16  
alexey_petrov:
Unfortunately, there is no such function. You can only set a comment while sending an order via OrderSend
Can this be escalated as a feature request?
Alexey Petrov
Admin
1219
Alexey Petrov 2012.04.05 12:26  
kwang1:
Can this be escalated as a feature request?
You can write your suggestion to Service Desk (in your profile) describing in details why this feature should be added.
To add comments, please log in or register