{% for i in range(rows) %}
Position {{ loop.index }}
{% endfor %}
Clear
{% if results %}
{% for result in results %}

{{ result.scrip }} {{ 'Short' if result.side == 'sell' else 'Long' }}

Buy
{{ result.buy }}
Sell
{{ result.sell }}
Quantity
{{ result.quantity }}
Points
{{ '%.2f'|format(result.points) }}
Point Value
{{ result.point_value }}
Profit / Loss
₹{{ '%.2f'|format(result.profit) }}
{% endfor %}

Net₹{{ '%.2f'|format(net_total) }}

{% endif %}