tenlau:
You have to use OnTradeTransaction() event handler, see this topic.
Hello,
A novice question:
I do not know how to verify/check if a position was closed by "touching" of StopLoss price. I mean that the position was opened with a StopLoss>0; also I coded some other conditions to close the position. How can I distinguish that the position was closed by StopLoss "touching" and not by the others conditions.
Thanks in advance for suggestions!

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
Hello,
A novice question:
I do not know how to verify/check if a position was closed by "touching" of StopLoss price. I mean that the position was opened with a StopLoss>0; also I coded some other conditions to close the position. How can I distinguish that the position was closed by StopLoss "touching" and not by the others conditions.
Thanks in advance for suggestions!