Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting another indicator on the chaRT

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

    Plotting another indicator on the chaRT

    I am developing an indicator that plots signals based on Stochastic. When I add this indicator I also want to add the Stochastics indicator automatically. I don't want to have to add Stochastic manually to my chart.
    1. Is this possible?
    2. If so, can someone share a code sample? I tried doing it.. I got an error saying AddChartIndicator object not found.. couldn't figure out what I need to do..

    Thanks
    PS: Sorry if this issue has already been solved..

    #2
    Hello shanshan1001,

    An indicator cannot add another indicator to a chart (the way a strategy can with AddChartIndicator()), but you can add a plot with AddPlot(), and set the plot Value[0] to the value of an indicator call.
    This would basically add the plot from the other indicator to this indicator.

    Or you could add both indicators at the same time by saving these in a chart template and then applying the chart template to a new chart (or using Default as the template name so this loads automatically).
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chealsea!

      Yes. I already did what you suggested by adding the referred indicator to the chart template.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X