feat: 关键位回调/突破触价开仓拆分与穿越触发
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -48,8 +48,8 @@ def stored_key_signal_type(monitor_type):
|
||||
mt = (monitor_type or "").strip()
|
||||
if mt in FIB_KEY_MONITOR_TYPES:
|
||||
return mt
|
||||
if mt in ("假突破", "触价开仓"):
|
||||
return mt
|
||||
if mt in ("假突破", "回调触价开仓", "突破触价开仓", "触价开仓"):
|
||||
return mt if mt != "触价开仓" else "回调触价开仓"
|
||||
if mt in KEY_MONITOR_AUTO_TYPES:
|
||||
return mt
|
||||
return None
|
||||
@@ -61,6 +61,8 @@ KEY_ENTRY_REASON_BY_SIGNAL = {
|
||||
"斐波回调0.618": "关键位斐波0.618",
|
||||
"斐波回调0.786": "关键位斐波0.786",
|
||||
"假突破": "关键位假突破",
|
||||
"回调触价开仓": "关键位回调触价开仓",
|
||||
"突破触价开仓": "关键位突破触价开仓",
|
||||
"触价开仓": "关键位触价开仓",
|
||||
"趋势回调": "趋势回调",
|
||||
}
|
||||
@@ -75,10 +77,8 @@ def key_signal_type_for_trade_record(key_signal_type, box_auto_types):
|
||||
kst = (key_signal_type or "").strip()
|
||||
if kst in FIB_KEY_MONITOR_TYPES:
|
||||
return kst
|
||||
if kst == "假突破":
|
||||
return kst
|
||||
if kst == "触价开仓":
|
||||
return kst
|
||||
if kst in ("假突破", "回调触价开仓", "突破触价开仓", "触价开仓"):
|
||||
return kst if kst != "触价开仓" else "回调触价开仓"
|
||||
if box_auto_types and kst in box_auto_types:
|
||||
return kst
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user