init
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user