FYI - the actual exit order in the trace log was this:
4/23/2013 12:59:59 PM Entered internal PlaceOrder() method at 4/23/2013 12:59:59 PM: BarsInProgress=0 Action=BuyToCover OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='Exit Short Position' FromEntrySignal='Short Position'
Here's the code that triggered it.
exitOrder = ExitShort(0, DefaultQuantity, "Exit Short Position", SHORT_POSITION);
As far as I can see it's a plain old market order.
My log code is doing this:
buffer.Append("EXIT REMINDER: ").Append(order.OrderAction).Append(" at ").Append(order.AvgFillPrice).Append(" and clear all stops").Append(".\n");
So as you can see it was logging the order.AvgFillPrice. Here's the actual output:
EXIT REMINDER: BuyToCover at 1.05294 and clear all stops.
FYI - and not obvious from the screenshot - the previous candle's high was 1.0528'4 - exactly one tick lower. I don't recall setting the exit to one tick above the high. And the exitOrder code above that triggered it is obviously a market order.
So I'm confused - anyone any idea as to what may be happening?
Thanks!
Molecool
Comment