diff --git a/index.html b/index.html index 17fb4db..457fb97 100644 --- a/index.html +++ b/index.html @@ -101,7 +101,7 @@ - +
diff --git a/js/ui/chart.js b/js/ui/chart.js index d516fb8..a765f77 100644 --- a/js/ui/chart.js +++ b/js/ui/chart.js @@ -394,7 +394,7 @@ export class TradingDashboard { if (candleDownInput) candleDownInput.value = savedDownColor; // Calculate initial minMove based on saved precision - const initialMinMove = savedPrecision === 0 ? 1 : Number((1 / Math.pow(10, savedPrecision)).toFixed(savedPrecision)); + const initialMinMove = savedPrecision === 0 ? 1 : Number((1 / Math.pow(10, savedPrecision)).toFixed(precision)); this.candleSeries = this.chart.addSeries(LightweightCharts.CandlestickSeries, { upColor: savedUpColor,