calculate_position_size
Calculate position size so that stop-loss loss equals a specified risk percentage of capital, subject to a maximum size cap.
Instructions
Quantity so the stop-loss loss equals risk_percent of capital, capped by MAX_POSITION_SIZE_PERCENT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capital | Yes | ||
| risk_percent | Yes | ||
| entry_price | Yes | ||
| stop_loss | Yes |