Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Loading data

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

    Loading data

    Hi,

    Is there a way to keep a secondary dataseries from loading and load it programmatically like the Pivots indicator does?

    I need to load a decent amount of historical intraday data but once in real time I also need 1 tick bars. If I add a second data series for the tick data, the strategy takes forever to load (which seems reasonable enough) and I do not need the data.

    What I would like to do is load only a couple of days of tick data yet still have it once I am in real time.

    Any help will be appreciated.

    Best Regards,
    Scott

    #2
    Hello,

    Do you want to prevent the historical data from loading on both data series? Or only on the added data series?

    If you would like to prevent this historicla data for both series from loading, you can add:

    Code:
    // Only run on real-time data
         if (Historical) 
              return;
    If this is not exactly what you're looking for please let me know and we can look at alternatives to meet your needs.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew,

      I only want to prevent it from loading on the second dataseries, I need the historical data from the primary dataseries.

      Under any circumstances, it would seem your idea would only keep the strategy from processing the data (which isn't the issue) rather than keep the strategy from loading the data (which is where the time required comes in with 1 tick bars).

      Thanks,
      Scott

      Comment


        #4
        Hello,

        You cannot completely prevent the secondary series from being loaded, but it usually isn't the data loading that takes time, it's typically the historical processing on this series.

        You can prevent the historical data from being processed on the secondary series by adding a check for historical in BIP

        Code:
            if (BarsInProgress == 1 && Historical)
                        return;
        MatthewNinjaTrader Product Management

        Comment


          #5
          Thanks for the help Matthew, I appreciate it.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          113 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          60 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          39 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          43 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          80 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X