Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data Box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Data Box

    My question is on the Data Box. Is there a way to show more than Two Digits (hundredths)? Is that configurable?

    #2
    Hello ATMtrader0001,

    Thanks for posting.

    The Data Box will report the numbers as provided by your data feed. This may not be altered.

    Below is a link with more information:

    https://ninjatrader.com/support/help...8/data_box.htm
    Tyler M.NinjaTrader Customer Service

    Comment


      #3
      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


        #4
        Hello ATMtrader0001,

        So is it a bug that Data Box is only showing two digits when there
        are clearly more?
        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.

        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.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NinjaTrader_BrandonH, Today, 09:55 AM
        0 responses
        3 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by AH369, Yesterday, 05:37 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Started by NinjaTrader_BrandonH, Today, 09:51 AM
        0 responses
        7 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by caveat_lector, Today, 08:55 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by aligator, Today, 09:02 AM
        2 responses
        12 views
        0 likes
        Last Post aligator  
        Working...
        X