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 geddyisodin, Today, 05:20 AM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by Max238, Today, 01:28 AM
            3 responses
            32 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by timko, Today, 06:45 AM
            2 responses
            13 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Started by habeebft, Today, 07:27 AM
            0 responses
            5 views
            0 likes
            Last Post habeebft  
            Started by Tim-c, Today, 03:54 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X