Two panels over the whole history. The upper one is the
close on a log scale with the all-time high so far; the lower one is the
drawdown, how far each close is below that high (see drawdown()), with
a dashed line at min_depth percent. The falls of the analysis are shaded
from their peak to their recovery, the current one in amber, and their
troughs carry their rank, as in drawdown_table(); hover over a trough
for its dates.
Arguments
- analysis
The result of
drawdown_analysis().- mode
"light"(the default) or"dark", to suit a light or dark page.
Examples
btc <- get_history("Bitcoin (BTC)", as.Date("2013-04-29"))
plot_drawdowns(drawdown_analysis(btc))