The ‘precision’ parameter

The ‘study’ and ‘strategy’ commands have this parameter.

Is the number of digits after the floating point for values on the price axis. Must be a non negative integer. Precision 0 has special rules for formatting very large numbers (like volume, e.g. ‘5482’ will be formatted as ‘5K’). By default, the value is 4.

But remember:

THE PRECISION PARAMETER IS ONLY TO SHOW THE PRICE AXIS IN GRAPHIC BUT DOES NOT AFFECT TO SCRIPT CALCULATIONS.

This means that floating point prices will not are rounded to the decimals depending on the “precision” parameter.

PineScripts.