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 giogio1, Yesterday, 03:18 AM
      4 responses
      19 views
      0 likes
      Last Post giogio1
      by giogio1
       
      Started by jkop123, Today, 07:05 PM
      0 responses
      2 views
      0 likes
      Last Post jkop123
      by jkop123
       
      Started by jkop123, Today, 07:04 PM
      0 responses
      4 views
      0 likes
      Last Post jkop123
      by jkop123
       
      Started by DayTradingDEMON, 09-08-2024, 11:25 PM
      12 responses
      359 views
      0 likes
      Last Post defa0009  
      Started by thedude, 11-14-2021, 08:44 AM
      5 responses
      532 views
      0 likes
      Last Post jmschmidt357  
      Working...
      X