Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plots dont plot if you override OnRender too

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

    Plots dont plot if you override OnRender too

    Hi,

    I noticed that plots do not plot if your indicator also overrides OnRender for custom drawing.

    I have attached a simple indicator to show this. If you have the indicator on your chart, the plots will show as expected. If you comment back the OnRender override and add the indicator to a chart you will see that the plots do not show anymore.

    Just wanted to find out if this is by design or a bug maybe?

    Kind Regards,
    John
    Attached Files

    #2
    Hello JohnSteinberg,

    You will need to call the base.OnRender(chartControl, chartScale);.

    Below is a public link to the help guide. Please see the section 'Calling the base.OnRender() method to ensure Plots are rendered along with custom render logic'.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea, that was really dumb from my side.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      30 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X