{# A card: the portfolio or one security against an index, both at 100 on the first day. Needs `benchmarks` and, for one holding, `isin` and `shown` in the context. #} {% macro benchmark_card(benchmarks, isin=None, shown=None) %}

{{ _("Against a benchmark") }}

{{ _("time-weighted, both at 100 on the first day") }}
{% for p, label in (("ytd", "YTD"), ("1y", "1Y"), ("3y", "3Y"), ("5y", "5Y"), ("all", _("All"))) %} {% endfor %}

{{ _("The portfolio line is the time-weighted return: every deposit counts from the day it arrived and every withdrawal stops counting the day it left, so investing bit by bit does not put you behind the index here — what is compared is how the investments did, not when your money came. The return that does feel the timing is the money-weighted one on the Portfolio page. The index is turned into the portfolio's currency at each day's rate; where Yahoo has no clean index in euros an accumulating ETF stands in. Nothing is stored but the index's daily closes.") }}

{% endmacro %}