interface Candle { id: number x: number y: number open: number close: number high: number low: number delay: number duration: number } // Generate static candlesticks once const generateCandles = (): Candle[] => { const newCandles: Candle[] = [] const numCandles = 15 for (let i = 0; i < numCandles; i++) { const open = Math.random() * 60 + 20 const movement = (Math.random() - 0.5) * 40 const close = open + movement const high = Math.max(open, close) + Math.random() * 20 const low = Math.min(open, close) - Math.random() * 20 newCandles.push({ id: i, x: Math.random() * 100, y: Math.random() * 100, open, close, high, low, delay: Math.random() * 5, duration: 8 + Math.random() * 4, }) } return newCandles } const CANDLES = generateCandles() const TradingBackground = () => { return (