I'm trying to count the quantity executed using this code:
protected override void OnExecution(IExecution execution) { if (execution.Order == null) return; quantity += execution.Quantity; }
The strategy uses managed orders with ExitOnClose and reverses occasionally.
Any idea why this code isn't counting the quantity correctly?
Comment