Skip to content

The size of one pip of the instrument, such as 0.0001 for most currency pairs and 0.01 for pairs quoted in yen. The same as INSTRUMENT.PIP_SIZE.

declare const PIP_SIZE: number;

Multiply a distance in pips by PIP_SIZE to get a distance in price.

function onIntervalClose() {
if (OPEN_POSITIONS_COUNT === 0) {
openPosition("BUY", { quantity: 1000, stopLoss: BID - 15 * PIP_SIZE });
}
}