Event for limit order fill

Created at 09 Feb 2014, 23:11
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

Event for limit order fill
09 Feb 2014, 23:11


As far as I can tell, the OnPositionOpened event does not fire when a limit order fills (at least in backtesting, and I think in real trading as well). This should be fixed, since a position is opened when a limit order fills.


@johnswentworth
Replies

Spotware
10 Feb 2014, 11:37

Probably you are trying to use OnPositionOpened method with new trading api. OnPositionOpened method is obsolete and doesn't work with new trading api. Please subscribe to Positions.Opened event: 

/forum/whats-new/1937


@Spotware