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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    371 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X