MACD and Pivot points
(async () => { // Load the dataset const data = await fetch( 'https://demo-live-data.highcharts.com/aapl-ohlc.json' ).then(response => response.json()); Highcharts.stockChart('container', { rangeSelector: { selected: 2 }, yAxis: [{ height: '75%', resize: { enabled: true }, labels: { align: 'right', x: -3 }, title: { text: 'AAPL' } }, { top: '75%', height: '25%', labels: { align: 'right', x: -3 }, offset: 0, title: { text: 'MACD' } }], title: { text: 'AAPL Stock Price' }, subtitle: { text: 'With MACD and Pivot Points technical indicators' }, series: [{ type: 'ohlc', id: 'aapl', name: 'AAPL Stock Price', data: data, zIndex: 1 }, { type: 'pivotpoints', linkedTo: 'aapl', zIndex: 0, lineWidth: 1, dataLabels: { overflow: 'none', crop: false, y: 4, style: { fontSize: 9 } } }, { type: 'macd', yAxis: 1, linkedTo: 'aapl' }] }); })();
StockFlags and Technical indicators
Install with NPM
The official Highcharts NPM package comes with support for CommonJS and contains Highcharts, and its Stock, Maps and Gantt packages.
npm install highcharts --save
See more installation optionsDownload our library
The zip archive contains Javascript files and examples. Unzip the zip package and open index.html in your browser to see the examples.
DownloadBuy a license
You can download and try out all Highcharts products for free. Once your project/product is ready for launch, purchase a commercial license.
See License Pricing