--EV
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unexpected trace error report
Collapse
X
-
Unexpected trace error report
n/m -- i just found something I overlooked before.
--EVLast edited by ETFVoyageur; 02-21-2014, 04:51 PM.Tags: None
-
I still have the problem. My indicator compiles fine, runs fine, and produces all of the correct values. As far as I can tell, everything is fine. Except that it does not plot and there is an unexpected error message in the trace log:
Here is the relevant code:2014-02-21 15:26:32:934 ERROR: Error on setting indicator plot for indicator 'RwbMomentum'. Value outside of valid range.
I have traced the problem to the call to Math.Pow(). The result is 24.xxx, confirmed by my TI calculator. I have also put in code to catch Nan, PositiveInfinity, and NegativeInfinity -- no such thing happens.Code:value /= numPeriods; // % per bar, averaged for the configured periods value = Math.Pow((1+value), 252); // Annualized percentage value -= 1; // Fraction change per year value *= 100; // % Change per year IndicatorLine.Set(value);
It is not the call per se, because if I reduce the power a lot, such as to 21, the problem goes away.
I am stymied -- any help with what the problem could be, or with how to further diagnose the problem, would be appreciated. I hope I am not too embarrassed when someone points out what I am overlooking
Thanks,
EVLast edited by ETFVoyageur; 02-21-2014, 05:42 PM.
-
What is the upper limit of indicator value that NT will plot?
I found my problem. There was one pretty high value buried in the trace. I now cap the values that can be generated and it plots fine.
I really think that the trace message ought to mention what the maximum value is. That would be very helpful in a situation like this one.
Better yet, NT should just cap its plot if it needs to. That would leave the dataseries intact for other uses.
--EV
Comment
-
Hello EV,
Thank you for posting and updating.
I'm not sure the exact limit that can plotted as I have gotten very high up there as well.
However, anytime you receive that message there is one of two possibilities, either it returned as a N/A number or the value is really high.Cal H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
601 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment