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

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


    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    41 views
    0 likes
    Last Post futtrader  
    Started by Option Whisperer, Today, 09:55 AM
    1 response
    11 views
    0 likes
    Last Post bltdavid  
    Started by port119, Today, 02:43 PM
    0 responses
    7 views
    0 likes
    Last Post port119
    by port119
     
    Started by Philippe56140, Today, 02:35 PM
    0 responses
    7 views
    0 likes
    Last Post Philippe56140  
    Started by 00nevest, Today, 02:27 PM
    0 responses
    7 views
    0 likes
    Last Post 00nevest  
    Working...
    X