Bug: PositionClosed not consistently firing

Created at 02 Sep 2013, 21:08
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!
JO

johnswentworth

Joined 02.09.2013

Bug: PositionClosed not consistently firing
02 Sep 2013, 21:08


I find that when I set many takeprofits, the PositionClosed event does not consistently fire. In fact, the function is simply not called on takeprofit execution almost as often as it is called. As a result, I must either set limit positions and then pay spreads to close them, or abandon an event-driven architecture and query every second to see whether a takeprofit has executed.

 


@johnswentworth
Replies

cAlgo_Fanatic
03 Sep 2013, 11:34

RE:

johnswentworth said:

I find that when I set many takeprofits, the PositionClosed event does not consistently fire. In fact, the function is simply not called on takeprofit execution almost as often as it is called. As a result, I must either set limit positions and then pay spreads to close them, or abandon an event-driven architecture and query every second to see whether a takeprofit has executed.

Please explain your algorithm or send us your code or relevant code snippet to engage@spotware.com in order to investigate. 


@cAlgo_Fanatic