{% extends "base.html" %}{% block content %}

Historical backtest

Educational simulation, not a forecast. Cost and slippage assumptions are simplified.
{% if err %}

{{err}}

{% endif %}
{% if res %}
Starting
₹5,00,000
Final marked equity
₹{{"{:,.0f}".format(res.final)}}
Return
{{res.ret}}%
Max drawdown
{{res.dd}}%
Closed trades / win rate
{{res.n}} / {{res.win}}%
{% for t in res.trades %}{% for v in t %}{% endfor %}{% endfor %}
Entry dateEntryQtyExit dateExitP&L
{{v if v is not none and v!='' else '—'}}
{% endif %}{% endblock %}