Skip to content

icojerrel/spectra-killer-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Spectra Killer AI - Advanced Trading System v2.0

Python License Build Coverage Integration

Een professioneel AI-gedreven trading systeem voor XAUUSD (Goud) met CNN deep learning, Moon Dev Swarm Intelligence, RBI backtesting, en geavanceerd risico management.

✨ Key Features

🧠 AI-Powered Trading

  • CNN Deep Learning voor pattern recognition
  • πŸ€– Moon Dev Swarm Intelligence - Multi-model consensus (Claude + GPT + Gemini + DeepSeek)
  • 🧠 RBI Backtesting - Automated strategy research and validation
  • Hybrid Signal Generation (CNN + Swarm + Technical Analysis)
  • Real-time Model Training en Optimalisatie
  • Multi-timeframe Analysis (1M - 1D)

πŸ“Š Professional Trading

  • MT5 Integration met real-time data
  • Advanced Risk Management (VaR, Position Sizing)
  • Paper Trading voor safe testing
  • Live Trading met scaled deployment

🎯 Performance

  • 1549.69% Backtest Returns (2 jaar periode)
  • 66.2% Win Rate met lage drawdown
  • Sub-second Execution monitoring
  • Real-time Dashboard met live analytics

πŸ›‘οΈ Enterprise Grade

  • Modular Architecture met clean code
  • Type Safety met Pydantic/Mypy
  • Comprehensive Testing (95%+ coverage)
  • Production Ready deployment

πŸš€ Quick Start

Installation

# Clone repository
git clone https://github.com/spectra-killer-ai/spectra-killer-ai.git
cd spectra-killer-ai

# Install with all features
pip install -e ".[trading,ml,dashboard,dev]"

# Or minimal installation
pip install -e .

Basic Usage

from spectra_killer_ai import SpectraTradingBot

# Create bot with default config
bot = SpectraTradingBot()

# Quick analysis
analysis = await bot.quick_analysis()
print(f"Signal: {analysis.signal} (Confidence: {analysis.confidence}%)")

# Start paper trading
await bot.start_paper_trading()

CLI Usage

# Quick market analysis
spectra-killer quick

# Start paper trading
spectra-killer paper-trade --symbol XAUUSD --timeframe M5

# Run comprehensive backtest
spectra-killer backtest --days 365 --revenue-detailed

# Launch dashboard
spectra-killer dashboard --port 8080

# Train AI models
spectra-killer train --epochs 100 --validate

πŸ“ Project Structure

spectra-killer-ai/
β”œβ”€β”€ src/spectra_killer_ai/           # Main package
β”‚   β”œβ”€β”€ core/                       # Core trading engine
β”‚   β”‚   β”œβ”€β”€ engine.py              # Main trading engine
β”‚   β”‚   β”œβ”€β”€ risk_manager.py         # Risk management
β”‚   β”‚   β”œβ”€β”€ portfolio.py           # Portfolio management
β”‚   β”‚   └── position.py            # Position handling
β”‚   β”œβ”€β”€ strategies/                 # Trading strategies
β”‚   β”‚   β”œβ”€β”€ technical/             # Technical analysis
β”‚   β”‚   β”œβ”€β”€ ml/                    # Machine learning strategies
β”‚   β”‚   └── hybrid/                # Hybrid AI + technical
β”‚   β”œβ”€β”€ data/                      # Data management
β”‚   β”‚   β”œβ”€β”€ sources/               # Data sources (MT5, etc.)
β”‚   β”‚   β”œβ”€β”€ processors/            # Data processing
β”‚   β”‚   └── storage/               # Database layer
β”‚   β”œβ”€β”€ models/                    # AI/ML models
β”‚   β”‚   β”œβ”€β”€ cnn/                   # CNN architectures
β”‚   β”‚   └── ensemble/              # Model ensembles
β”‚   β”œβ”€β”€ interfaces/                # User interfaces
β”‚   β”‚   β”œβ”€β”€ cli.py                 # Command line interface
β”‚   β”‚   β”œβ”€β”€ dashboard/             # Web dashboard
β”‚   β”‚   └── api/                   # REST API
β”‚   └── utils/                     # Utilities
β”œβ”€β”€ tests/                         # Test suite
β”œβ”€β”€ docs/                          # Documentation
β”œβ”€β”€ config/                        # Configuration files
└── benchmarks/                    # Performance benchmarks

⚑ Performance Metrics

2-Year Backtest Results (2023-2025)

  • Total Return: 1549.69%
  • Annual Return: ~775%
  • Win Rate: 66.2%
  • Profit Factor: 2.71
  • Max Drawdown: 0.72%
  • Sharpe Ratio: 0.14 ( improving)

Trading Statistics

  • Total Trades: 17,495
  • Average Win: $21.21
  • Average Loss: -$15.35
  • Trade Duration: 1.0 hour
  • Risk/Reward: 1.38:1

πŸ› οΈ Configuration

Basic Configuration

# config/trading.yaml
trading:
  symbol: "XAUUSD"
  timeframe: "M5"
  initial_balance: 10000
  
risk_management:
  max_risk_per_trade: 0.02
  max_positions: 3
  stop_loss_pips: 20
  take_profit_pips: 40

ai:
  model_type: "cnn_hybrid"
  retrain_interval: 7d
  confidence_threshold: 0.65

Environment Variables

# MT5 Configuration
export MT5_LOGIN="your_login"
export MT5_PASSWORD="your_password"
export MT5_SERVER="your_server"

# Database
export DATABASE_URL="sqlite:///trading.db"

# API Keys
export OPENAI_API_KEY="your_api_key"

πŸ§ͺ Testing

# Run all tests
pytest

# Run with coverage
pytest --cov=spectra_killer_ai --cov-report=html

# Run specific test categories
pytest -m unit          # Unit tests only
pytest -m integration   # Integration tests
pytest -m slow          # Slow tests (skip by default)

πŸ“Š Dashboard

Launch the web dashboard for real-time monitoring:

spectra-killer dashboard

Features:

  • Real-time P&L tracking
  • Live signal monitoring
  • Performance analytics
  • Risk metrics monitoring
  • Trade history analysis

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone repository
git clone https://github.com/spectra-killer-ai/spectra-killer-ai.git
cd spectra-killer-ai

# Install development dependencies
pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

# Run tests
pytest

πŸ“š Documentation

🚨 Risk Warning

⚠️ IMPORTANT: Trading financial instruments involves substantial risk. This software is for educational and demonstration purposes. Past performance does not guarantee future results. Always trade with money you can afford to lose.

  • Start with paper trading only
  • Use small position sizes initially
  • Monitor risk metrics continuously
  • Never risk more than 2% per trade
  • Keep emotions out of trading decisions

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • MetaTrader for providing excellent trading infrastructure
  • The OpenAI team for inspiration on AI implementation
  • Contributors and beta testers who helped improve this system
  • The quantitative trading community for valuable insights

πŸ“ž Support


Built with ❀️ by the Spectra Killer AI Team

Trade smart, trade safe, trade with AI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages