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 CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            263 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            168 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            170 views
            1 like
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            257 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            209 views
            0 likes
            Last Post CarlTrading  
            Working...
            X