Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddChartIndicator

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

  • NinjaTrader_PaulH
    replied
    Hello Mangaldoiya,

    Thanks for your post.

    AddChartIndicator() method is only available for strategies and this is why in the indicator you are getting the error message that AddChartIndicator does not exist in the current context (indicator).
    Reference: https://ninjatrader.com/support/help...tindicator.htm

    To accomplish your goal of plotting the SMA(200) in your indicator, you would need to add another plot using AddPlot() in the indicator.
    Reference: https://ninjatrader.com/support/help...8/?addplot.htm

    You would also need to create the output for the plot in #Region Properties.

    In the OnBarUpdate() you would need to assign the SMA(200)[0] value to the plot.

    Leave a comment:


  • Mangaldoiya
    started a topic AddChartIndicator

    AddChartIndicator

    I get an error when I tried to use the AddChartIndicator()

    I followed the method described in:

    https://ninjatrader.com/support/help...8/?seriest.htm

    please see the attached picture...If I comment out the line 65, it compiles without error

Latest Posts

Collapse

Topics Statistics Last Post
Started by lightsun47, Yesterday, 07:17 PM
1 response
5 views
0 likes
Last Post NinjaTrader_ChristopherS  
Started by ezrollin, Yesterday, 10:38 PM
3 responses
7 views
0 likes
Last Post NinjaTrader_PaulH  
Started by janio973, Today, 04:17 AM
0 responses
15 views
0 likes
Last Post janio973  
Started by awa485, Yesterday, 05:08 PM
1 response
10 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by Rafael_OR, Yesterday, 07:04 PM
4 responses
18 views
0 likes
Last Post NinjaTrader_Jim  
Working...
X