Announcement

Collapse
No announcement yet.

Number of decimals calculated for studies

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

  • Number of decimals calculated for studies

    Is there a way to limit the number of decimals EFSEngine returns for studies [like MA's and such]?

    Note: Apparently, for some studies [like CCI] it is limited to 2 decimals.

    Thank you
    Mihai Buta

  • #2
    Re: Number of decimals calculated for studies

    Mihai
    You can use the .toFixed() method to limit the number of decimals. You will then need to convert the resulting string back to a number [multiplying it for example by 1] if you intend to plot the value
    Before you do this you may want to check that in File-> Preferences you do not have Show Full Price Precision enabled in which case you may want to uncheck that option
    Alex


    Originally posted by mbuta
    Is there a way to limit the number of decimals EFSEngine returns for studies [like MA's and such]?

    Note: Apparently, for some studies [like CCI] it is limited to 2 decimals.

    Thank you

    Comment


    • #3
      Alex,

      Thank you.
      Probably it was not clear enough but I was looking for a way to have it done directly by the EFS engine and eliminate the need for rounding the number myself [as I do now, but in a diferent way than you suggest].
      Mihai Buta

      Comment

      Working...
      X