In non-reversal scenario, it seems like overfills are a result of two items. First, orders are too close together and can both be triggered with normal volatility, which is a strategy issue to deal with. Second, a quick large price spike that can take out orders on both sides. In both cases the issue is orders being filled before being canceled via OCO.
When exactly is the HasOverfill flag set in an order? Does this depend on IgnoreOverfill setting?
When IgnoreOverfill is set to false, what actions does Ninja take to detect/correct an overfill? What orders would the strategy see come thru (i.e. order name or other signifying item) that correct the position?
Does setting IgnoreOverfill to true, disable the detection of overfill and setting the HasOverfill flag?
Is there any way to simulate/force this activity in replay?
Comment