{# Inputs: points: list[EquityPoint] (one row per realized event + Jan-1 zero seed), year: int #} {% set unrealized_today = points[-1].unrealized if points else None %}

Equity curve

Realized {% if unrealized_today is not none %}+ unrealized {% endif %}· {{ year }}
{% if points|length <= 1 %}
No realized activity in {{ year }}.
{% else %}
{% endif %}