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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X