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 algospoke, Yesterday, 06:40 PM
          2 responses
          19 views
          0 likes
          Last Post algospoke  
          Started by ghoul, Today, 06:02 PM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          45 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          20 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          181 views
          0 likes
          Last Post jeronymite  
          Working...
          X