Fix trade execution with stop loss and take profit orders

- Fixed automation trade route to call 'place_order' instead of 'get_balance'
- Added comprehensive stop loss and take profit order placement
- Implemented 2:1 risk/reward ratio with configurable risk percentage
- Added proper order sequencing: main order → stop loss → take profit
- Enhanced error handling for risk management orders
- Verified live trading with actual position placement

Trade execution now includes:
- Main market order execution
- Automatic stop loss at 1% risk level
- Automatic take profit at 2% reward (2:1 ratio)
- Position confirmation and monitoring
This commit is contained in:
mindesbunister
2025-07-22 17:08:10 +02:00
parent 461230d2bc
commit 9114c50678
3 changed files with 119 additions and 14 deletions

Binary file not shown.