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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    24 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    14 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    10 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X