Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Decimal points

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

    Decimal points

    I see on the charts that all the indicators display the values with two decimal points. Is that for GUI display only or are those the same values I get when I acquire them programatically. For instance, if I do this:

    double v = MACD(12,26,9)[0];

    would I get 3.248569487 or the rounded version 3.25?

    Thanks!

    #2
    Hello,

    I believe it shows two decimals unless it is a decimal only value then it will show 3 decimal places. It is a rounded number.
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by lgarcia3 View Post
      I see on the charts that all the indicators display the values with two decimal points. Is that for GUI display only or are those the same values I get when I acquire them programatically. For instance, if I do this:

      double v = MACD(12,26,9)[0];

      would I get 3.248569487 or the rounded version 3.25?

      Thanks!
      Programatically, it is a double value containing all expected values, for display purposes it is rounded and I *believe* it is round to the same number of digits as there are in the underlying Data Series.
      RayNinjaTrader Customer Service

      Comment


        #4
        you mean that if I am uploading data from S&P E-mini I would see it rounded to two digits. If I am uploading data for a currency pair I would see 3 or 4 (whatever it is), correct?

        Comment


          #5
          lgarcia3, yes this is correct - the output window would still show you the full double value if you need to check it.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X