Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cbi.Simulator.OnTimerSubmitTick

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cbi.Simulator.OnTimerSubmitTick

    BETA3: This occurred as I started up about 24 strategies at the same time. 2 errors listed might be independent. This could be related to http://ninjatrader.com/support/forum...ad.php?t=76249
    ---- Assert Short Message ----
    Cbi.Simulator.OnTimerSubmitTick

    2015-07-15 17:54:56:133 Cbi.Instrument.RequestBars (to Provider): instrument='YM 09-15' from='07/15/2015 17:00:00' to='07/15/2015 23:59:59' period='1 Tick'
    2015-07-15 17:54:56:622 Cbi.Instrument.RequestBars (to Provider): instrument='ZB 09-15' from='07/15/2015 16:00:00' to='07/15/2015 23:59:59' period='1 Tick'
    2015-07-15 17:54:56:623 Cbi.Instrument.RequestBars (to Provider): instrument='YM 09-15' from='07/15/2015 00:00:00' to='07/15/2015 00:00:00' period='1 Minute'
    2015-07-15 17:54:58:203 Cbi.Instrument.RequestBars (to Provider): instrument='ZN 09-15' from='07/15/2015 16:00:00' to='07/15/2015 23:59:59' period='1 Tick'
    2015-07-15 17:55:05:339 (NTBroker) Cbi.Account.Submit0: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Initialized instrument='ES 09-15' orderAction=BuyToCover orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 id=705 gtd='2099-12-01' currentOrderState=Initialized
    2015-07-15 17:55:05:345 (NTBroker) Cbi.Account.Submit1: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Initialized instrument='ES 09-15' orderAction=BuyToCover orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 id=705 gtd='2099-12-01' currentOrderState=Initialized
    2015-07-15 17:55:05:360 (NTBroker) Cbi.Simulator.Submit: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Initialized instrument='ES 09-15' orderAction=BuyToCover orderType='Market' limitPrice=0 stopPrice=0 quantity=1 tif=Gtc oco='' filled=0 averageFillPrice=0 id=705 gtd='2099-12-01'
    2015-07-15 17:55:05:388 (NTBroker) Cbi.Account.OrderUpdateCallback: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Submitted instrument='ES 09-15' orderAction=BuyToCover limitPrice=0 stopPrice=0 quantity=1 orderType='Market' filled=0 averageFillPrice=0 error=NoError comment=''
    2015-07-15 17:55:05:443 Cbi.Instrument.RequestBars (to Provider): instrument='6J 09-15' from='07/15/2015 16:00:00' to='07/15/2015 23:59:59' period='1 Tick'
    2015-07-15 17:55:05:443 Cbi.Instrument.RequestBars (to Provider): instrument='6J 09-15' from='07/15/2015 00:00:00' to='07/15/2015 00:00:00' period='1 Minute'
    2015-07-15 17:55:05:703 ---- DEBUG ASSERTION FAILED ----
    ---- Assert Short Message ----
    Cbi.Simulator.OnTimerSubmitTick
    ---- Assert Long Message ----
    at NinjaTrader.Cbi.Simulator.OnTimerSubmitNow(Order order)
    at NinjaTrader.Cbi.Simulator.OnTimerTick(Object sender, EventArgs e)
    at System.Timers.Timer.MyTimerCallback(Object state)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.TimerQueueTimer.CallCallback()
    at System.Threading.TimerQueueTimer.Fire()
    at System.Threading.TimerQueue.FireNextTimers()
    2015-07-15 17:55:28:310 Cbi.Instrument.RequestBars (to Provider): instrument='PL 10-15' from='07/15/2015 17:00:00' to='07/15/2015 23:59:59' period='1 Tick'
    2015-07-15 17:55:28:310 (NTBroker) Cbi.Account.OrderUpdateCallback: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Accepted instrument='ES 09-15' orderAction=BuyToCover limitPrice=0 stopPrice=0 quantity=1 orderType='Market' filled=0 averageFillPrice=0 error=NoError comment=''
    2015-07-15 17:55:28:310 (NTBroker) Cbi.Account.OrderUpdateCallback: orderId='042ef35fbbd84e84bfda62e243f83a02' account='Sim101' name='Synchronize' orderState=Working instrument='ES 09-15' orderAction=BuyToCover limitPrice=0 stopPrice=0 quantity=1 orderType='Market' filled=0 averageFillPrice=0 error=NoError comment=''
    2015-07-15 17:55:28:313 *************** unhandled exception trapped ***************
    2015-07-15 17:55:28:313 Exception has been thrown by the target of an invocation.
    2015-07-15 17:55:28:313 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Cbi.Simulator.OnMarketData(Object sender, MarketDataEventArgs e)
    at NinjaTrader.Cbi.Simulator.<>c__DisplayClass1b.<OnT imerSubmitNow>b__1a(MarketDataEventArgs e)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeIn ternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    #2
    Hello NJA_MC,

    Thanks for reporting this.

    First, may I have a screenshot of the parameters used with the script(s)?

    Second, I would like you to try enabling 24 instances of the SampleMACrossOver strategy. We need to know if we are looking at an issue with the data loading, or if the issue is with one or more of the scripts that you have run.

    Are you able to reproduce the issue using multiple instances of the SampleMACrossOver?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Attached is the screenshot.

      I will see if I can get the sample strategy to do the same thing.
      Last edited by NJA_MC; 07-16-2015, 01:50 PM. Reason: Image not required

      Comment


        #4
        Hi NJA_MC,

        I am wanting a screenshot of the Strategies window showing the strategy parameters. I am not able to see what these values are for.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Okay,

          Hopefully this is what you are looking to get, I cropped the parameters I have for the strategy settings. Let me know if this is what you need.
          Attached Files
          Last edited by NJA_MC; 07-16-2015, 01:54 PM. Reason: Added MINUTE Image as well

          Comment


            #6
            Hi NJA_MC,

            Thank you this is what I am after.

            Please let me know if you are able to reproduce using the SampleMACrossOver script.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Rapine Heihei, Today, 08:19 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 08:25 PM
            0 responses
            5 views
            0 likes
            Last Post Rapine Heihei  
            Started by f.saeidi, Today, 08:01 PM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 07:51 PM
            0 responses
            6 views
            0 likes
            Last Post Rapine Heihei  
            Started by frslvr, 04-11-2024, 07:26 AM
            5 responses
            98 views
            1 like
            Last Post caryc123  
            Working...
            X