Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Data From Server In Strategy?

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

    Get Data From Server In Strategy?

    I have a large amount of strategies running and most of them will not be active unless a trigger that is read from a local file tells them to.

    Since I am running so many strategies, it takes a very long time to initialize all of them with the Get Data From Server option.

    Is there strategy code that I can use that will toggle the get data from server from within the strategy?

    #2
    Hello Cpuerta,
    Thanks for your post.

    I do see you can get to it in NT8, but I do not see an easy way in NT7. I will leave this forum post open for anyone that has more information.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh,

      Can you help me understand the pitfalls with unchecking get data from server?

      If I have no data in my local and I initialize a strategy, will there be any data loaded in the strategy? Will it load the say X bars look back that I set?

      In NT8 there is a ReloadAllHistoricalData() function... does that exist in NT7?

      Comment


        #4
        Unfortunately I do not have a whole lot of insight to offer here.

        If I have no data in my local and I initialize a strategy, will there be any data loaded in the strategy? Will it load the say X bars look back that I set?
        If you uncheck this option the strategy will only be able to load whatever data is stored locally.

        In NT8 there is a ReloadAllHistoricalData() function... does that exist in NT7?
        There is no equivalent method for this in NT7.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          I converted to NT8.

          What is the method to call get data from server (if available) from within OnBarUpdate?

          Comment


            #6
            You can get to that property by using
            Code:
            NinjaTrader.Core.Globals.MarketDataOptions.GetDataFromServer
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X