Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying Data in Data Box from Indicators?

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

    Displaying Data in Data Box from Indicators?

    Hi there,

    I recently imported a set of indicator ninjascripts done by someone else. The original download post is here:



    The indicator works great, but nothing from that indicator shows up in the Databox for me to reference (or to place in my strategy to set variables against these values).

    There are lines to add plots corresponding to different values, but what can I check in the script to make sure that it's posting correct data to the Data Box, or even has accessible values to use in strategy Ninjascripts?

    Let me know if the question above is unclear or if code samples are needed.

    Yours,
    Spider

    #2
    Hello Spider,

    Thank you for your post.

    I am not familiar with this indicator but when applied to my chart it is providing the HAClose, HAOpen, HALow, and HAHigh in the Data Box.

    What values are you looking for? Can you locate these value sin the code?

    Comment


      #3
      Disregard! I read in a related post that changing the plot color to match the background color brings the indicator values into view (which it did.) All set here!

      Comment


        #4
        I have a very similar question--I'm trying to incorporate values from my databox for certain indicators into my strategy. My databox values come in fine, I just don't know the syntax for pulling these values into a strategy (I'm not so new to C# but new to Ninja). So let's say my databox looks like this (crude I know):

        | @ BBD Levels |
        __________________
        |1 off | 1.26|
        |1 on | 1.44|

        What's the syntax for incorporating these values into my strategy for the current bar and previous bars? Are there any good examples or previous posts I missed?

        Comment


          #5
          Hello GuySmiley,

          Thank you for your post and welcome to the NinjaTrader Support Forum!

          You will need to access the values from your indicators in your strategy please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=4991

          You may also wish to review the indicator methods in NinjaScript to understand how to access plots from your indicators: http://www.ninjatrader.com/support/h...indicators.htm

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by gtSwet, 04-21-2024, 06:41 AM
          4 responses
          131 views
          0 likes
          Last Post nniannnian  
          Started by sultanofsuede, Today, 09:31 PM
          0 responses
          6 views
          0 likes
          Last Post sultanofsuede  
          Started by DJ888, Today, 08:51 PM
          0 responses
          6 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Bidder, Today, 07:47 PM
          0 responses
          7 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by kevinparry251, Today, 07:15 PM
          0 responses
          7 views
          0 likes
          Last Post kevinparry251  
          Working...
          X