Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Data Box
Collapse
X
-
Data Box
My question is on the Data Box. Is there a way to show more than Two Digits (hundredths)? Is that configurable?Tags: None
-
I know that the data that is underlying the numbers in the Data Box have more than two significant digits as when I display them
from within a Strategy I get as many significant digits as it has. So is it a bug that Data Box is only showing two digits when there
are clearly more?
For example I have a strategy that is using SMA (any period it doesn't matter for this example) and I have added it to the chart, so it
is also in the Data Box, but I only get the two significant digits. I have other Indicators that I have programmed that when I add them
to the Chart I get all the significant digits that the data has. So either SMA is programmed to only display two digits, which I could not find
in the code for SMA, or Data Box is forcing it to two digits.
I'll go back through and look at the SMA code again to see if I am missing it, but seeing all the digits would be helpful, or add a feature to
Data Baox so that the number of significant digits is configurable.
Comment
-
Hello ATMtrader0001,
No that would be normal. In most situations you would see the values in the TickSize of the instrument being used. For custom code and when you do custom math that generally will end with remainders so the databox will show those along with the price marker for Plots.So is it a bug that Data Box is only showing two digits when there
are clearly more?
You can control this by using the FormatPriceMarker override if you wanted to control the price marker/data box value.
You can also use FormatPrice to format custom calculations to the instrument sizes, this is helpful for prints or strings.
You can also round the value to the instrument tick size before plotting it which is what I would generally suggest. This can be important for brokers that do not allow order submission outside of the specified TIckSize.
https://ninjatrader.com/support/help...ub=formatprice
https://ninjatrader.com/support/help...ub=formatprice
https://ninjatrader.com/support/help...ghtsub=roundto
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment