MagicTradeBot is designed to dynamically load decision templates based on real-time market behavior. However, as of MagicTradeBot 4.9, automatic template switching is temporarily disabled and the system loads only the default template to avoid complexity and confusion during testing.
The dynamic template selection logic is built for future expansion and works based on structured market condition analysis.
๐ Current Behavior (Version 4.9)
- Only the default decision template is loaded
- No automatic switching between bullish/bearish templates
- Ensures stability while the feature is under controlled testing
๐ง Planned Automatic Template Selection Logic
When fully enabled, the bot will select templates dynamically using two main detection mechanisms:
1๏ธโฃ Weekend vs Normal Market Detection
The bot checks whether:
- It is a weekday
- Or a weekend
Why this matters:
- Weekend markets often have different liquidity and volatility characteristics
- Some strategies perform better in stable weekday conditions
- Others require adjustments during low-volume weekends
Based on this detection, the bot can load:
- General Template (default)
- Weekend Template (if enabled)
2๏ธโฃ Signal Density & Market Direction Analysis
The more advanced and powerful method involves analyzing:
- Number of short signals detected
- Number of long signals detected
- Signal frequency within a defined time window (e.g., 30 minutes)
๐ How Signal-Based Detection Works
Under normal market conditions:
- 2โ4 signals may be detected per 30 minutes
- Signal distribution between long and short is relatively balanced
During extreme crash conditions:
- Short signals may spike dramatically
- Long signals may drop to zero
- Instead of 2โ4 signals, you might see 50โ100 short signals within 30 minutes
This sharp imbalance indicates:
- Strong bearish pressure
- Market panic
- Extreme volatility
Similarly, during extreme bullish breakouts:
- Long signals spike aggressively
- Short signals drop significantly
๐จ Example: Extreme Crash Scenario
Imagine this situation:
Normal condition:
- 3 short signals
- 2 long signals
- Balanced market
Sudden crash:
- 100 short signals
- 0 long signals
- Within 30-minute interval
This indicates:
- Aggressive market breakdown
- High volatility
- Elevated liquidation risk
If template switching is enabled:
- Bot detects signal spike
- Loads Extreme Bearish Template
- Activates it for a predefined duration (e.g., 1 hour)
During this time:
- Trade duration may shorten
- TP becomes tighter
- Risk controls become stricter
- Aggressive entries may be limited
After the period ends, bot re-evaluates and may revert to default template.
โฑ Temporary Template Activation
When extreme condition detected:
- Selected template remains active for a defined time (e.g., 1 hour)
- Prevents rapid switching
- Avoids unstable behavior
- Ensures controlled adaptive response
๐ฏ Why This Approach Is Powerful
Traditional bots only look at:
- Price movement
- Indicators
MagicTradeBot also analyzes:
- Signal density
- Signal imbalance
- Behavioral market pressure
Signal spikes act as early warning systems for:
- Market crashes
- Pump events
- Structural breakdowns
- Extreme volatility cycles
This allows the bot to adjust strategy before damage escalates.
๐ Why It Is Temporarily Disabled
Dynamic template switching is powerful but adds complexity:
- More configuration overhead
- More testing required
- Higher risk of misconfiguration
To ensure stability:
- Version 4.9 loads only default template
- Multi-template logic remains under controlled testing
๐ง In Simple Words
MagicTradeBot determines which decision template to use by:
- Checking calendar conditions (weekend vs weekday)
- Monitoring signal frequency and imbalance
- Detecting extreme market behavior
- Temporarily activating specialized rule sets
When fully enabled, this system will allow the bot to adapt intelligently to:
- Normal markets
- Bullish trends
- Bearish trends
- Extreme crash scenarios
- Extreme pump conditions
It transforms the Decision Engine from static rule execution into a dynamic, environment-aware trading system.