{% extends "base.html" %} {% block title_suffix %} — Dashboard{% endblock %} {% block content %}

Dashboard

${{ "%.2f"|format(total_equity) }}
Total Equity
${{ "%+.2f"|format(total_pnl) }}
PnL ({{ "%+.1f"|format(total_ret) }}%)
{{ positions|length }}
Open Positions
{{ assets|map(attribute='trades_count')|sum }}
Total Trades
Equity Curve
Assets
{% for a in assets %} {% endfor %}
Asset Equity PnL Trades Win Rate Position CB
{{ a.ticker }} ${{ "%.2f"|format(a.equity) }} ${{ "%+.2f"|format(a.total_pnl) }} {{ a.trades_count }} ({{ a.wins }}W/{{ a.losses }}L) {{ "%.0f"|format(a.wins / a.trades_count * 100) if a.trades_count > 0 else '—' }}% {% if a.ticker in positions %} {% set p = positions[a.ticker] %} {{ 'LONG' if p.direction == 1 else 'SHORT' }} ${{ "%.0f"|format(p.entry_price) }} {% else %} — {% endif %} {% if a.cb_active %} ON {% else %} — {% endif %}
Recent Trades
{% if recent_trades %} {% for t in recent_trades %} {% endfor %}
DateAssetDirEntryExitPnLReason
{{ t.entry_date }} {{ t.ticker }} {{ 'L' if t.direction == 1 else 'S' }} ${{ "%.2f"|format(t.entry_price) }} ${{ "%.2f"|format(t.exit_price or 0) }} ${{ "%+.2f"|format(t.pnl_net or 0) }} {{ t.exit_reason or '' }}
{% else %}

No trades yet. Run a trading cycle first.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}