PRECISION
The number of decimal places the instrument’s prices are quoted to, such as 5 for EUR/USD. The same as INSTRUMENT.PRECISION.
declare const PRECISION: number;Use it to round a price you work out, such as a stop, before you log or compare it.
Example
Section titled “Example”function onIntervalClose() { const target = (ASK + 30 * PIP_SIZE).toFixed(PRECISION); log("Target", target, "GBP/USD precision", INSTRUMENTS["GBP_USD:OANDA"].PRECISION);}