Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
AddChartIndicator
Collapse
X
-
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.
-
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
1 PhotoTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by truepenny, Today, 03:45 AM
|
1 response
14 views
0 likes
|
Last Post Today, 07:29 AM | ||
Started by gummybar, 02-14-2024, 03:22 PM
|
3 responses
37 views
0 likes
|
Last Post Today, 07:29 AM | ||
Started by Austiner87, Yesterday, 05:02 PM
|
1 response
14 views
0 likes
|
Last Post Today, 07:21 AM | ||
Started by nicthe, 05-04-2024, 09:24 AM
|
2 responses
21 views
0 likes
|
Last Post Today, 07:16 AM | ||
Started by Yasharandom, 05-04-2024, 07:45 AM
|
1 response
21 views
0 likes
|
Last Post Today, 07:12 AM |
Leave a comment: