i ask because polynomial curve fits are very sensitive to data precision. my indicator, TIS_PRC_v2c, does polynomial curve fits and excel Linest() function calculations do not exactly match [sometimes by a significant amount] the TIS_PRC_v2c calcs.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Open/high/low/close value precision?
Collapse
X
-
Open/high/low/close value precision?
''show data box'' displays daily bar chart $eurusd open/high/low/close values to a precision of 5 decimal places. is that the precision of the numbers internally available to indicators or do the values actually have greater than that number of decimal places.
i ask because polynomial curve fits are very sensitive to data precision. my indicator, TIS_PRC_v2c, does polynomial curve fits and excel Linest() function calculations do not exactly match [sometimes by a significant amount] the TIS_PRC_v2c calcs.Tags: None
-
Internal precision is determined by the floating point processor. "Print" some values to the output window to see how many decimal places. I cannot tell you offhand because all my classes round to either mathematical precision or tickSize. That is the simplest way that I can test equality for of doubles in a sensible manner.Originally posted by joemiller View Posti now understand that the most precision visually available is that displayed by ''show data box'' and is 5 decimal points.
i'm still unclear about what the precision is internally when the indicator is doing its calculations?Last edited by koganam; 10-02-2015, 05:05 PM.
Comment
-
I am going to presume that you already have the indicator as open source, and you can edit said indicator.Originally posted by joemiller View Postmany thanks, Koganam.
however, i don't understand how and where to get the values to print to an output window.
is it a ninja output window to which you are referring? if so, where do i gain access to the values and where is the window?
Do this.
Search for the line in OnBarUpdate() where a value is assigned to the Plot. I do not know what that line is, so I will assume that it says:
After that line, insert the following 3 lines:Code:Plot0.Set(//some expression in here);
Pay attention to the case, punctuation and spacing.Code:Print("CurrentBar: " + CurrentBar); Print("Plot0 Value: " + Values[0]); Print(null);
It is very important.
Now compile the indicator, then open the NT Output Window and you should see what you want to see; a print of each bar number followed by the value of the Plot at that bar number, and separated by a line.
How to access the Output Window is in the NT Help file. ref: http://ninjatrader.com/support/helpG...tools_menu.htmLast edited by koganam; 10-03-2015, 07:14 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
85 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
67 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment