# ⚡ Quick Start - Trading AI Secure ## 🎯 DĂ©marrage en 5 Minutes ### Étape 1 : VĂ©rifier PrĂ©requis (30 secondes) ```bash # VĂ©rifier Python 3.11+ python --version # VĂ©rifier pip pip --version # VĂ©rifier Git git --version ``` ✅ **Tout est OK ?** Passez Ă  l'Ă©tape 2 ❌ **Manque quelque chose ?** Voir [Installation PrĂ©requis](#installation-prĂ©requis) --- ### Étape 2 : Cloner et Installer (2 minutes) ```bash # Cloner le projet git clone https://github.com/votre-username/trading-ai-secure.git cd trading-ai-secure # CrĂ©er environnement virtuel python -m venv venv # Activer environnement # Windows: venv\Scripts\activate # Linux/macOS: source venv/bin/activate # Installer dĂ©pendances pip install -r requirements.txt ``` --- ### Étape 3 : Configuration Minimale (1 minute) ```bash # Copier fichiers de configuration cp config/risk_limits.example.yaml config/risk_limits.yaml cp config/strategy_params.example.yaml config/strategy_params.yaml cp config/data_sources.example.yaml config/data_sources.yaml # CrĂ©er fichier .env echo "ENVIRONMENT=development" > .env echo "LOG_LEVEL=INFO" >> .env echo "INITIAL_CAPITAL=10000" >> .env ``` --- ### Étape 4 : Premier Lancement (1 minute) ```bash # Lancer premier backtest python src/main.py --mode backtest --strategy intraday --symbol EURUSD --period 6m ``` **RĂ©sultat attendu** : ``` [INFO] Loading historical data for EURUSD... [INFO] Backtesting intraday strategy... [INFO] Results: - Total Return: 12.5% - Sharpe Ratio: 1.65 - Max Drawdown: 6.8% - Win Rate: 56.2% ``` --- ### Étape 5 : Explorer Dashboard (30 secondes) ```bash # Lancer dashboard streamlit run src/ui/dashboard.py ``` Ouvrir navigateur sur **http://localhost:8501** --- ## 🎓 Prochaines Étapes ### Option A : Je suis Trader 1. **Comprendre les stratĂ©gies** ```bash # Lire guide stratĂ©gies cat docs/STRATEGY_GUIDE.md ``` 2. **Tester diffĂ©rentes stratĂ©gies** ```bash # Scalping python src/main.py --mode backtest --strategy scalping # Swing python src/main.py --mode backtest --strategy swing ``` 3. **Ajuster paramĂštres de risque** ```bash # Éditer config/risk_limits.yaml nano config/risk_limits.yaml ``` ### Option B : Je suis DĂ©veloppeur 1. **Comprendre l'architecture** ```bash # Lire architecture cat docs/ARCHITECTURE.md ``` 2. **Explorer le code** ```bash # Structure du code tree src/ ``` 3. **Lancer les tests** ```bash # Tests unitaires pytest tests/ ``` ### Option C : Je suis Data Scientist 1. **Comprendre l'IA adaptative** ```bash # Lire framework IA cat docs/AI_FRAMEWORK.md ``` 2. **Explorer modĂšles ML** ```bash # Code ML ls src/ml/ ``` 3. **ExpĂ©rimenter optimisation** ```bash # Lancer optimisation Optuna python src/ml/optimize_parameters.py ``` --- ## 📚 Documentation ComplĂšte | Document | Quand le lire | |----------|---------------| | [README.md](README.md) | Vue d'ensemble projet | | [GETTING_STARTED.md](docs/GETTING_STARTED.md) | Installation dĂ©taillĂ©e | | [STRATEGY_GUIDE.md](docs/STRATEGY_GUIDE.md) | Comprendre stratĂ©gies | | [AI_FRAMEWORK.md](docs/AI_FRAMEWORK.md) | Comprendre IA | | [RISK_FRAMEWORK.md](docs/RISK_FRAMEWORK.md) | Comprendre risk management | | [BACKTESTING_GUIDE.md](docs/BACKTESTING_GUIDE.md) | Valider stratĂ©gies | | [PROJECT_STATUS.md](docs/PROJECT_STATUS.md) | État d'avancement | --- ## 🆘 ProblĂšmes Courants ### Erreur : "ModuleNotFoundError" ```bash # Solution : RĂ©installer dĂ©pendances pip install --upgrade pip pip install -r requirements.txt ``` ### Erreur : "Permission denied" ```bash # Solution : VĂ©rifier activation environnement virtuel # Devrait afficher (venv) dans le prompt ``` ### Erreur : "API rate limit exceeded" ```bash # Solution : Activer cache dans config/data_sources.yaml cache: enabled: true ``` ### Backtesting trop lent ```bash # Solution : RĂ©duire pĂ©riode python src/main.py --mode backtest --period 3m # 3 mois au lieu de 6 ``` --- ## 🎯 Objectifs par Semaine ### Semaine 1 : DĂ©couverte - [ ] Installation complĂšte - [ ] Premier backtest rĂ©ussi - [ ] Dashboard explorĂ© - [ ] Documentation lue ### Semaine 2 : ExpĂ©rimentation - [ ] Tester 3 stratĂ©gies diffĂ©rentes - [ ] Ajuster paramĂštres de risque - [ ] Comprendre mĂ©triques - [ ] Analyser rĂ©sultats ### Semaine 3 : Personnalisation - [ ] CrĂ©er premiĂšre stratĂ©gie custom - [ ] Optimiser paramĂštres - [ ] Backtester sur multiple pĂ©riodes - [ ] Valider avec Monte Carlo ### Semaine 4 : Validation - [ ] Paper trading 7 jours - [ ] Analyser performance - [ ] Ajuster selon rĂ©sultats - [ ] PrĂ©parer production --- ## 📊 Checklist Avant Production ### Phase 1 : Backtesting (Semaines 1-6) - [ ] Sharpe Ratio > 1.5 - [ ] Max Drawdown < 10% - [ ] Win Rate > 55% - [ ] Minimum 100 trades - [ ] Walk-forward analysis validĂ©e - [ ] Monte Carlo validĂ© ### Phase 2 : Paper Trading (Semaines 7-10) - [ ] 30 jours minimum - [ ] Performance stable - [ ] Pas de bugs critiques - [ ] Alertes fonctionnelles - [ ] Monitoring opĂ©rationnel ### Phase 3 : Production (Semaine 11+) - [ ] Compte IG Markets configurĂ© - [ ] Capital initial dĂ©fini - [ ] Limites de risque validĂ©es - [ ] Plan d'urgence en place - [ ] Monitoring 24/7 actif --- ## 🚀 Commandes Utiles ### DĂ©veloppement ```bash # Lancer tests pytest tests/ # VĂ©rifier code pylint src/ black src/ isort src/ # GĂ©nĂ©rer documentation mkdocs serve ``` ### Trading ```bash # Backtest python src/main.py --mode backtest --strategy STRATEGY --symbol SYMBOL # Paper trading python src/main.py --mode paper --strategy STRATEGY # Dashboard streamlit run src/ui/dashboard.py ``` ### Monitoring ```bash # Voir logs tail -f logs/trading.log # MĂ©triques python src/monitoring/metrics.py # Health check curl http://localhost:8000/health ``` --- ## 💡 Conseils ### Pour RĂ©ussir 1. **Commencer petit** : Tester avec capital virtuel 2. **Être patient** : Valider 30 jours minimum 3. **Documenter** : Noter tous les changements 4. **Monitorer** : Surveiller performance quotidiennement 5. **Apprendre** : Analyser chaque trade ### À Éviter 1. ❌ Passer en production sans validation 2. ❌ Ignorer les alertes de risque 3. ❌ Sur-optimiser les paramĂštres 4. ❌ Trader sans stop-loss 5. ❌ NĂ©gliger le monitoring --- ## 📞 Support ### Obtenir de l'Aide 1. **Documentation** : Lire docs/ en premier 2. **Issues GitHub** : CrĂ©er issue si bug 3. **Discussions** : Poser questions 4. **Discord** : Chat temps rĂ©el 5. **Email** : support@trading-ai-secure.com ### Contribuer Voir [CONTRIBUTING.md](docs/CONTRIBUTING.md) --- ## 🎉 FĂ©licitations ! Vous ĂȘtes prĂȘt Ă  dĂ©marrer avec Trading AI Secure ! **Prochaine Ă©tape recommandĂ©e** : Lire [GETTING_STARTED.md](docs/GETTING_STARTED.md) pour guide dĂ©taillĂ©. --- **Bon trading ! 🚀** --- ## 📝 Notes - Ce guide suppose un projet vierge - Adapter selon votre environnement - Tester en environnement sĂ»r d'abord - Ne jamais trader avec argent rĂ©el sans validation complĂšte --- **Version** : 0.1.0-alpha **DerniĂšre mise Ă  jour** : 2024-01-15