Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding an Instrument without loading history

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

    Adding an Instrument without loading history

    Is there a way to get a market depth stream without loading historical data at another timescale?

    #2
    dnokes, are you looking to access the primary instruments Level 2 data stream? Then you could just work with the OnMarketDepth() stream - if you Add() instrument the same lookback as chosen for the primary series will apply.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I am using the OnMarketDepth() stream but I don't want a lookback at all. I tend to run a lot of strategy instances (a few on every front and next month instrument) and I don't want the overhead of loading and storing chart history. If I start a strategy I have to select an instrument and there appears to need to be at least 1 day of history. I just don't want NT7 to load any history at all. Is this possible?

      Comment


        #4
        You could select to create the chart with 0 bars as lookback - or do you work from the strategies tab to start them up?

        Unfortunately you would need to Add() the instrument to have programmatic access, however you could just return for example out of any OnBarUpdate() calcs with Historical, this would speed up the loading for you since you only need a realtime stream to work with.

        BertrandNinjaTrader Customer Service

        Comment


          #5
          I do work from the strategy tab (because I create the strategy instances on a Group (i.e., use and instruement list). I guess I could try selecting daily data and return from the OnBarUpdate().

          Comment


            #6
            I see, yes that should minimize the loading / memory effects for you.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by TraderIqbal, 10-20-2023, 10:12 AM
            2 responses
            117 views
            0 likes
            Last Post Funnywo
            by Funnywo
             
            Started by Creamers, 04-27-2024, 05:32 AM
            12 responses
            72 views
            0 likes
            Last Post Creamers  
            Started by fredericlebre, Today, 01:19 AM
            0 responses
            4 views
            0 likes
            Last Post fredericlebre  
            Started by TraderJA, Today, 12:06 AM
            0 responses
            6 views
            0 likes
            Last Post TraderJA  
            Started by SnailHorn, Yesterday, 10:49 PM
            0 responses
            8 views
            0 likes
            Last Post SnailHorn  
            Working...
            X