add etf
This commit is contained in:
23
py-client/etc/etf.yaml
Normal file
23
py-client/etc/etf.yaml
Normal 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
|
||||
Reference in New Issue
Block a user