Skip to content

charton API


charton API / @chart-on/core / index / PositionStats

Interface: PositionStats ​

Defined in: packages/core/src/drawing/measure-tools.ts:38

Outcome of a position drawing at its target and at its stop, with the reward-to-risk ratio.

Properties ​

riskReward ​

riskReward: number | null

Defined in: packages/core/src/drawing/measure-tools.ts:48

Reward over risk, or null unless the target is a profit and the stop a loss.


stopPercent ​

stopPercent: number

Defined in: packages/core/src/drawing/measure-tools.ts:46

stopPnl relative to the entry, in percent.


stopPnl ​

stopPnl: number

Defined in: packages/core/src/drawing/measure-tools.ts:44

Profit or loss in price if the stop is hit; negative when the stop caps a loss.


targetPercent ​

targetPercent: number

Defined in: packages/core/src/drawing/measure-tools.ts:42

targetPnl relative to the entry, in percent.


targetPnl ​

targetPnl: number

Defined in: packages/core/src/drawing/measure-tools.ts:40

Profit or loss in price if the target is hit; positive on the profitable side.