From TraceOrders, it seems that it is also logging the time of the correct timeframe bar in the log statements (00:11:00), but the error log line shows the time of the incorrect bar (00:00:00):
01/02/2000 00:11:00 Entered internal PlaceOrder() method at 01/02/2000 00:11:00: Action=BuyToCover OrderType=Limit Quantity=0.1M LimitPrice=0.9700'5 StopPrice=0 SignalName='X S @LMT' FromEntrySignal='Enter S'
01/02/2000 00:11:00 Entered internal PlaceOrder() method at 01/02/2000 00:11:00: Action=BuyToCover OrderType=Stop Quantity=0.1M LimitPrice=0 StopPrice=0.9711'5 SignalName='X S @STP' FromEntrySignal='Enter S'
**NT** A BuyToCover stop order placed at '01/02/2000 00:00:00' has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
01/02/2000 00:11:00 Ignored PlaceOrder() method at 01/02/2000 00:11:00: Action=BuyToCover OrderType=Stop Quantity=0.1M LimitPrice=0 StopPrice=0.9711'5 SignalName='X S @STP' FromEntrySignal='Enter S' Reason='Invalid order price, please see log tab'
I have a high timeframe as the primary timeframe, and I add the One Minute timeframe in the initialization() method. Perhaps it is meant to be the lowest timeframe is first?
Or is this a known bug?

Comment