This commit is contained in:
2026-09-17 00:56:05 +08:00
parent 33693adb66
commit c7d39938a2
14 changed files with 1005 additions and 0 deletions

23
py-client/etc/etf.yaml Normal file
View File

@@ -0,0 +1,23 @@
# 标的是示例白名单;仅在账户配置 strategy: etf 时启用。
codes:
- "510300.SH"
- "159915.SZ"
# 固定买入手数,每手 100 份;每只 ETF 总持仓硬上限 10 手。
buy_hands: 1
max_hands: 10
# 60 日均线作为中轴;格距 = max(ATR×倍数, MA60×最小格距百分比, 0.001)。
atr_period: 14
atr_multiplier: 1.0
boll_period: 20
boll_std: 2.0
min_grid_pct: 0.5
# 复用 DipWatch触及低位后从观察低点反弹 0.61% 才买入。
rebound_pct: 0.61
watch_seconds: 600
# 达到高位和最低利润要求后启动网格回撤止盈。
min_profit_pct: 0.5
# 用于资金预留及止盈费用门槛,按实际券商佣金调整。
commission_rate: 0.0003
min_commission: 5.0
# 超过此秒数或缺少时间戳的行情不交易。
max_tick_age_seconds: 90