You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1. Clone/navigate to DAX_V2/Backendcd DAX_V2/Backend
# 2. Create .env file
copy .env.example .env
# 3. Edit .env with your API keys
notepad .env
# 4. Run with Docker Compose
docker-compose up -d
# 5. Check status
docker-compose ps
Option 2: Local Python
# 1. Navigate to backendcd DAX_V2/Backend
# 2. Run start script
start.bat
# Health check
curl http://localhost:8000/health
# Get signal
curl -X POST http://localhost:8000/api/v1/trading/signal \
-H "Content-Type: application/json" \
-d '{"symbol":"EURUSD","bid":1.08500,"ask":1.08510,"spread":10}'
Test MQ5 Connection
Open MetaTrader
Check Experts tab for "Backend connected"
Verify dashboard shows on chart
🐛 Troubleshooting
Backend won't start
Check Python version (3.11+)
Verify all dependencies installed
Check port 8000 not in use
MQ5 can't connect
Verify backend running
Check URL in EA settings
Ensure WebRequest enabled
Check firewall settings
No AI analysis
Verify API keys in .env
Check backend logs
Test with curl
📝 Development
Add New Endpoint
Create router in app/routers/
Add to main.py includes
Implement service logic
Add New Service
Create service in app/services/
Import in routers
Add to dependency injection
⚠️ Disclaimer
This system is for educational purposes. Trading involves substantial risk. Always test on demo account first. Never trade with money you cannot afford to lose.