Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display different number of decimal places in Data Box

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

    Display different number of decimal places in Data Box

    In the Data Box I'm trying to display the range of a bar in value and number of ticks. I want to display the number of ticks as an integer (0 decimal places). Is there a way to display different number of decimal places for different values in an indicator?

    #2
    Hello chad_walin,

    You would need to add the FormatPriceMarker override to the script, it could then control the decimals by formatting the price string. That affects the price markers and data box. There is a sample in the following page that shows controlling the decimal places.



    Comment


      #3
      Thank you Jesse. I've tried adding FormatPriceMarker, it applies a global formatting to the prices displayed. I'm wanting to format them differently, one have 0 decimal places and the other having 2 decimal places.

      Comment


        #4
        Hello chad_walin,

        I am not aware of a way that would be possible, the only way to affect the plots for the databox would be to use that override. You can round the actual plot values to a specific decimal place however that would not adjust the markers to that decimal size and would leave trailing zeros if more than the tick size decimals.

        Comment


          #5
          Thank you.

          Comment

          Latest Posts

          Collapse

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