calculate_position_size
Determine the position size for a trade such that the stop-loss loss equals a given risk percentage of capital.
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 |