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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            133 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            75 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            117 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            113 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            90 views
            0 likes
            Last Post CarlTrading  
            Working...
            X