mirror of
https://github.com/chrisnov-it/quantumbotx.git
synced 2026-07-27 18:57:47 +00:00
eb33b7c6ea
🔧 Core System Improvements: - Enhanced backtesting engine with realistic spread modeling and ATR-based risk management - Improved bot controller with better error handling and status tracking - Optimized MT5 integration with symbol verification and market watch integration - Strengthened database queries with better performance and reliability 🎯 New Strategy Features: - Added index strategies (Index Momentum, Index Breakout Pro) for stock market trading - Implemented market condition detector for dynamic strategy adaptation - Created performance scorer for strategy evaluation and ranking - Added strategy switcher system for automatic strategy optimization 📚 Educational Framework: - New beginner guide documentation for newcomer onboarding - Enhanced FAQ section with common trading questions - Quick start guide for rapid setup and deployment - Improved AI mentor integration with personalized guidance 🌍 Multi-Asset Expansion: - Extended data collection for 20+ trading instruments (Forex, Crypto, Indices) - Enhanced broker compatibility with FBS and other platforms - Improved symbol migration system for seamless broker switching - Added holiday integration for culturally-aware trading automation 🧪 Testing & Validation: - Added comprehensive index strategy testing suite - Enhanced holiday integration validation - Dynamic strategy signal testing for improved reliability - EURUSD optimization testing with London session focus ⚡ Performance & UI: - Frontend JavaScript optimizations for better trading bot management - Enhanced templates with improved user experience - Database migration system for smooth version upgrades - Optimized data download scripts for better efficiency 📊 Analytics & Monitoring: - Strengthened Flask application architecture with better routing - Improved logging system for production deployment - Enhanced error handling across all components - Better API response handling and status reporting
45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
# testing/test_holiday_visibility.py
|
|
"""
|
|
Test script for holiday visibility features
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
|
|
|
from core.seasonal.holiday_manager import holiday_manager
|
|
|
|
def test_holiday_visibility():
|
|
"""Test holiday visibility functionality"""
|
|
print("Testing Holiday Visibility...")
|
|
|
|
# Test current holiday detection
|
|
current_holiday = holiday_manager.get_current_holiday_mode()
|
|
if current_holiday:
|
|
print(f"✓ Active holiday: {current_holiday.name}")
|
|
print(f"✓ Period: {current_holiday.start_date} to {current_holiday.end_date}")
|
|
|
|
# Test if Ramadan is active
|
|
if "Ramadan" in current_holiday.name:
|
|
print("✓ Ramadan mode is active - navigation link should be visible")
|
|
else:
|
|
print("✓ Non-Ramadan holiday active - Ramadan navigation link should be hidden")
|
|
else:
|
|
print("✓ No active holiday - Ramadan navigation link should be hidden")
|
|
|
|
# Test Ramadan features when active
|
|
ramadan_features = holiday_manager.get_ramadan_features()
|
|
if ramadan_features:
|
|
print("✓ Ramadan features available:")
|
|
if 'iftar_countdown' in ramadan_features:
|
|
countdown = ramadan_features['iftar_countdown']
|
|
print(f" - Iftar countdown: {countdown['hours']}h {countdown['minutes']}m until {countdown['next_prayer']}")
|
|
else:
|
|
print("✓ No Ramadan features (not active)")
|
|
|
|
if __name__ == "__main__":
|
|
print("Holiday Visibility Test")
|
|
print("=" * 30)
|
|
test_holiday_visibility()
|
|
print("=" * 30)
|
|
print("Test completed successfully!") |