StockChart v4.1
Free JavaScript stock chart by simul8or
https://simul8or.com/Javascript-Stock-Chart.php

FILES
  stockchart.js      the chart
  indicators.js      indicator math (load before stockchart.js)
  patterns.js        candlestick pattern detection (load before stockchart.js)
  emoji-data.js      emoji list for the emoji picker (load before stockchart.js)
  stock-chart.css    chart styles
  simul8or-logo.svg  logo shown in fullscreen and on screenshots; keep it next to stockchart.js
  s8-logo.svg        small mark in the chart's bottom-left corner; keep it next to stockchart.js
  test.html          demo page; open it in a browser

QUICK START
  <link href="stock-chart.css" rel="stylesheet" />
  <div id="chart" style="height:500px"></div>
  <script src="indicators.js"></script>
  <script src="patterns.js"></script>
  <script src="emoji-data.js"></script>
  <script src="stockchart.js"></script>
  <script>
    new StockChart('chart', {
      chartType: 'candlestick',   // or 'line'
      darkMode: true,
      ticker: 'AAPL',
      timeframe: '1min',          // 1min 2min 5min 15min 30min 1hour 4hour 1day 1week 1month
      data: [ { date: '11/07/2026 09:30', t: 1794061800000, open: 10, high: 11, low: 9.5, close: 10.5, volume: 12000 }, ... ]
    });
  </script>

TOOLBAR
  Chart settings sit in a top bar and the drawing tools in a strip down the left side:
  lines, Fibonacci and Gann, patterns, forecasting (long/short positions, anchored VWAP,
  volume profile), brushes and shapes, text and notes, emoji, measure, zoom, magnet.
  Screens 860px wide or less show the bare chart.

INDICATORS
  The Indicators button opens a searchable list of 79 indicators (moving averages, Supertrend,
  Ichimoku, Keltner, RSI, MACD, Stochastic, ADX, Aroon, volume profile and more) with favorites.
  Each one shows in the legend; hover it for hide, settings (inputs, colors, thickness) and remove.
  Turn them on in code with the indicators option or a method:
    new StockChart('chart', { ..., indicators: { volume: true, supertrend: true, rsi: true } });
    chart.setIndicatorEnabled('vrvp', true);          // visible range volume profile
    chart.addMovingAverageInstance('ema', 50, '#f5b14a');
  StockChart.STUDIES lists the keys and settings of the newer indicators.

OPTIONAL
  toolbarLayout: 'overlay'
      The older floating button row over the chart instead of the top bar + left strip.
  tickerLogoUrl: function (symbol) { return 'https://your-cdn.example/logos/' + symbol + '.png'; }
      Shows a logo next to the ticker. Off unless you pass it.
  emojiImages: 'https://your-cdn.example/twemoji/svg/'   or   false
      Emoji are drawn from Twemoji SVGs on the jsDelivr CDN by default. Pass your own
      folder of Twemoji SVGs, or false to use the system emoji font.
  logo: false
      Hides the small s8 mark in the corner.
  padding: { top: 56 }
      Space above the price area for the legend. Default 56.

NO DEPENDENCIES. Works in current Chrome, Edge, Firefox and Safari.

CREDITS
  Emoji graphics: Twemoji by Twitter, Inc. and other contributors, CC-BY 4.0
  https://github.com/jdecked/twemoji
