Refresh a position's P&L pill in place, without recreating its line: the
pill reads pnlText, then pnlPercent in brackets. Either one left out
keeps what the pill showed. The host formats both, since only it knows
the account's currency and how it rounds.
OptionalpnlText: stringOptionalpnlPercent: stringThe form that also takes the P&L as a number, which nothing ever read:
the pill shows pnlText and pnlPercent only.
OptionalpnlText: stringOptionalpnlPercent: string
Snap dragged order and bracket lines, and the price their modify events carry, to the instrument's ticks. Null, the default, passes the pointer's price through unrounded, as it always has. The host's own validation stays authoritative either way; this only stops a drag previewing a price the instrument cannot trade at.
Instrument.applyToandchart.setTickScheduleset it, so call this after either to override it.