Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          40 views
          0 likes
          Last Post jeronymite  
          Started by bill2023, Today, 08:51 AM
          2 responses
          15 views
          0 likes
          Last Post bill2023  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          167 responses
          2,260 views
          0 likes
          Last Post jeronymite  
          Started by warreng86, 11-10-2020, 02:04 PM
          7 responses
          1,362 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Perr0Grande, Today, 08:16 PM
          0 responses
          5 views
          0 likes
          Last Post Perr0Grande  
          Working...
          X