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 geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    60 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    4 responses
    3,287 views
    1 like
    Last Post jgualdronc  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    5 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    22 views
    0 likes
    Last Post halgo_boulder  
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Working...
    X