feat: Return signals from scanner functions and handle errors
This commit is contained in:
parent
5502c54845
commit
83159566e3
@ -99,6 +99,8 @@ def run_atr_ema_scanner(min_price: float, max_price: float, min_volume: int,
|
||||
continue
|
||||
|
||||
save_signals_to_csv(bullish_signals, 'atr_ema')
|
||||
return bullish_signals
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error during scan: {str(e)}")
|
||||
return []
|
||||
|
||||
@ -107,6 +107,8 @@ def run_atr_ema_scanner_v2(min_price: float, max_price: float, min_volume: int,
|
||||
continue
|
||||
|
||||
save_signals_to_csv(entry_signals, 'atr_ema_v2')
|
||||
return entry_signals
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error during scan: {str(e)}")
|
||||
return []
|
||||
|
||||
@ -244,6 +244,8 @@ def run_sunny_scanner(min_price: float, max_price: float, min_volume: int,
|
||||
continue
|
||||
|
||||
save_signals_to_csv(bullish_signals, 'sunny')
|
||||
return bullish_signals
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error during scan: {str(e)}")
|
||||
return []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user