open, close, minPrice, maxPrice) {
    const min = Math.min(open, close);
    const max = Math.max(open, close);
    
    const volatilityRange = Math.max(1, (max - min) * 2);
    
    const low = Math.max(
      minPrice,
      min - Math.random() * volatilityRange * 0.5
    );
    
    const high = Math.min(
      maxPrice,
      max + Math.random() * volatilityRange * 0.5
    );
    
    return {
      high: Math.round(high * 100) / 100,
      low: Math.round(low * 100) / 100
    };
  }
  
  function gen