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

Exposing value calculated in bartype

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

    Exposing value calculated in bartype

    Hello,

    I have a custom value that is calculated in a custom bartype in order to form the bars. I would like that shown on screen. I am not very familiar with bartypes. It seems that any rendering is typically normally done in the chartstyle?

    Could you suggest a supported way for me to render that value from the BarType internals to the chart? I'm quite happy with OnRender etc.

    Thanks.

    #2
    Hello pjsmith,

    Thank you for your post.

    BarsTypes scripts are used to calculate the Open, High, Low, and Close values then return the bars object. Next, the ChartStyle does the rendering of the ChartBars object. It is not supported and might not be possible to render the value from a BarsType script; it would be best to do the calculation and render the value from an indicator script.

    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,602 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    12 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X