Drawdown check
drawdown_checkDrawdown check: what it cost to collect the return you were shown. The coin is bought at the close of every day of its history and held for the period you name: you get the drawdown from the entry before the period was out, the share of starts that fell 30% and 50%, the days spent under water, how it ended — and, among the starts that ended in profit, the drawdown they sat through first. Spot tape, no fees, coins that died included.
Use when a return is quoted for holding a coin ("BTC did +150% in a year") and you want the fall endured on the way. With leverage use leverage_survival; to test a stop that cuts the fall, stop_loss_check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Ticker or full pair. An unknown one comes back with the list we hold and the ones left out. | |
| days | Yes | How long it is held: 30, 90, 365 or 730. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | false when we do not hold that data. Never a zero standing in for an answer. | |
| error | No | no_data when ok is false. | |
| model | No | The assumptions, stated. | |
| reason | No | Why, in one sentence, and what we do have instead. | |
| source | No | The public file these numbers come from. | |
| starts | No | Start days tested. Fewer than 120 and we refuse to give a percentage. | |
| median_return_pct | No | How the middle start ended. | |
| share_fell_30_pct | No | Share of starts that fell 30% or more from entry first. | |
| share_fell_50_pct | No | Same, 50% or more. | |
| asset_max_drawdown | No | The coin's own biggest top-to-bottom fall, with dates and days to recover, for comparison. | |
| share_in_profit_pct | No | Share of starts that ended up. | |
| median_worst_fall_pct | No | The middle start's worst fall from its own entry price within the hold. | |
| median_days_under_water | No | Days of the hold spent below the entry price, middle start. | |
| share_never_recovered_pct | No | Starts that never closed back at their entry price within the hold. | |
| median_worst_fall_among_winners_pct | No | Among the starts that ended in profit, the median fall they sat through first. The price of the number you were shown. A return without this is advertising. |