• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data in Market analyzer

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

    Data in Market analyzer

    Hello,

    I am working on an indicator in which I will be using data of many instruments e.g. All S&P. I can't use Add method to data for some reason therefore I am using GetBar method and it is taking a long to pull data. Is there any way we can pull the data quickly?

    A part of my indicator is similar to NT market analyzer so I want to ask how Market analyzer is able to pull data so quickly?

    Thanks,
    Wajeeha

    #2
    Wajeeha, a few items that come to mind -

    - MA per default would only load the last 50 bars
    - normally loading is speeded up here as data is preloaded in MA when you have your instrument list for example added and then an indicator column running that would pull in the data.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I was not able to fully understand your point. Following is a summary of my above stated question:

      1- Market analyzer is very quick in pulling instrument data whereas my indicator it is taking long to pull data of 2000 instruments. So I want to ask is market analyzer using some different technique to pull data or there is something similar to Add or GetBar method we usually use to get instrument data?

      Hope my question is clear.

      Thanks,
      Last edited by Wajeeha; 05-06-2014, 06:15 AM.

      Comment


        #4
        Hello Support,

        I didn't get any reply after my last message. Just to remind following was my question
        Is market analyzer using some different technique to pull data or there is something similar to Add or GetBar method we usually use to get instrument data?

        Hoping for a positive response.

        Thanks,
        Wajeeha

        Comment


          #5
          Sorry for me delay in replying Wajeeha, as you know already from prior discussions on the same topic that the GetBar call is undocumented and internal only. The Market Analyzer will access cached data you have stored per the session template used for the symbol and if you run your symbols with an indicator study added here you will pull in the historical data to speed up loading performance for those symbols (also in other parts of the platform such as charts). However with your GetBar you would fully load the data request always, as such I would strongly consider the supported Add() way.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Thank you for replying.

            Due to my indicator requirement I can't use Add method and there is no other way except GetBar method to pull data that's why I am using this method.

            Is there any way I can access the cached data which is used by the Market analyzer?

            Just to confirm one more thing that Ninja does not support parallel processing (multi threading) in loading/pulling data. Correct?

            Thanks,

            Comment


              #7
              Wajeeha, unfortunately I could not offer any further pointers here accessing the cache. The pivots indicator would show a way to async call the GetBars outside the main thread.
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rainbow47, Today, 06:10 AM
              0 responses
              1 view
              0 likes
              Last Post rainbow47  
              Started by stenberg98, Today, 04:53 AM
              2 responses
              4 views
              0 likes
              Last Post NinjaTrader_Marco  
              Started by wukefuha, Today, 03:20 AM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Marco  
              Started by mbcmbc, Yesterday, 10:12 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChrisSch  
              Started by fx.practic, Today, 03:44 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Marco  
              Working...
              X