Position size calculator
calculate_position_sizeRead-onlyIdempotent
Position size from the stop: how many shares to buy (or short) so that a stop-out loses a set percentage of the account. Computed with the same function as Clear Tape's free position size calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the returned text: "en" (default) or "zh" (Simplified Chinese). | en |
| stop | Yes | Stop price per share in USD. Below the entry for a long, above it for a short; not equal to the entry. | |
| entry | Yes | Entry price per share in USD. | |
| account | Yes | Account size in USD. | |
| riskPct | Yes | Risk per trade, percent of the account (1 = 1%). Above 0, at most 100. |