Announcement

Collapse
No announcement yet.

Value of MA

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

  • Value of MA

    I would like the value of EMA3_of_RSI14 to display only whith two decimals, ex. 49.56
    Anyone knows how to do it?

  • #2
    EFS

    Sorry, forgot to post the EFS
    Attached Files

    Comment


    • #3
      finnhan
      Above the drawText command insert the following line
      if(vEMA3_of_vRSI14.getValue(MAStudy.MA)==null) return;
      which will perform a null check on the value of the ema of RSI. Then in the drawText command replace
      vEMA3_of_vRSI14.getValue(MAStudy.MA)
      with
      vEMA3_of_vRSI14.getValue(MAStudy.MA).toFixed(2)
      The .toFixed() method will limit the number of decimals to the value you define (2 in the example shown above).
      Alex

      Comment


      • #4
        Thank you

        Again, thank you Alex

        Comment


        • #5
          finnhan
          You are most welcome
          Alex

          Comment

          Working...
          X