feat(key-monitor): add program trigger entry across four exchanges

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-14 00:42:21 +08:00
parent c95ca6ac35
commit edf4bb835d
26 changed files with 3002 additions and 76 deletions
+5 -2
View File
@@ -44,11 +44,11 @@ def calc_fib_plan(direction, upper, lower, ratio):
def stored_key_signal_type(monitor_type):
"""写入 order_monitors / trade_records 的 key_signal_type(箱体/收敛/斐波/假突破)。"""
"""写入 order_monitors / trade_records 的 key_signal_type(箱体/收敛/斐波/假突破/触价开仓)。"""
mt = (monitor_type or "").strip()
if mt in FIB_KEY_MONITOR_TYPES:
return mt
if mt == "假突破":
if mt in ("假突破", "触价开仓"):
return mt
if mt in KEY_MONITOR_AUTO_TYPES:
return mt
@@ -61,6 +61,7 @@ KEY_ENTRY_REASON_BY_SIGNAL = {
"斐波回调0.618": "关键位斐波0.618",
"斐波回调0.786": "关键位斐波0.786",
"假突破": "关键位假突破",
"触价开仓": "关键位触价开仓",
"趋势回调": "趋势回调",
}
@@ -76,6 +77,8 @@ def key_signal_type_for_trade_record(key_signal_type, box_auto_types):
return kst
if kst == "假突破":
return kst
if kst == "触价开仓":
return kst
if box_auto_types and kst in box_auto_types:
return kst
return None