Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 sidlercom80, 10-28-2023, 08:49 AM
            169 responses
            2,268 views
            0 likes
            Last Post QuantKey_Bruce  
            Started by Irukandji, Yesterday, 02:53 AM
            2 responses
            17 views
            0 likes
            Last Post Irukandji  
            Started by adeelshahzad, Today, 03:54 AM
            0 responses
            3 views
            0 likes
            Last Post adeelshahzad  
            Started by CortexZenUSA, Today, 12:53 AM
            0 responses
            3 views
            0 likes
            Last Post CortexZenUSA  
            Started by CortexZenUSA, Today, 12:46 AM
            0 responses
            1 view
            0 likes
            Last Post CortexZenUSA  
            Working...
            X