Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing Data in one of the instruments

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

    Missing Data in one of the instruments

    Hi,

    I'm running a backtest on a multi-instrument strategy more then 100 names.
    My problem is that if one of the instrument has less data all the backtest is done only on the data period of the shortest instrument.
    I understand this is the design of NT but my problem is how can I identify which is the shorter data instrument so I can add more data to him without going over all the list one by one which is impractical.

    I hope I made my problem clear enough.

    Thanks in Advance,
    Roy

    #2
    Correct Roy, that OnBarUpdae() calling outcome would be expected in this context. I would look into working with Count (which works in BIP context) to highlight the instrument / series is having too less data.

    Comment


      #3
      Thanks Bertrand.

      If anybody will encounter same problem here is the code I use:
      Code:
      protected override void OnBarUpdate()
      {
             if (CurrentBar == 1) Print(Instruments[BarsInProgress].FullName + " " Count);
              ...
       
      }

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      157 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      91 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      143 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      131 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X