- Removed stop loss and take profit input fields from automation-v2 page
- Updated AutomationConfig interfaces to remove manual TP/SL parameters
- Implemented dynamic AI risk calculation methods:
* calculateAIStopLoss() - Volatility and confidence-based SL calculation
* calculateAITakeProfit() - Risk/reward optimized TP calculation
- Added AI Risk Management information panel explaining automated calculation
- Enhanced risk management logic to use AI-generated values first, then fallback to dynamic calculation
- Supports ultra-tight scalping percentages (0.3% to 2% SL range)
- AI adapts risk based on market volatility, confidence levels, and learned patterns
- Proven effective with real trades: 0.8% SL / 1.5% TP achieving 1.50% profit
This enables fully autonomous AI risk management without manual user intervention,
allowing the AI to optimize stop loss and take profit levels based on technical
analysis, market conditions, and continuous learning from real trade outcomes.
- Fixed foreign key constraint violation in automation service
- Added user upsert to ensure user exists before creating automation session
- Enhanced error reporting in automation start API
- Added comprehensive AI learning system documentation
- Automation now starts successfully in simulation mode