From 6e891a178f4b1567fd5e75d12aada94bcac7b2e5 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Sun, 18 May 2025 11:22:39 +0900 Subject: [PATCH] init --- stock_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_monitor.py b/stock_monitor.py index 44506eb..4a62ee9 100644 --- a/stock_monitor.py +++ b/stock_monitor.py @@ -144,7 +144,7 @@ def check_buy_signals(symbol, data): 'signal_line': latest['Signal'].iloc[0], 'buy_signals': buy_signals, 'signal_count': signal_count, - 'buy': signal_count >= 2 and (bb_signal and rsi_signal) + 'buy': (bb_signal and rsi_signal) or (signal_count >= 3 and (bb_signal or rsi_signal)) } else: rsi_signal = latest['RSI'] < 30 @@ -180,7 +180,7 @@ def check_buy_signals(symbol, data): 'signal_line': latest['Signal'], 'buy_signals': buy_signals, 'signal_count': signal_count, - 'buy': signal_count >= 2 and (bb_signal and rsi_signal) + 'buy': (bb_signal and rsi_signal) or (signal_count >= 3 and (bb_signal or rsi_signal)) } def format_message(info, market_type):