No. You need to code it.
Alain Verleyen:
No. You need to code it.
No. You need to code it.
Thanks Alin
The best logic came to my mind was
1- positions count.
2- if new position count < previous position count (closed positions = previous position count < new position count).
is it good enough or there is a bitter suggestion .

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 guys
i am new in metatrader and want to learn some codes
the same as OnTick{ } or OnBar { }
is there a method that is called each time a position closes in metatrader
for example OnPositionClosed { }