Skip to content

API Reference


API Reference / kellySize

Function: kellySize()

kellySize(input): number

Defined in: src/risk/positionSizing.ts:56

Kelly criterion sizing, scaled by fraction.

Full Kelly is famously over-aggressive against estimation error in the win rate, which is why the default is half.

Parameters

input

KellySizingInput

Returns

number

Community project — not affiliated with Dhan. MIT License.