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

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 yertle, Today, 08:38 AM
    6 responses
    25 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    24 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    46 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    23 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X