Event for limit order fill

0
Votes

johnswentworth since: 02 Sep 2013;

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

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.

Spotware's avatar

Spotware since: 23 Sep 2013;

  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

TRADERS FIRSTâ„¢ Vote for your favorite features: https://ctrader.com/forum/suggestions