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