Discussion of article "Processing of trade events in Expert Advisor using the OnTrade() function" - page 3

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?