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

Onrender in 2 panels

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

    Onrender in 2 panels

    Hello,

    I have an indicator that uses custom plots in the indicator panel, drawing within OnRender. It also writes text objects using draw.text to the chart window. It creates quite a few text drawing objects, so I would rather use onrender and plot them as needed, rather than draw.text. Problem is, Onrender cannot draw both in the indicator panel and the chart window? Splitting into 2 different indicators is not an option as it would be duplicating work / inefficient. Any elegant solution to this?

    #2
    Hello pjsmith,

    From my understanding, the drawOnPricePanel overload for drawing objects, temporarily changes the DrawOnPricePanel property for the indicator just before the object is rendered and then changed back.

    You might try doing something like that, though I cannot guarantee the functionality.

    In general, our suggested workaround is have one indicator (either instance or type) per panel that draws whats needed on that panel.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DJ888, Today, 10:57 PM
    0 responses
    1 view
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X