When I add an indicator like the ATR to the chart, its value is displayed with 2 decimal places. However, when I read its values from within a strategy, the number of decimal places is greater, and there are instances where the values shown on the chart and in the code can differ. For example, on the chart, I might see an ATR of 10.00, while the code reads 9.999456392. I would like to know what rounding method the chart uses to display 2 decimal places so that I can apply the same method when reading values from within a strategy.
I appreciate your assistance.

Comment