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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    13 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X