--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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
168 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
322 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment