how to add comment in PositionClose function

 

hi

how can i  add a comment when im using PositionClose?

thanks 

 
mohsen bahrami:

hi

how can i  add a comment when im using PositionClose?

thanks 

When you use  PositionClose -  comment cannot be added.

 

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. 

 
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.