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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    155 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    307 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    176 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X