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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          164 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          317 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          245 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X