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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X