OnBarUpdate()
I am placing EnterLongLimit and EnterShortLimit reversing orders.
Sometimes I get a partial fill.
#1
Later the price level changes and the EnterLongLimit() and EnterShortLimit() calls are being placed at different price levels. Could that lead to the orders not being placed and the order that was being placed @ the same price level as the partially filled order being canceled?
#2
It seems as though if I get a partial fill and continue to call the EnterLongLimit() or EnterShortLimit() OnBarUpdate() that exactly when a new minute bar gets created the order does get canceled even though I have CalculateOnBarClose set to false. The partial fill happens somewhere in the middle of the older bar let's say 30 seconds into the bar and many barupdate events fire yet the order ONLY gets canceled on the creation of a new bar on the minute exatcly!
My live strategy keeps going flat that is why I keep asking about the semantics of order canceling and order placement.
-Lars
Comment