got a head scratcher. A strategy is only using Market orders to enter, and makes an entry in the NinjaScript Output window whenever it does that. You can see in the screenshot such an event at 5/27/2022 3:49PM
The problem is that the order never fills, which of course it should immediately do since it is a market order.
However, when the strategy becomes realtime (which on this occasion is after the weekend on the 29th, the order immediately submits as a live order to the account!
from the Trace file:
2022-05-29 14:49:46:781 (APEX EVAL) NinjaScript.StrategyBase.OnRestartTimerTick: strategy='jbBolliTTMStrategy/173137542'
2022-05-29 14:51:38:522 (APEX EVAL) Cbi.Account.CreateOrder: orderId='80d82805eff843cb9a1b0500be96a11c' account='SimAccount2' name='LE' orderState=Initialized instrument='MNQ 06-22' orderAction=Buy orderType='Market' limitPrice=0 stopPrice=0 quantity=6 tif=Day oco='' filled=0 averageFillPrice=0 onBehalfOf='' id=110082 time='2022-05-29 14:51:38' gtd='2099-12-01' statementDate='2022-05-29' id=-1 comment=''
This is strange behaviour, and I cannot see a reason for it. Your assistance will be appreciated.
Thanks;
saltminer

Comment