Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETF 共识策略 · 每日扫描与组合回测

三策略共识(动量120>5%、唐奇安30/10、60日新高)+ 组合规则 enhanced5y_n5(三票 + MA200 择时 + 动量>25% + 最多5只)。

快速开始

pip install -r requirements-etf.txt
python run_etf_daily_signals.py --workers 4
python run_etf_nightly_update.py

Cursor Automations

cursor.com/automations 绑定本仓库后:

自动化 时间 说明
ETF每日买卖扫描 工作日 17:00 北京 etf-daily-scan.prompt.md
ETF每晚数据更新 工作日 22:15 北京 run_etf_nightly_update.py
ETF每日开盘操作 工作日 09:20 北京 etf-daily-open-execute.prompt.md

主要脚本

  • run_etf_daily_signals.py — 全市场信号 → mx_data_output/etf_daily/latest/
  • run_etf_consensus_portfolio_10.py — 组合回测(--profile enhanced5y_n5
  • run_etf_nightly_update.py — 每晚更新 CSV + PnL 图
  • plot_etf_portfolio_pnl.py — 净值/回撤图

输出目录(运行后生成):mx_data_output/etf_daily/latest/latest_portfolio/

推送到 GitHub(Automation 必需)

本机已 git init 并提交代码。首次推送:

# 1. 登录 GitHub(浏览器)
gh auth login -h github.com -p https -w

# 2. 创建仓库并推送(默认名 etf-consensus)
powershell scripts/push_to_github.ps1

然后在 Cursor Automations 里把两个自动化绑定到该仓库。

About

ETF consensus daily scan and portfolio backtest for Cursor Automations

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages