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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      326 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      251 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      353 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X