- Replace blind time intervals with smart price-proximity rescanning - Only triggers analysis when price approaches stop loss (danger zone) - Detects scalping strategies automatically (1m, 3m, 5m timeframes) - Uses frequent 2-minute intervals for scalping vs 10-minute for swing trades - Adds hasOpenPositions() and triggerPriceBasedAnalysis() methods - Fixed TypeScript compilation errors with config.selectedTimeframes access - Removed non-existent selectedTimeframes from AutomationStatus interface This optimization prevents unnecessary rescans when price hasn't moved near SL/TP levels, focusing computational resources on critical decision moments for DCA, SL adjustment, or exit.
70 KiB
70 KiB