{% extends "base.html" %} {% block title_key %}ai_mentor.history_page_title{% endblock %} {% block title %}πŸ“Š AI Mentor History{% endblock %} {% block head_extra %} {% endblock %} {% block content %}

πŸ“Š AI Mentor Trading History

Complete trading journey analysis with AI assistance

πŸ‡ΊπŸ‡Έ English Language β€’ πŸ“ˆ Performance Analysis β€’ 🧠 AI Insights

Total Reports

{{ reports|length if reports else 0 }}

sessions analyzed

Period

{{ days }} days

last history

Performance

{% set total_profit = reports|sum(attribute='profit_loss') if reports else 0 %}
${{ "%.2f"|format(total_profit) }}

total P&L

Win Rate

{% set profitable_sessions = reports|selectattr('profit_loss', '>', 0)|list|length if reports else 0 %} {% set win_rate = (profitable_sessions / reports|length * 100) if reports|length > 0 else 0 %}
{{ "%.1f"|format(win_rate) }}%

profit sessions

Period Filter

{% if reports %}
{% for report in reports %}
πŸ“… {{ (report.date if report.date else report.session_date).strftime('%d %B %Y') }}
{{ (report.date if report.date else report.session_date).strftime('%A') }} - Trading Session
{% if report.emotions %} {{ report.emotions|title }} {% endif %} {{ report.total_trades or report.trades|length or 0 }} trades
${{ "%.2f"|format(report.profit_loss or 0) }}
{% if report.motivation %}
πŸ€– AI Summary: {{ report.motivation[:200] }}{% if report.motivation|length > 200 %}...{% endif %}
{% endif %}
{% if report.market_conditions %} 🌐 {{ report.market_conditions|title }} Market {% endif %}
View Details β†’
{% endfor %}
{% if reports|length >= 10 %}
{% endif %} {% else %}
πŸ“Š

No Trading History Yet

Start trading to get AI analysis and personalized advice from your digital mentor.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}