Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Output numbers for each bar in the chart bottom

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

    Output numbers for each bar in the chart bottom

    Hi Ninja Experts,

    I'm developing a custom indicator which is supposed to output a couple of numbers for each closed bar. Let us say, for example, these two numbers are the LOW and HIGH of the bar. I need to display these numbers in the bottom of the chart below each bar. So, it can become like a grid in chart's bottom. As an example, I have attached a screenshot from a NinjaTrader chart which is showing numbers/statistics of each bar in the chart bottom (although I don't need so many numbers per bar). Please guide me how can I do this or kindly share if there is relevant example/reference code/discussion which can serve as a starting point.

    Many thanks.
    Attached Files

    #2
    Hello Mubeen Haider,

    To do what you pictured you would have to use OnRender to rrender custom content.

    The platform comes with a sample called SampleCustomRender which shows how to use OnRender.

    To get bar and price information from X/Y information you can use the following methods:

    https://ninjatrader.com/support/help...otindexbyx.htm

    https://ninjatrader.com/support/help...etvaluebyy.htm

    To get series values based on X values you can use GetValueAt: https://ninjatrader.com/support/help...sub=getvalueat


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    639 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X