{# 5-strategy lot-picker comparison rendered under the per-account sim cards. `lot_comparison` is None on insufficient lots; `lot_comparison_insufficient` carries the engine error message so we can show a graceful fallback. #} {% if lot_comparison_insufficient %}
Lot strategy comparison
Comparison unavailable: {{ lot_comparison_insufficient }}.
{% elif lot_comparison %}

Lot strategy comparison

Recommended: {{ lot_comparison.results[lot_comparison.recommended_idx].strategy.replace('_', ' ').title() }}
{% for r in lot_comparison.results %} {% set is_rec = loop.index0 == lot_comparison.recommended_idx %} {% if r.notes %} {% endif %} {% endfor %}
Strategy Pre-tax P&L After-tax P&L Wash sale Lots
{% for n in r.notes %}{{ n }}{% if not loop.last %}; {% endif %}{% endfor %}
{% endif %}