diff --git a/src/api/dashboard/static/js/ui/chart.js b/src/api/dashboard/static/js/ui/chart.js index ad905e8..ee334ea 100644 --- a/src/api/dashboard/static/js/ui/chart.js +++ b/src/api/dashboard/static/js/ui/chart.js @@ -580,7 +580,7 @@ async loadTA() { document.getElementById('priceChange').className = 'stat-value ' + (change >= 0 ? 'positive' : 'negative'); document.getElementById('dailyHigh').textContent = this.statsData.high_24h.toFixed(2); document.getElementById('dailyLow').textContent = this.statsData.low_24h.toFixed(2); - } +} } switchTimeframe(interval) { @@ -595,7 +595,7 @@ async loadTA() { this.allData.delete(interval); this.loadInitialData(); - this.loadTA(); + // Don't reload TA on timeframe switch - let user refresh manually window.clearSimulationResults?.(); window.updateTimeframeDisplay?.();