The decision_making_interval setting defines how often MagicTradeBot executes its core decision-making engine.
It determines the frequency at which the bot evaluates entries, exits, stop-loss, and take-profit conditions based on pre-generated signals.
โ๏ธ How It Works
Every
decision_making_intervalseconds, the bot:- Checks active trades
- Evaluates stop-loss and take-profit rules
- Confirms whether entry conditions are still valid
- Executes trades or closes positions if criteria are met
Example:
decision_making_interval: 5 # Evaluate trade decisions every 5 seconds
- This ensures fast reactions without having to regenerate all signals each cycle.
โ๏ธ Why It Matters
- Fast exits: Critical for volatile markets to minimize losses or lock in profits.
- Responsive entries: Captures short-lived trading opportunities without waiting for the next signal refresh.
- Resource efficiency: Separates decision-making from signal generation, reducing computational overhead.
๐ฏ Key Considerations
Lower interval (e.g., 1โ5 sec):
- Quicker trade execution
- Better performance in fast markets
- Slightly higher CPU usage
Higher interval (e.g., 10โ30 sec):
- Slower trade responses
- Less resource intensive
- Suitable for swing or long-term strategies
๐ Summary
decision_making_interval controls how often the bot evaluates trade actions:
- Checks entries, exits, stop-loss, and take-profit
- Allows fast reaction to market changes without regenerating signals
- Optimized to balance speed, accuracy, and system performance