From db36e2d69bf473d457741608dc16002373cfa7a9 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 2 Sep 2025 06:38:37 +0900 Subject: [PATCH] init --- monitor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/monitor.py b/monitor.py index 45110f0..b9e7cd1 100644 --- a/monitor.py +++ b/monitor.py @@ -229,8 +229,8 @@ class Monitor(HTS): try: # 신호 생성 및 최신 포인트 확인 data = self.annotate_signals(symbol, data) - #if data['point'].iloc[-1] != 1: - # return False + if data['point'].iloc[-1] != 1: + return False # 인버스 데이터: 매수 신호를 매도로 처리 (fall_6p, deviation40 만 허용) if is_inverse: @@ -321,6 +321,7 @@ class Monitor(HTS): if check_5_week_lowest: buy_amount *= 2 + """ # 분봉 시스널이 없을 때는 이전 봉보다 높으면 60분 마다 매수 if data['point'].iloc[-1] != 1: 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: print(f"{symbol}: 매수 금지 중 (남은 시간: {3600 - time_diff.total_seconds():.0f}초)") return False - + """ buy_amount = self.hts.buyCoinMarket(symbol, buy_amount) if self.cooldown_file is not None: