Fixed Bugs

This commit is contained in:
Harwinder
2026-05-04 10:24:54 -04:00
parent e4138ee60a
commit 242df24ca7
7 changed files with 32 additions and 29 deletions
+8 -6
View File
@@ -76,7 +76,7 @@ class TechnicalConfig:
rsi_neutral_upper: float = 60.0
rsi_neutral_lower: float = 40.0
# MACD (12, 26, 9 is standard but we validate)
# MACD (12, 26, 9 is standard)
macd_fast: int = 12
macd_slow: int = 26
macd_signal: int = 9
@@ -110,6 +110,9 @@ class TechnicalConfig:
# Pivot points lookback
pivot_lookback: int = 1
# Divergence detection — how many bars back to scan for swing points
divergence_lookback: int = 14
@dataclass
class SignalConfig:
@@ -130,10 +133,6 @@ class SignalConfig:
# Multi-timeframe confirmation requirements
mtf_agreement_threshold: int = 2 # out of 3 timeframes must agree
# Divergence detection sensitivity
divergence_lookback: int = 14
divergence_min_swing: float = 0.001 # minimum price swing for valid divergence
# Signal cooldown (prevent over-signalling same direction)
cooldown_bars: int = 5
@@ -185,10 +184,13 @@ class PlatformConfig:
# Data source
data_lookback_days: int = 60 # enough for 200 EMA on H1
# Twelve Data API key (overridden by TWELVE_DATA_API_KEY env var)
twelve_data_api_key: str = "f563b22ffdfd4924955decbe1a8c8701"
# Dashboard refresh interval (seconds)
refresh_interval: int = 300 # 5 minutes
# Logging
log_level: str = "INFO"
log_signals_to_file: bool = True
signal_log_path: str = "signals.log"
signal_log_path: str = "signals.log"