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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          30 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          9 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          16 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          19 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X