Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
No Plot
Collapse
X
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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 kevinenergy, 02-17-2023, 12:42 PM
|
118 responses
2,778 views
1 like
|
Last Post
by kevinenergy
Today, 05:41 AM
|
||
Started by briansaul, Today, 05:31 AM
|
0 responses
9 views
0 likes
|
Last Post
by briansaul
Today, 05:31 AM
|
||
Started by traderqz, Yesterday, 12:06 AM
|
11 responses
28 views
0 likes
|
Last Post Today, 05:11 AM | ||
Started by PaulMohn, Today, 03:49 AM
|
0 responses
8 views
0 likes
|
Last Post
by PaulMohn
Today, 03:49 AM
|
||
Started by inanazsocial, Today, 01:15 AM
|
1 response
10 views
0 likes
|
Last Post Today, 02:18 AM |
Comment