position_calculate
Risk-first position sizing with quantity, notional, margin, effective leverage, fees, funding, breakeven, liquidation estimate, target R multiples and warnings. Use position_plan_on_chart instead when the user should see the plan on the chart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| stop | Yes | ||
| entry | Yes | ||
| equity | Yes | Account equity in quote currency. | |
| feeBps | No | Fee per side in basis points. Default 4. | |
| targets | Yes | Take-profit prices and the percentage closed at each. Allocations should total 100. | |
| leverage | No | Selected venue leverage. Default 1. | |
| fundingRate | No | Funding per settlement as a fraction, e.g. 0.0001. | |
| riskPercent | Yes | Equity risked if the stop fills, in percent. | |
| holdingHours | No | Expected holding time for the funding estimate. | |
| fundingPerDay | No | Funding settlements per day. Default 3. | |
| maintenanceMarginRate | No | Fraction used for approximate liquidation. Default 0.005. |