--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 sjsj2732, 03-23-2026, 04:31 AM
|
0 responses
74 views
0 likes
|
Last Post
by sjsj2732
03-23-2026, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
313 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
311 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
148 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
111 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment