OnPositionClosed & Close events not consistent

Created at 15 Jun 2017, 13:05
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
obaum1@gmail.com's avatar

obaum1@gmail.com

Joined 06.06.2017

OnPositionClosed & Close events not consistent
15 Jun 2017, 13:05


Hey Guys :)
 
If i understood right OnPositionClosed is for positions the bot has opened and Position.Close fired when any position is closed.


I have some code that open and closes  positions in the OnPositionClosed* and also in Position.Close.
In the long run I see that the OnPositionClosed* and also in Position.Close are not called for each position that was closed.

I wanted to know, if this because something I did wrong? or it something that happens and I should relay on  OnTick even for my logic?

Thanks!!

 


 


@obaum1@gmail.com