Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price plots

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

    Price plots

    I have a question about plotting price from an indicator on the chart. Problem is that the 0's dissepears. lets say that the price is 1.3610, it will display as 1.361 on the plot., or of the price is 1.3600 it will display 1.36 on the chart. Is it a way to display the 0's?
    The line of code I,m using:
    DrawText("Price", false, "Current Price"+Close[0]... etc

    regards, FinnBjurvoll

    #2
    You can force it to use all decimal with the string format option F2, as for example used in this snippet below -

    DrawText("Price", "Current Price @ "+ Close[0].ToString("F2"), 0, High[0] + 3 * TickSize, Color.Blue);

    Comment


      #3
      Thanks Bertrand, I allready tried that. That works ok on markets like 6E etc, but on ex. TF it puts 4 zero's behind the price like 806.0000.

      Comment


        #4
        This is not the case in my testing here across symbols, also TF...how's your TF master symbol setup? TickSize 0.1?

        Comment


          #5
          Thanks Bertrand, I solved the problem
          Regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          576 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 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
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X