feat: Add stock_type to signal processing in t_atr_ema_v2.py

This commit is contained in:
Bobby (aider) 2025-02-09 12:13:43 -08:00
parent 1cc04b500a
commit d8b41c8d8a

View File

@ -98,7 +98,7 @@ def run_atr_ema_scanner_v2(min_price: float, max_price: float, min_volume: int,
entry_signals = [] entry_signals = []
for ticker, current_price, current_volume, last_update in qualified_stocks: for ticker, current_price, current_volume, last_update, stock_type in qualified_stocks:
try: try:
df = get_stock_data(ticker, start_date, end_date, interval) df = get_stock_data(ticker, start_date, end_date, interval)
@ -113,6 +113,7 @@ def run_atr_ema_scanner_v2(min_price: float, max_price: float, min_volume: int,
'target_price': signal_data['ema'], 'target_price': signal_data['ema'],
'volume': current_volume, 'volume': current_volume,
'signal_date': signal_date, 'signal_date': signal_date,
'stock_type': stock_type,
'last_update': datetime.fromtimestamp(last_update/1000000000) 'last_update': datetime.fromtimestamp(last_update/1000000000)
} }