Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Real time Values when mouse is over a bar

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

    Real time Values when mouse is over a bar

    I Would like to know if its possible to have Values from past bars to be shown when I hover the Mouse over a past bar on the chart.

    I created an indicator in the left upper corner that shows the Range , but only for the Current Bar, Is it possible to make it show the Values when the mouse is on any other bar on the chart?

    I also noticed when the market is Live, if I put my mouse on the Last/Current Bar, The values doen't update on the DataBox. If for example, Close changes after I just put it over that current bar, so I always need to move it back and forth , not very practical when discretionary scalping and market is fast.
    Is there any changes on that on NinjaTrader 8? Most platforms have that as default, so here is my suggestion for the comming update.


    protected override void OnBarUpdate()
    {
    // Use this method for calculating your indicator values. Assign a value to each
    // plot below by replacing 'Close[0]' with your own formula.



    Font textFont = new Font("Arial", 10);

    double Range = High[0] - Low[0];


    if (CurrentBar == 0)
    {
    return;
    }


    DrawTextFixed("Range", "Range = " + Range, TextPosition.TopLeft, Color.White, textFont, Color.Transparent, Color.Black, 10 );
    Attached Files
    Last edited by marreta; 10-17-2014, 08:13 PM.

    #2
    Hello marreta,

    Thank you for your answer.

    This is not supported programming with NinjaTrader.

    However, you will need to use the MouseEventArgs to get the mouse position.

    There is an available indicator in the Misc section for a custom crosshair tool that does this kind of programming for review -
    http://www.ninjatrader.com/support/f...atid=6&lpage=1
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    131 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    111 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X