Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer columns - format decimal places?

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

    Market Analyzer columns - format decimal places?

    Is there any way I can tell the Market Analyzer to display the indicator values with the same number of decimal places as the market price?

    e.g. I've got ATR on EURUSD which displays 0.014 but I would like it to display 0.0140 because the EURUSD is quoted that way - 1.3312 or even 1.3312'5 actually.

    Thanks

    #2
    adamus, what settings are you using for your indicator columns and for the pip value (Tools -> Options -> Data)? I have mine set to TenthPip, and my indicators are showing the correct number of decimal places. Is this a custom ATR indicator you're using?
    Attached Files
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hi Austin,

      I see what you see - what I'm asking is, how can I make the display show trailing zeros? I would prefer to see 0.0180 than 0.018.

      Do you see what I mean?

      Comment


        #4
        adamus, yes, I do see what you mean. Unfortunately I'm not sure why my MA column displayed the decimals with extra precision. I will look into this and get back to you tomorrow.
        AustinNinjaTrader Customer Service

        Comment


          #5
          adamus, unfortunately this is unsupported. As a workaround, you could create a StringSeries and then read that value (formatted however you wish) into the Market Analyzer.
          Code:
          // in variables
          private StringSeries myStringSeries;
          
          Initialize()
          {
              myStringSeries = new StringSeries(this);
          }
          OnBarUpdate()
          {
              myStringSeries.Set(value.ToString("####.000##"); // or however else you want to format the number
          }
          You'd also have to expose your StringSeries to access it in the Market Analyzer.
          Last edited by NinjaTrader_Austin; 08-17-2010, 01:29 PM.
          AustinNinjaTrader Customer Service

          Comment


            #6
            OK, I'll give that a try. Thanks.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X