Files
trading_bot_v3/lib
mindesbunister 30eb869ca4 restore: bring back full AI automation with optimal leverage/SL/TP
- AI Leverage Calculator for optimal leverage calculation
- Automatic Stop Loss extraction from AI analysis
- Automatic Take Profit extraction from AI analysis
- Real account balance integration for leverage sizing
- Enhanced Risk Manager integration

- AI calculates optimal leverage based on stop loss distance
- AI extracts precise SL/TP levels from chart analysis
- Real-time account balance fetching for position sizing
- Dynamic leverage from 1x to 10x based on risk assessment
- No manual configuration required - fully autonomous

 Working Features:
- useRealDEX: true for live trading
- AI-calculated leverage (not fixed 1x)
- AI-set stop loss and take profit levels
- Real account integration with Drift balance API
- Comprehensive error handling and fallbacks

Source: Restored from commit 545a1bd where AI automation was fully functional
2025-07-26 20:37:15 +02:00
..