
    const dates = generateDateRange(days, startDate);
    const candlesticks = [];
    let previousClose = startingPrice;
    
    for (const date of dates) {
      const candlestick = generateSingleCandlestick(date, previousClose, minPrice, maxPrice);
      candlesticks.push(candlestick);
      previousClose = candlestick.close;
    }
    
    return candlesticks;
  }
  
  const stockData = generateCandlestickData(30);
  </script>
  </head>

  <body>
    
    <div id="app">
      <div id="chart">
      <a