笔确认改回原著口径,并留下严格笔对照。

顶底分型仍用分型自身高低判断重叠;三K盒子那种更严的算法先注释保留。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-09-12 02:52:01 +08:00
co-authored by Cursor
parent c22cd48f36
commit 2b1b500108
+11 -2
View File
@@ -668,13 +668,22 @@ class BiBuilderMixin:
return bi_list
def check_top_fx(self, last_bottom, klc):
if (last_bottom.high > klc.pre.low or last_bottom.high > klc.next.low) and (klc.index - last_bottom.index < 100):
#严格笔
#last_bottom_high = max(last_bottom.high, last_bottom.pre.high, last_bottom.next.high)
#缠论原著笔
last_bottom_high = last_bottom.high
if (last_bottom_high > klc.pre.low or last_bottom_high > klc.next.low) and (klc.index - last_bottom.index < 100):
#print(klc.end_time, "check_top_fx False")
return False
return True
def check_bottom_fx(self, last_top, klc):
if (last_top.low < klc.pre.high or last_top.low < klc.next.high) and (klc.index - last_top.index < 100):
#严格笔
#last_top_low = min(last_top.low, last_top.pre.low, last_top.next.low)
#缠论原著笔
last_top_low = last_top.low
if (last_top_low < klc.pre.high or last_top_low < klc.next.high) and (klc.index - last_top.index < 100):
return False
return True
# 线段内的中枢