{% extends "base.html" %} {% from "_macros.html" import exec_badge %} {% block title %}Backtest{% endblock %} {% block body %} {# ===== BACKTEST: the HONEST real-cost curve over the deploy/research books — same header/section/badge skin as Overview + Paper. book + capital + period -> the precomputed MEASURED (real per-coin L1 spread) curve. There is NO configurable cost: the cost is a measured FACT, not a slider (a draggable cost is a fund foot-gun — drag it to 0 and you resurrect the +7097% mirage). The Bybit 4-edge DEPLOY book is the default (the honest deployable curve); the Binance combined book is research-only. PAPER-badged. ===== #}

Backtest — honest real-cost curve (read-only) {{ exec_badge('paper') }}

book / capital / period · real measured cost (not a knob) · what-if, not the live record · recorded track → Replay

{# Book switch — Bybit 4-edge (deploy, default) · Binance combined (research) · Compare A/B. Relative URLs. #}
{% for b in books %} {% if b == 'bybit_4edge' %}Bybit 4-edge · deploy{% elif b == 'bybit_4edge_levered' %}Bybit 4-edge levered · shadow{% elif b == 'compare' %}Compare A/B{% else %}Binance combined · research{% endif %} {% endfor %}
{# Wired with HTMX ATTRIBUTES (not an inline