笔确认改回原著口径,并留下严格笔对照。
顶底分型仍用分型自身高低判断重叠;三K盒子那种更严的算法先注释保留。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -668,13 +668,22 @@ class BiBuilderMixin:
|
|||||||
return bi_list
|
return bi_list
|
||||||
|
|
||||||
def check_top_fx(self, last_bottom, klc):
|
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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def check_bottom_fx(self, last_top, klc):
|
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 False
|
||||||
return True
|
return True
|
||||||
# 线段内的中枢
|
# 线段内的中枢
|
||||||
|
|||||||
Reference in New Issue
Block a user