This commit is contained in:
dsyoon
2025-09-02 06:38:37 +09:00
parent 2e8cb20099
commit db36e2d69b

View File

@@ -229,8 +229,8 @@ class Monitor(HTS):
try: try:
# 신호 생성 및 최신 포인트 확인 # 신호 생성 및 최신 포인트 확인
data = self.annotate_signals(symbol, data) data = self.annotate_signals(symbol, data)
#if data['point'].iloc[-1] != 1: if data['point'].iloc[-1] != 1:
# return False return False
# 인버스 데이터: 매수 신호를 매도로 처리 (fall_6p, deviation40 만 허용) # 인버스 데이터: 매수 신호를 매도로 처리 (fall_6p, deviation40 만 허용)
if is_inverse: if is_inverse:
@@ -321,6 +321,7 @@ class Monitor(HTS):
if check_5_week_lowest: if check_5_week_lowest:
buy_amount *= 2 buy_amount *= 2
"""
# 분봉 시스널이 없을 때는 이전 봉보다 높으면 60분 마다 매수 # 분봉 시스널이 없을 때는 이전 봉보다 높으면 60분 마다 매수
if data['point'].iloc[-1] != 1: if data['point'].iloc[-1] != 1:
last_buy_dt = self.buy_cooldown.get(symbol, {}).get('buy', {}).get('datetime') last_buy_dt = self.buy_cooldown.get(symbol, {}).get('buy', {}).get('datetime')
@@ -329,7 +330,7 @@ class Monitor(HTS):
if time_diff.total_seconds() < 3600: if time_diff.total_seconds() < 3600:
print(f"{symbol}: 매수 금지 중 (남은 시간: {3600 - time_diff.total_seconds():.0f}초)") print(f"{symbol}: 매수 금지 중 (남은 시간: {3600 - time_diff.total_seconds():.0f}초)")
return False return False
"""
buy_amount = self.hts.buyCoinMarket(symbol, buy_amount) buy_amount = self.hts.buyCoinMarket(symbol, buy_amount)
if self.cooldown_file is not None: if self.cooldown_file is not None: