基金定投止盈提示系统

最后更新:{{lastUpdate}}

止盈策略: 基于目标收益率({{globalSettings.targetProfitRate || 20}}%)和高点回落阈值({{globalSettings.drawdownThreshold || 10}}%)自动判断

持仓基金概览

加载中...

正在获取基金最新数据...

持仓基金

{{funds.length}}只

建议止盈

{{suggestedSellCount}}只

持仓市值

{{formatCurrency(totalValue)}}

投入总金额

{{formatCurrency(totalInvestment)}}

投入总金额(实际)

{{formatCurrency(actualTotalInvestment)}}

持仓总收益

{{formatCurrencyWithSign(totalProfit)}}

持仓总收益率

{{totalReturnRate >= 0 ? '+' : ''}}{{totalReturnRate}}%

建议止盈基金 ({{suggestedSellCount}}只)
{{fund.name}}

基金代码: {{fund.code}} | 持有份额: {{parseFloat(fund.shares || 0).toFixed(2)}}份

当前净值: {{fund.netValue ? fund.netValue.toFixed(4) : '0.0000'}} (截至: {{fund.netValueDate}}) {{fund.apiStatus === 'success' ? '实时数据' : '数据获取失败'}}

上一日净值: {{fund.lastNetValue.toFixed(4)}} ({{fund.lastNetValueDate}}) {{fund.dailyGrowthRate >= 0 ? '+' : ''}}{{fund.dailyGrowthRate.toFixed(2)}}%

持有金额: {{formatCurrency(fund.currentValue)}} | 买入金额: {{formatCurrency(getFundInvestmentAmount(fund))}}

持仓收益: {{formatCurrency(fund.profit)}} ({{(fund.profitRate * 100).toFixed(2)}}%)

定投计划:

建议止盈

建议卖出: {{formatCurrency(fund.suggestedSellAmount)}}

{{fund.suggestedSellShares.toFixed(2)}}

建议持有基金 ({{suggestedHoldCount}}只)
{{fund.name}}

基金代码: {{fund.code}} | 持有份额: {{parseFloat(fund.shares || 0).toFixed(2)}}份

当前净值: {{fund.netValue ? fund.netValue.toFixed(4) : '0.0000'}} (截至: {{fund.netValueDate}}) {{fund.apiStatus === 'success' ? '实时数据' : '数据获取失败'}}

上一日净值: {{fund.lastNetValue.toFixed(4)}} ({{fund.lastNetValueDate}}) {{fund.dailyGrowthRate >= 0 ? '+' : ''}}{{fund.dailyGrowthRate.toFixed(2)}}%

持有金额: {{formatCurrency(fund.currentValue)}} | 买入金额: {{formatCurrency(getFundInvestmentAmount(fund))}}

持仓收益: {{formatCurrency(fund.profit)}} ({{(fund.profitRate * 100).toFixed(2)}}%)

定投计划:

建议持有

收益率未达止盈目标

建议继续定投 ({{suggestedBuyCount}}只)
{{fund.name}}

基金代码: {{fund.code}} | 持有份额: {{parseFloat(fund.shares || 0).toFixed(2)}}份

当前净值: {{fund.netValue ? fund.netValue.toFixed(4) : '0.0000'}} (截至: {{fund.netValueDate}}) {{fund.apiStatus === 'success' ? '实时数据' : '数据获取失败'}}

上一日净值: {{fund.lastNetValue.toFixed(4)}} ({{fund.lastNetValueDate}}) {{fund.dailyGrowthRate >= 0 ? '+' : ''}}{{fund.dailyGrowthRate.toFixed(2)}}%

持有金额: {{formatCurrency(fund.currentValue)}} | 买入金额: {{formatCurrency(getFundInvestmentAmount(fund))}}

持仓收益: {{formatCurrency(fund.profit)}} ({{(fund.profitRate * 100).toFixed(2)}}%)

定投计划:

建议定投

当前浮亏,坚持定投

暂无基金持仓

点击"添加基金"开始管理您的基金投资

持仓管理

在此管理您的基金持仓。您可以编辑持仓信息或添加新的基金。

自动计算模式使用说明:
  • 自动计算模式:启用后系统将根据定投计划和历史净值自动计算累计份额,适合有规律定投的用户
  • 手动模式:需要手动记录每笔交易,适合不规则投资或需要精确记录历史交易的用户
  • 两种模式互斥:启用自动计算的基金无法在"交易记录"中手动录入交易
  • 切换模式时,系统会保留当前的份额和成本数据作为新模式的初始值
定投开始日期前已有持仓操作指南:
  1. 添加新基金时:在"添加基金"模态框中,先填写基金代码和名称,然后在"自动计算模式"下设置:
    • 定投开始日期:设置您开始定投的日期(如2023-01-01)
    • 初始份额:输入开始日期前已持有的份额(如1000份)
    • 初始成本:输入初始份额对应的总成本(如2000元)
    • 定投计划:设置每周的定投金额
  2. 编辑现有基金时:在"持仓管理"中找到对应基金,启用"自动计算模式"后:
    • 设置正确的定投开始日期
    • 填写初始份额初始成本
    • 配置定投计划
  3. 注意事项
    • 初始份额和成本仅在自动计算模式下生效
    • 系统会自动计算:总份额 = 初始份额 + 截至昨日的定投累计份额
    • 系统会自动计算:总成本 = 初始成本 + 截至昨日的定投累计投入
    • 由于基金交易遵循T+1确认规则,系统只能使用已公布的净值数据进行计算
    • 如果初始份额为0,可忽略初始成本字段
{{fund.name || '未命名基金'}}
{{fund.code}}
启用后系统将根据定投计划和历史净值自动计算份额
{{ fund.autoCalculate ? '已启用' : '已禁用' }}
当前市值:
{{formatCurrency(fund.currentValue)}}
买入金额:
{{formatCurrency(getFundInvestmentAmount(fund))}}
持仓收益:
{{formatCurrency(fund.profit)}} ({{(fund.profitRate * 100).toFixed(2)}}%)
净值日期: {{fund.netValueDate}}
暂无基金持仓

点击"添加基金"按钮开始管理您的基金持仓

止盈策略设置

智能止盈策略说明:

系统基于以下两个策略自动判断是否需要止盈:

  • 策略一:目标收益率止盈 - 当基金收益率达到设定的目标收益率时,系统建议卖出指定比例的持仓
  • 策略二:高点回落止盈 - 当基金从历史最高点回落后超过设定的回落阈值时,系统建议卖出指定比例的持仓
当收益率达到此值时触发止盈建议
从最高点回落超过此值时触发止盈
触发止盈时卖出盈利部分的比例

交易记录管理

交易记录功能说明:
自动执行设置
自动执行说明:
  • 系统会在指定时间自动执行定投和份额确认
  • 需要保持页面打开状态
  • 建议在服务器上使用计划任务实现完全自动化
建议设置在14:30(确保15:00前完成)
建议设置在09:30(市场开盘后)
启用后系统会在指定时间自动执行操作
历史交易记录

暂无交易记录

基金 交易类型 交易日期 金额 (元) 份额 单位净值 手续费 (元) 操作
{{getFundNameByCode(transaction.fundId)}} {{transaction.transactionType === 'buy' ? '买入' : '卖出'}} {{transaction.transactionDate}} {{formatCurrency(transaction.amount)}} {{parseFloat(transaction.shares || 0).toFixed(4)}} {{parseFloat(transaction.nav || 0).toFixed(4)}} {{formatCurrency(transaction.fee)}}
定投执行说明
  • 执行今日定投:检查今天是否为交易日,根据定投计划执行买入操作(T日)
  • 确认T+1日份额:确认T+1交易日买入交易的份额,更新基金持有份额
  • 基金交易规则
    1. T日必须是交易日(使用节假日API判断,非交易日顺延)
    2. T+1日确认份额(T+1日必须是交易日,使用节假日API计算)
    3. 使用T日净值计算买入份额
  • 注意
    • 只有启用"自动计算模式"的基金才会执行定投
    • 使用节假日API自动判断交易日(包含周末和法定节假日)
    • 确认份额功能会在T+1交易日自动确认
    • 节假日API地址:https://x2rr.github.io/funds/holiday.json
    • 节假日API更新:一旦API更新,系统会自动重新计算确认日期