Documentation / @finchart/core / index / priceLine
Function: priceLine()
priceLine(
options):PriceLineDecoration
Defined in: packages/core/src/extensions/standard.ts:112
A horizontal price line — where a target price or stop-loss line belongs. It's a decoration rather than a registered series because a series would drag the value axis along with it. What comes back can be moved in place (setOptions, applyOptions) — see PriceLineDecoration.
ts
pane.addDecoration(priceLine({ value: 205, label: "Target" }));