I use the "Comments" field in a position to store the period of opening this position, and when Stop Loss/Take Profit is triggered, the terminal writes st/tp in this field. How to forbid the terminal and broker to change the comment? Or maybe you know another way to store the period for each position?
in mql5 I can't complete this thing. How to recognise only new orders irrespective of comments and majic #, I have at closing buy signalling that sell came in (and vice versa).
Strange...., why is it not shown how to track position closing by stop or take?
The article was written a long time ago. Since then a new feature has appeared
Starting frombuild 1625 there is a wonderful enumeration ENUM_DEAL_REASON:
which can be tracked in OnTradeTransaction.
Example of operation: Stop Loss Take Profit
The article was written a long time ago. Since then, a new opportunity has arisen
Starting withbuild 1625 there is a wonderful enumeration ENUM_DEAL_REASON:
which can be tracked in OnTradeTransaction.
Example of operation: Stop Loss Take Profit
super! thanks!!!
The article was written a long time ago. Since then, a new opportunity has arisen
Starting withbuild 1625 there is a wonderful enumeration ENUM_DEAL_REASON:
which can be tracked in OnTradeTransaction.
Example of operation: Stop Loss Take Profit
One more question along the way.
I use the "Comments" field in a position to store the period of opening this position, and when Stop Loss/Take Profit is triggered, the terminal writes st/tp in this field. How to forbid the terminal and broker to change the comment? Or maybe you know another way to store the period for each position?