What does signal_refresh_interval control?

The signal_refresh_interval setting defines how often MagicTradeBot evaluates trading signals.

It controls the frequency at which strategies generate actionable entries or exit signals based on market data.


⚙️ How It Works

  • Every signal_refresh_interval seconds, the bot:

    • Processes loaded candle data
    • Runs indicators and strategy logic
    • Generates trade signals (entry, exit, alerts)

Example:

signal_refresh_interval: 20  # Evaluate signals every 20 seconds
  • Signals are then used by the decision-making engine to execute trades.

⚖️ Performance Impact

🔹 Lower Values (e.g., 5–20 seconds)

  • Signals are generated faster, improving reaction to rapid market changes
  • Higher CPU and memory usage
  • More frequent API requests for underlying data

Best for: Scalping, HFT, or volatility-driven strategies


🔹 Higher Values (e.g., 60–1800 seconds)

  • Reduced computational and API load
  • Slower reaction to price movements
  • Suitable for swing or long-term strategies where speed is less critical

🎯 Key Considerations

  • Must balance speed vs. system load
  • Very short intervals may trigger API limits or increase server usage
  • Very long intervals may miss rapid opportunities in volatile markets

🚀 Summary

signal_refresh_interval controls how frequently the bot evaluates trading signals:

  • Lower values → Faster signal generation, higher resource usage
  • Higher values → Slower signal response, lower resource usage

Proper tuning ensures signals are timely, accurate, and system performance is stable.

📎 Related Topics