From the output I am seeing:
1/31/2019 10:48:25 AM Strategy '/154496965': Entered internal SubmitOrderManaged() method at 1/31/2019 10:48:25 AM: BarsInProgress=0 Action=Sell OrderType=StopMarket Quantity=100 LimitPrice=0 StopPrice=270.06 SignalName='BreakEvenLongBounceVL' FromEntrySignal='LongBounceVL'
1/31/2019 10:48:25 AM Strategy '/154496965': Entered internal SubmitOrderManaged() method at 1/31/2019 10:48:25 AM: BarsInProgress=0 Action=Sell OrderType=StopMarket Quantity=100 LimitPrice=0 StopPrice=270.06 SignalName='BreakEvenLongBounceVLST' FromEntrySignal='LongBounceVLST'
1/31/2019 10:48:25 AM PositionLongBounce: True = true & MarketPosition: Long = Long & Close[0]: 270.36 > (AveragePrice + (45 * TickSize)): 270.56 & BreakEvenLongBounce: True = true
I'm not sure what was suppose to happen, but the condition should not have evaluated as true. I see some stop market orders were placed, but they should not have come from this condition set.
270.36 is not greater than 270.56
Perhaps try a shorter distance for the offset?
With the BreakEvenLongBounceVL and BreakEvenLongBounceVLST orders that were working, there were sell stop markets at 270.06. I'm not certain what the low of that bar is, but the close price is much greater than that so these stop market orders would not have filled.
Comment