Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
No Plot
Collapse
X
-
There just isn't any plot line. The Control Center Log has:Originally posted by sledge View PostWhat is the error in your output window or in the control center LOG?
Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
Comment
-
Which would be a good reason to not have a plot. Runtime errors cause issues.Originally posted by EthanHunt View PostThere just isn't any plot line. The Control Center Log has:
Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
Comment
-
I found this in my output window:Originally posted by EthanHunt View PostThere just isn't any plot line. The Control Center Log has:
Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
Indicator 'EMA_EMA': Error on calling 'OnBarUpdate' method on bar 0: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Comment
-
Add this check:Originally posted by EthanHunt View PostThe following code doesn't plot. If I comment out everything in OnBarUpdate() and just put the following line in that section I do get a lime green line. Trying to color code a line when rising, falling, neutral. Thanks.
Code:protected override void OnBarUpdate() { if (EMA(EMA(Period), Period)[0] > EMA(EMA(Period), Period)[1]) {
Code:protected override void OnBarUpdate() { [COLOR="Blue"]if (CurrentBars[0] <= BarsRequiredToPlot) return;[/COLOR] if (EMA(EMA(Period), Period)[0] > EMA(EMA(Period), Period)[1]) {
Comment
-
Similar question, similar answer. You are probably looking for "2" to be your escape value.Originally posted by sledge View PostI found this in my output window:
Indicator 'EMA_EMA': Error on calling 'OnBarUpdate' method on bar 0: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
ref: http://ninjatrader.com/support/forum...14&postcount=4
Comment
-
I added this code but still no plot.Originally posted by sledge View PostAdd this check:
Code:protected override void OnBarUpdate() { [COLOR="Blue"]if (CurrentBars[0] <= BarsRequiredToPlot) return;[/COLOR] if (EMA(EMA(Period), Period)[0] > EMA(EMA(Period), Period)[1]) {
if (CurrentBars[0] <= BarsRequiredToPlot)
return;
Comment
-
I added this code but still no plot...Originally posted by koganam View PostSimilar question, similar answer. You are probably looking for "2" to be your escape value.
ref: http://ninjatrader.com/support/forum...14&postcount=4
if (CurrentBars[1] < Period || CurrentBars[0] < Period) return;
Comment
-
I just added that line I told you about.Originally posted by EthanHunt View PostThanks. What did you change in the code? I need it to be a line (it is a smoothing) on top of the price/index (overlay on price), not a separate indicator. It is an EMA so it should smooth over price.
I even posted the code.
I had to put it in another panel as it over took my chart (I could no longer see my candles with all those lines).
Comment
-
Some changes to indicators--such as reordering the plots in State.SetDefaults--require that any indicators on charts (even if only in templates and not live) must be removed and reinstalled.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
669 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
378 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment