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:

    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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,606 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        13 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X