Losing streak calculator
calculate_losing_streakRead-onlyIdempotent
The exact probability of at least one losing streak of a given length over a number of independent trades, the expected longest streak and the streak 95% of sequences stay within. Computed with the same function as Clear Tape's free losing streak 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 |
| streak | Yes | Losing streak length to test, a whole number no larger than trades. | |
| trades | Yes | Number of trades, a whole number from 1 to 2000. | |
| winRate | Yes | Win rate in percent. Above 0, at most 100. |