API Reference / FixedRiskSizingInput
Interface: FixedRiskSizingInput
Defined in: src/risk/positionSizing.ts:8
Position sizing and stop-loss placement.
All functions are pure — they take numbers and return numbers, so they can be used for planning without any API access.
Properties
accountBalance
accountBalance:
number
Defined in: src/risk/positionSizing.ts:9
riskPercent
riskPercent:
number
Defined in: src/risk/positionSizing.ts:11
Share of the account to risk on this trade, in percent (2 for 2%).
entryPrice
entryPrice:
number
Defined in: src/risk/positionSizing.ts:12
stopLossPrice
stopLossPrice:
number
Defined in: src/risk/positionSizing.ts:13
lotSize?
optionallotSize?:number
Defined in: src/risk/positionSizing.ts:15
Rounds down to a whole multiple of the lot size. Defaults to 1.