{% load currency_display %} {% load i18n %}
{{ strategy.name }}
{{ strategy.payment_currency.name }} x {{ strategy.target_currency.name }}
{% if strategy.current_price %} • {{ strategy.current_price.1|date:"SHORT_DATETIME_FORMAT" }} {% else %}
{% trans "No exchange rate available" %}
{% endif %}
{% spaceless %}
{% trans "Entries" %}
{% endspaceless %} {% if entries %}
{% for entry in entries %} {% endfor %}
{% trans "Date" %} {% trans "Amount Received" %} {% trans "Amount Paid" %} {% trans "Current Value" %} {% trans "P/L" %}
{{ entry.date|date:"SHORT_DATE_FORMAT" }} {% if entry.profit_loss_percentage > 0 %} {{ entry.profit_loss_percentage|floatformat:"2g" }}% {% elif entry.profit_loss_percentage < 0 %} {{ entry.profit_loss_percentage|floatformat:"2g" }}% {% endif %}
{% else %} {% endif %}
{% trans "Total Invested" %}
{% trans "Total Received" %}
{% trans "Current Total Value" %}
{% trans "Average Entry Price" %}
{% trans "Total P/L" %}
{% trans "Total % P/L" %}
{{ strategy.total_profit_loss_percentage|floatformat:2 }}%
{ const gradient = ctx.chart.ctx.createLinearGradient(ctx.p0.x, 0, ctx.p1.x, 0); if (ctx.p0.parsed.y >= 0 && ctx.p1.parsed.y >= 0) { // Both positive - solid green gradient.addColorStop(0, 'rgb(75, 192, 75)'); gradient.addColorStop(1, 'rgb(75, 192, 75)'); } else if (ctx.p0.parsed.y < 0 && ctx.p1.parsed.y < 0) { // Both negative - solid red gradient.addColorStop(0, 'rgb(255, 99, 132)'); gradient.addColorStop(1, 'rgb(255, 99, 132)'); } else if (ctx.p0.parsed.y >= 0 && ctx.p1.parsed.y < 0) { // Positive to negative - green to red gradient.addColorStop(0, 'rgb(75, 192, 75)'); gradient.addColorStop(1, 'rgb(255, 99, 132)'); } else { // Negative to positive - red to green gradient.addColorStop(0, 'rgb(255, 99, 132)'); gradient.addColorStop(1, 'rgb(75, 192, 75)'); } return gradient; } }, fill: false, borderWidth: 2 }] }, options: { responsive: true, scales: { y: { beginAtZero: false }, x: { ticks: { display: false } } }, plugins: { tooltip: { mode: 'index', intersect: false }, legend: { display: false, }, title: { display: false, } } } }) end ">
{% trans "Performance Over Time" %}
{% trans "Entry Price vs Current Price" %}
{% trans "Investment Frequency" %}

{% trans "The straighter the blue line, the more consistent your DCA strategy is." %}