Hi,
The position of my self-built indicators is always displayed on the right axis with three numbers after the decimal point. I would like to see this with two decimal places.
Does anyone know if there is a code for this?
Thank you.
JSParticipant
Senior
The decimals in an indicator are determined based on “Floating Point,” which means that the number of decimals adjusts according to the calculation…
As far as I know, there is no setting for this…
Use round(), floor() or ceil() using 2 as the precision.
More digits are likely to be printed, but those after the first 2 decimal places will all be set to 0’s:
a=13.5254
x=round(a)
y=round(a,2)
return x AS "integer",y as "2 digits"