I would like a block of code in my Strategy to fire anytime an order is filled, whether that order was placed algorithmically or manually. I'm assuming it has something to do with OnExecution(), but my following block of code produces nothing:
protected override void OnExecution(IExecution execution) { if (execution.Order != null && execution.Order.OrderState == OrderState.Filled) { Print("Time: " + Time[0]); } }
Thanks.
-Nick
Comment