Fix automation v2 timeframe selection and SELL signal execution

- Fixed timeframe selection to use user-selected timeframes instead of hardcoded values
- Added selectedTimeframes property to AutomationConfig interface
- Added maxDailyTrades property to AutomationConfig interface
- Removed Jupiter DEX blocking logic that prevented SELL signals from opening SHORT positions
- Fixed SELL signals to properly execute SHORT positions on Drift Protocol
- Updated automation test route with missing properties (selectedTimeframes, maxDailyTrades, dexProvider)
- Added debug logging to automation v2 page for better troubleshooting
- Added test click button for UI interaction debugging
- Resolved TypeScript compilation errors in automation service
- Ensured automation v2 interface is fully functional and responsive

These changes enable:
- Multi-timeframe analysis with user-selected timeframes
- Proper SHORT position execution on SELL signals
- Improved UI reliability and debugging capabilities
- Full Drift Protocol perpetual futures trading support
This commit is contained in:
mindesbunister
2025-07-23 13:39:33 +02:00
parent b6397ef52b
commit 2bbaa072d6
4 changed files with 28 additions and 47 deletions

View File

@@ -10,10 +10,12 @@ export interface AutomationConfig {
mode: 'SIMULATION' | 'LIVE'
symbol: string
timeframe: string
selectedTimeframes: string[] // Multi-timeframe support
tradingAmount: number
maxLeverage: number
stopLossPercent: number
takeProfitPercent: number
maxDailyTrades: number
riskPercentage: number
dexProvider: 'JUPITER' | 'DRIFT'
}