增加关键位人工输入
This commit is contained in:
@@ -69,6 +69,28 @@ class WatchSymbol(BaseModel):
|
||||
symbol: str
|
||||
|
||||
|
||||
class KeyMonitorConfig(BaseModel):
|
||||
"""
|
||||
人工关键位突破监控(漏斗下方录入)。
|
||||
触发后按录入的标准/趋势方案计算单一 SL/TP,企微推送并可选转发执行器。
|
||||
"""
|
||||
|
||||
enabled: bool = True
|
||||
poll_interval_seconds: int = Field(5, ge=2, le=120)
|
||||
push_wecom: bool = True
|
||||
forward_executor: bool = True
|
||||
standard_stop_outside_pct: float = Field(0.3, ge=0.0, le=5.0)
|
||||
trend_stop_outside_pct: float = Field(1.0, ge=0.0, le=10.0)
|
||||
min_planned_rr: float = Field(1.5, gt=0.0)
|
||||
volume_ma_bars: int = Field(20, ge=5)
|
||||
volume_ratio_min: float = Field(1.3, gt=0.0)
|
||||
breakout_amp_min_pct: float = Field(0.03, ge=0.0)
|
||||
breakout_amp_max_pct: float = Field(0.5, gt=0.0)
|
||||
daily_volume_rank_max: int = Field(30, ge=1)
|
||||
# 全市场 5m TRIGGER 是否仍转发执行器(默认关;关键位走 forward_executor)
|
||||
auto_scan_forward_executor: bool = False
|
||||
|
||||
|
||||
class MonitorConfig(BaseModel):
|
||||
"""
|
||||
监控侧过滤。
|
||||
@@ -131,6 +153,7 @@ class Settings(BaseModel):
|
||||
proxy: ProxyConfig = Field(default_factory=ProxyConfig)
|
||||
order_executor: OrderExecutorConfig = Field(default_factory=OrderExecutorConfig)
|
||||
monitor: MonitorConfig = Field(default_factory=MonitorConfig)
|
||||
key_monitor: KeyMonitorConfig = Field(default_factory=KeyMonitorConfig)
|
||||
gemma: GemmaConfig = Field(default_factory=GemmaConfig)
|
||||
daily_report: DailyReportConfig = Field(default_factory=DailyReportConfig)
|
||||
watch_symbols: list[WatchSymbol] = Field(default_factory=list)
|
||||
|
||||
Reference in New Issue
Block a user