Download MetaTrader 5

how to add comment in PositionClose function

To add comments, please log in or register
mohsen bahrami
284
mohsen bahrami  

hi

how can i  add a comment when im using PositionClose?

thanks 

Vladimir Karputov
Moderator
68542
Vladimir Karputov  
mohsen bahrami:

hi

how can i  add a comment when im using PositionClose?

thanks 

When you use  PositionClose -  comment cannot be added.

Osama Shaban
1615
Osama Shaban  

Comment is added to the order only at order open then it can't be changed.

If you want to use such a request in recording something like why order is closed or recording what was ADX value at close time, ... etc ...

there is an idea to generate a text file works as log file to all transactions happened during testing or trading.

I always thinking about such a solution but never did it before ...

I believe such a solution can be done easily if you are a coder or just ask someone to do it for you in the freelancers section. 

Jose Francisco Casado Fernandez
3591
Jose Francisco Casado Fernandez  
Osama Shaban:

Comment is added to the order only at order open then it can't be changed.

If you want to use such a request in recording something like why order is closed or recording what was ADX value at close time, ... etc ...

there is an idea to generate a text file works as log file to all transactions happened during testing or trading.

I always thinking about such a solution but never did it before ...

I believe such a solution can be done easily if you are a coder or just ask someone to do it for you in the freelancers section. 

You can use a simple Print(). It's not necessary to create a text file.

Regards.

To add comments, please log in or register