전략및 버그 수정

This commit is contained in:
2026-02-22 23:51:10 +09:00
parent 7867ced1b6
commit 81c16a8115
4 changed files with 20 additions and 13 deletions

View File

@@ -163,8 +163,10 @@ class ShortTermStrategy:
return None
# 조건 5: MA5 상향 (Fake-out 방지)
# BB 하단 ±1% 구간에서는 최근 급락으로 MA5가 눌려있을 수 있으므로 완화 허용
# (close < bb_lower * 0.99 → BB 하단을 크게 이탈 중 = 완전 차단, 그 외는 허용)
ma5 = sum(m15_closes[-5:]) / 5
if close <= ma5:
if close < ma5 and close < bb_lower * 0.99:
return None
# 조건 6: 거래량 급증 (1.5배 강화)