{% extends "base.html" %}{% from "_macros.html" import empty, pnl_cls, chart, demo_context, kpi, pnl, page_head, flash %} {% block title %}Strategy{% endblock %} {% block content %}{% set simple = alpha_layout is defined and alpha_layout() %}{# the alpha's plain view: no venue tabs, sport select or How it chooses (web/layout.py) #} {% include "_lab_nav.html" %} {% call page_head("Strategy" ~ (" · " ~ viewer.username if viewer.id != user.id else ""), "The strategy this account runs: its calls on each race weekend, stage by stage, how it has done, and how it got here. Paper only: nothing is sent to an exchange.") %} {% if can_pick %}{{ "Change strategy" if profile else "Pick a strategy" }} · {% endif %}What it holds: Positions → {%- if venue_tabs and not simple %}{% endif %} {% if users %}
{% endif %} {% if sport_options and not simple %}
{% if viewer.id != user.id %}{% endif %} {% if venue %}{% endif %}
{% endif %}{% endcall %} {{ flash(msg) }} {% if not profile and not record %}{% if can_pick %}

No strategy yet

This account doesn't paper-trade anything until you pick a strategy. Start with the shortlist's first, or choose and tune your own.

Pick a strategy

{% else %}

No strategy profile is assigned to this account. An admin can assign one on the user's admin page.

{% endif %}{% else %} {% set k = acct.kpis %}
Running now
{{ profile.name if profile else "–" }}
{{ profile.strategy if profile }}{% if show_fair and profile %} · {{ profile.settings.variant }}{% endif %}{% if profile and profile.follow_rate %} · takes about {{ "%.0f"|format(profile.follow_rate * 100) }}% of signals{% endif %}
Fantasy P&L
{{ k.total|money(true) }}
cumulative, since the first weekend
Worst drawdown
{{ k.max_dd|money(true) }}
from a peak of cumulative P&L
Most capital in use
{{ k.peak_deployed|money(false, false) }}
in any one weekend
Weekends up
{{ k.up }}/{{ k.weekends }}
{% for y in seasons %}{{ y.year }}: {{ y.pnl|money(true) }}{{ " · " if not loop.last }}{% endfor %}
{% if show_fair and profile_why %}

{{ profile_why }}

{% endif %} {% if record|selectattr('demo')|list %}{% call demo_context() %}demo replay, in-sample {{ 'NASCAR and MotoGP races are' if sport_shown('motogp', user) else 'NASCAR races are' }} the taker replay on the exchange's recorded prices (after its taker fee), each market kind traded with the setting that did best on these same seasons: a demo of the strategy, not evidence of an edge.{% endcall %}{% endif %} {% if show_fair and mix and (mix|length > 1 or mix[0].family == 'taker') %}

Where the P&L came from

This account's paper record by sport and kind of strategy. Maker: quotes both sides and earns the spread. Taker: takes the model's edge at the market's price.

{% for m in mix %}{% endfor %}
SportStrategyRaces / weekendsUpFantasy P&L
{{ sport_names.get(m.sport, m.sport) if m.sport else "–" }}{{ m.family }}{{ m.weekends }}{{ m.up }} {{ m.pnl|money(true) }}{% if m.demo %}demo replay, in-sample{% endif %}
{% endif %} {% if record|selectattr('backfill')|list %}{% call demo_context() %}backtest replay weekends were replayed from {% if venue %}{{ venue_names.get(venue, venue) }}'s real prices and trades (with its fees){% else %}Polymarket's real prices and trades{% endif %} with the strategy this demo account ran then; they weren't traded live. Live paper trading starts with the next race weekend.{% endcall %}{% endif %} {# --- one view at a time: the record, one weekend, how the account chooses --- #}
{% if acct.chart %}
{{ chart(acct.chart) }}
{% endif %}

Track record

Click a weekend for its calls, stage by stage.

{% for y in seasons %}{% for r in y.rows %}{% endfor %} {% endfor %}
WeekendStrategy{{ "Fills" if is_maker else "Trades taken" }}Held to the raceMost in useP&LRunning total
{{ r.event_name or r.event_key }} {{ r.start_date|fmt if r.start_date }} {{ r.profile }} {{ r.fills if r.strategy.startswith('maker') else r.taken }}{{ r.positions }}{{ r.deployed|money(false, false) }} {{ r.pnl|money(true) }}{% if not r.settled %} open{% endif %} {{ r.cum|money(true) }} {% if r.demo %}demo replay, in-sample{% elif r.backfill %}backtest replay{% else %}live paper{% endif %}
{{ y.year }}{{ y.pnl|money(true) }}{{ y.up }}/{{ y.weekends }} weekends up
{% if cur %}{% endif %} {% if acct.decisions and not simple %} {% elif acct.taker and not simple %}{% set t = acct.taker %}{% endif %} {% endif %} {% endblock %}