{{ ticker }} - {{ strategy_name }}

Hệ thống VN-Backtest • Khung thời gian: {{ metrics.years }} năm ({{ metrics.duration_days }} ngày)

Việt Nam Stock Market
Cảnh báo dữ liệu (Survival Bias): Kết quả backtest dựa trên các mã cổ phiếu hiện đang hoạt động trực tuyến. Để kiểm thử các cổ phiếu đã hủy niêm yết (như ROS, FLC), vui lòng đặt tệp dữ liệu vào thư mục local_data/.
Tổng Lợi Nhuận
{% if metrics.total_return >= 0 %}+{% endif %}{{ (metrics.total_return * 100) | round(2) }}%
Benchmark {{ benchmark_symbol | default('VNINDEX') }}: {{ (metrics.benchmark_return * 100) | round(2) }}%
Lợi Nhuận Gộp Hàng Năm (CAGR)
{% if metrics.cagr >= 0 %}+{% endif %}{{ (metrics.cagr * 100) | round(2) }}%
Đã bao gồm thuế và phí giao dịch
Sụt Giảm Lớn Nhất (MDD)
{{ (metrics.max_drawdown * 100) | round(2) }}%
Thời gian phục hồi dài nhất: {{ metrics.max_drawdown_duration }} phiên
Sharpe / Sortino Ratio
{{ metrics.sharpe_ratio | round(2) }} / {{ metrics.sortino_ratio | round(2) }}
Tính trên lãi suất phi rủi ro: {{ (metrics.risk_free_rate or 0.04) * 100 }}%
Tỷ Lệ Thắng / Profit Factor
{{ (metrics.win_rate * 100) | round(1) }}% / {{ metrics.profit_factor | round(2) }}
Tổng số lệnh khớp: {{ metrics.total_trades }} (Giữ TB: {{ metrics.avg_hold_days }} ngày)
Hệ Số Alpha & Beta
{% if metrics.alpha >= 0 %}+{% endif %}{{ (metrics.alpha * 100) | round(2) }}% / {{ metrics.beta | round(2) }}
Vượt trội so với thị trường: {{ (metrics.outperformance * 100) | round(2) }}%
Hệ Số Calmar / Recovery Factor
{{ metrics.calmar_ratio | round(2) if metrics.calmar_ratio is not none else 'N/A' }} / {{ metrics.recovery_factor | round(2) if metrics.recovery_factor is not none else 'N/A' }}
LN ròng so với mức sụt giảm tài sản lớn nhất
Kỳ vọng giao dịch / Info Ratio
{% if metrics.expectancy >= 0 %}+{% endif %}{{ (metrics.expectancy * 100) | round(2) }}% / {{ metrics.information_ratio | round(2) if metrics.information_ratio is not none else 'N/A' }}
Kỳ vọng mỗi lệnh / Sharpe Ratio chủ động
{{ equity_chart }}
{{ dd_chart }}
{{ allocation_chart }}
{{ signals_chart }}
{% if ticker_summary %}

Tổng hợp hiệu suất giao dịch theo từng mã cổ phiếu

{% for summary in ticker_summary %} {% endfor %}
Mã CP Tổng số GD Tỷ lệ thắng Lợi nhuận ròng Tỷ suất LN bình quân Giao dịch tốt nhất Giao dịch tệ nhất
{{ summary.ticker }} {{ summary.total_trades }} {{ summary.win_rate }} {{ summary.pnl }} {{ summary.avg_return }} {{ summary.best_trade }} {{ summary.worst_trade }}
{% endif %}

Nhật ký giao dịch gần đây (Tối đa 100 lệnh mới nhất / Tổng {{ total_trades_count }} lệnh)

{% for trade in trades %} {% else %} {% endfor %}
Ngày khớp Mã CP Loại lệnh Số lượng Giá khớp Giá trị khớp Phí GD Thuế bán Thực nhận / Chi Ghi chú
{{ trade.date }} {{ trade.ticker }} {{ trade.action }} {{ trade.qty }} {{ trade.price }} {{ trade.val }} {{ trade.fee }} {{ trade.tax }} {{ trade.total }} {{ trade.note }}
Không có giao dịch nào được thực hiện.