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

access contents of Data Box

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

    access contents of Data Box

    The data box provides a convenient way to see ALL the indicator values for a given bar.
    Is there a way to access or loop through (and ultimately write out to a file)
    the contents of the data box for all bars in the chart?

    #2
    Hi Roland_nt,

    There's no way to access the data box directly, but you can write indicator values to a file. You would need to be aware of any indicators you want to write to a file, and use their current bar (index [0]) values to write to a file.

    This sample can help writing OHLC and indicator values to a file:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      access contents of Data Box

      Thanks for quick reply. The link does give useful basics.

      As an aside, the utility of being able to access the DataBox contents is that automatically would handle changes to the set of analytical indicators for which data was being collected and is thus decoupled from explicit knowledge of what indicators were loaded in any particular chart template.

      Using the approach in the sample means that there must be a separate code collecting indicator for each template that has different analytically indicators, a problem I was trying to avoid.

      Pass it on to the development crew as a low priority feature request.
      Thnaks again for quick replay

      Comment


        #4
        Thanks - it would add a layer of convenience for sure, and perhaps offer some features that non-programmers could take advantage of. We appreciate the suggestion and will update this post once we have a tracking # available.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by roland_nt View Post
          Thanks for quick reply. The link does give useful basics.

          As an aside, the utility of being able to access the DataBox contents is that automatically would handle changes to the set of analytical indicators for which data was being collected and is thus decoupled from explicit knowledge of what indicators were loaded in any particular chart template.

          Using the approach in the sample means that there must be a separate code collecting indicator for each template that has different analytically indicators, a problem I was trying to avoid.

          Pass it on to the development crew as a low priority feature request.
          Thnaks again for quick replay
          Your query sounds a lot like what is in this thread. The solution will be about the same.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by alifarahani, Today, 09:40 AM
          6 responses
          36 views
          0 likes
          Last Post alifarahani  
          Started by Waxavi, Today, 02:10 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by Kaledus, Today, 01:29 PM
          5 responses
          14 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Waxavi, Today, 02:00 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by gentlebenthebear, Today, 01:30 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X