• 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

Display mini-data box values on chart

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

    Display mini-data box values on chart

    Hello,
    I know this has been asked a few years ago, but I wonder maybe this has changed.
    Using the "mini data box" is cumbersome - it requires holding of the mouse button and more importantly it obscures parts of the chart.
    What I would like is to have the data from the "mini data box" displayed on the lower part of the chart, while hovering across bars, without a need to press any mouse key.
    Is this possible ?
    Thanks

    #2
    This is not possible by default but would certainly be possible with custom programming. Unfortunately I couldn't locate an add-on which does this on our forums. I encourage you to browse through the available add-ons by clicking on 'Search' above and searching for items via the 'Search NinjaScript Files' tool.

    Also, I encourage other users to chime in here if they know of an add-on which accomplishes this.

    The alternative would be to make room for the full-size data box which does display these values on mouse-over. More can be learned here:

    https://ninjatrader.com/support/help...7/data_box.htm
    Patrick G.NinjaTrader Customer Service

    Comment


      #3
      Hello,
      Thanks for your reply.
      I have no problem with a custom programming - I did this but the program updates according to "OnBarUpdate". So basically, what is displayed are the values for the last bar.
      Is there some custom way to display data according to "bar hovering" ? in other words how do I convey to the Ninjascript the information on which bar is currently hovered? it would be great if this was possible !
      Thanks

      Comment


        #4
        Please clarify - you'll be developing this add-on for NinjaTrader 7 or NinjaTrader 8?
        Patrick G.NinjaTrader Customer Service

        Comment


          #5
          Hey Leope,

          I would love this feature also - many if not all other platforms have this available. We would just like it to show data from where ever the crosshair/mouse is - I still use NT7, would you be writing it for this?

          Thanks

          Comment


            #6
            Hello,
            yes, I want to do it for NT7 .
            Is there some sample code you can refer me to ?
            What I mostly missing is how to obtain bar data [e.g open, close, high, low, volume] based on mouse location on the chart.
            Thanks

            Comment


              #7
              Hello,

              Thank you for the post.

              Yes, the mouse portion of this would be the most difficult as that would be a subject we had not supported or documented for NT7 specifically. Going forward in NT8 there are many more samples including mouse use.

              For an NT7 example of using mouse events, I was able to locate the following post which shows subscribing to the ChartControls mouse events: https://ninjatrader.com/support/foru...ead.php?t=8039
              This also seems to have the conversion methods in it for converting X to Bar and Y to Price. You would likely need to do something similar to identify what the mouse is hovering.

              As for displaying the data, once a bar and price are located like the example, you could use the Plot override or Drawing Objects to display the data. For an example of rendering, you could see the CustomPlotSample script. Otherwise, the DrawingObjects are all documented in the help guide: https://ninjatrader.com/support/help...t7/drawing.htm

              I look forward to being of further assistance.
              JesseNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ttodua, Today, 01:52 PM
              1 response
              15 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by muisca, 05-19-2017, 11:49 AM
              8 responses
              6,463 views
              0 likes
              Last Post NinjaTrader_Tyler  
              Started by NinjaTrader_Brandon, Today, 12:08 PM
              0 responses
              68 views
              0 likes
              Last Post NinjaTrader_Brandon  
              Started by iq200, Today, 12:00 PM
              2 responses
              11 views
              0 likes
              Last Post iq200
              by iq200
               
              Started by valhallafutures, Today, 11:33 AM
              1 response
              18 views
              0 likes
              Last Post NinjaTrader_PatrickG  
              Working...
              X