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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X