Skip to content

API Reference


API Reference / takeProfit

Function: takeProfit() ​

takeProfit(entryPrice, stopLossPrice, riskRewardRatio?): number

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

Target at riskRewardRatio times the stop distance above entry.

Parameters ​

entryPrice ​

number

stopLossPrice ​

number

riskRewardRatio? ​

number = 2

Returns ​

number

Community project — not affiliated with Dhan. MIT License.