Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Missed data for one interval on multi-instrument strategy

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

    Missed data for one interval on multi-instrument strategy

    Hi all,

    I'm running a live multi-instrument (2) strategy against TD Ameritrade data. On each call to OnBarUpdate, I print Time[0] to the output window. Both instruments are set for a one-minute timeframe. Today, the timestamps looked OK (for the most part) until I placed an order. Then I missed an interval, i.e., I didn't get data for one of the instruments. Here's the sequence:

    9:40 instrument #1
    9:40 instrument #2
    9:41 instrument #1
    9:41 instrument #2
    9:42 instrument #1
    9:43 instrument #1 <-- What happened to 9:42 instrument #2?
    9:42 instrument #2 <-- It shows up after 9:43 instrument #1.
    <-- Data for 9:43 instrument #2 never arrives.
    9:44 instrument #1
    9:44 instrument #2

    The output window also shows that OnExecution was called following "9:42 instrument #2". Is it possible that OnExecution delayed the print to the output window? Did that delay cause me to miss the 9:43 data?
    OR...
    Is this caused by the TD Ameritrade data feed? It would be quite a coincidence that the interval where I placed my order happened to be the one that was delayed by TD, but who knows?
    OR...
    Maybe it's a combination of both?

    Thanks for any help!
    Mike

    #2
    Mike,

    It would not hold the data. There could have been a hiccup in the data feed. Please try refreshing your historical data and see if that clears things up.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Josh.

      A refresh shows me the data, so I'll chalk this one up to a hiccup. I'll keep an eye on it because, although I have the historical data, my strategy was unable to process that bar live.

      Mike

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by jackiegils, Today, 11:05 PM
      0 responses
      5 views
      0 likes
      Last Post jackiegils  
      Started by cre8able, Yesterday, 09:15 PM
      2 responses
      17 views
      0 likes
      Last Post cre8able  
      Started by Trader146, Today, 09:17 PM
      0 responses
      9 views
      0 likes
      Last Post Trader146  
      Started by ttrader23, 05-08-2024, 09:04 AM
      9 responses
      43 views
      0 likes
      Last Post ttrader23  
      Started by ZeroKuhl, Yesterday, 04:31 PM
      8 responses
      46 views
      0 likes
      Last Post ZeroKuhl  
      Working...
      X