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 AaronKoRn, Today, 09:49 PM
    0 responses
    11 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    10 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    11 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,980 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X