Skip to content

API Reference


API Reference / supportStop

Function: supportStop() ​

supportStop(entryPrice, supportLevels, buffer?): number

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

Stop just below the nearest support under entry. Returns 0 when no support level sits below the entry price.

Parameters ​

entryPrice ​

number

supportLevels ​

number[]

buffer? ​

number = 0.005

Returns ​

number

Community project — not affiliated with Dhan. MIT License.