📈 定投回测模拟器

基于 yfinance 数据源,验证定投策略相对于本金的收益表现。

  • {{ stock.name }} ({{ stock.code }}) - {{ stock.market }}
  • {{ stock.name }} ({{ stock.code }}) - {{ stock.market }}
{{ index + 1 }}. {{ stock.name }} ({{ stock.code }})
定投回测结果

📊 以下对比显示定投策略的实际收益与投入本金(无收益)的差异

初始投资: {{ formatCurrency(backtestResult.initial_investment) }}
每月定投: {{ formatCurrency(backtestResult.monthly_investment) }}
累计投入: {{ formatCurrency(backtestResult.total_invested) }}
最终资产: {{ formatCurrency(backtestResult.final_total) }}
总收益率: {{ backtestResult.total_return_pct.toFixed(2) }}%
投资次数: {{ backtestResult.total_investments }}
绝对收益: {{ formatCurrency(backtestResult.absolute_profit) }}
最大回撤: {{ backtestResult.max_drawdown_pct.toFixed(2) }}%
投资月数: {{ backtestResult.strategy_stats.investment_period_months }}
📈 图表说明:
红色实线:定投策略的资产价值变化
蓝色虚线:累计投入本金(无投资收益的基准线)
• 红线在蓝线之上表示盈利,之下表示亏损
多股票对比结果

📊 以下对比显示多个股票的定投收益与投入本金的表现

初始投资: {{ formatCurrency(backtestResult.principal_data.initial_investment) }}
每月定投: {{ formatCurrency(backtestResult.principal_data.monthly_investment) }}
投资次数: {{ backtestResult.principal_data.total_investments }}
股票名称 最终资产 总收益率 绝对收益 最大回撤
📈 图表说明:
蓝色虚线:累计投入本金(无投资收益的基准线)
彩色实线:各股票定投策略的资产价值变化
• 线条在本金线之上表示盈利,之下表示亏损