Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddChartIndicator() for indicators?

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

    AddChartIndicator() for indicators?

    The AddChartIndicator() method on Strategies is very useful for visualizing indicators when developing a strategy, is there any way to Add a chart indicator to another indicator so that it can be viewed without re-implementing a new plot and all the drawing again?

    #2
    Hello kevinenergy
    Thanks for your post.

    Currently, there is not a way to directly add an indicator to the chart from another indicator. There exists a feature request to expose AddChartIndicator() in the Indicator namespace, I will add a vote for feature ID SFT-899.

    Currently, we must add the indicator to the chart manually if you want the visual representation of the indicators being used in your indicator. Alternatively, you can make your own plots and plot the indicator's data, or you might have to mimic the OnRender() method of the indicator being used by your script.

    Here is the documentation on AddPlot and OnRender():
    Help Guide - AddPlot()
    Help Guide - OnRender()
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    72 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X