highcharts 9.3.0 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +5 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +130 -84
- package/es-modules/Accessibility/Components/MenuComponent.js +195 -120
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +166 -81
- package/es-modules/Accessibility/KeyboardNavigation.js +2 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +0 -4
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +23 -10
- package/es-modules/Extensions/Annotations/Popup.js +1 -1
- package/es-modules/Extensions/Boost/BoostOptions.js +2 -2
- package/es-modules/Extensions/Exporting/Exporting.js +2 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/Polar.js +1 -1
- package/es-modules/Maps/MapView.js +5 -5
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -2
- package/es-modules/Maps/Projection.js +3 -0
- package/es-modules/Maps/Projections/EqualEarth.js +7 -7
- package/es-modules/Maps/Projections/LambertConformalConic.js +52 -0
- package/es-modules/Maps/Projections/Miller.js +5 -6
- package/es-modules/Maps/Projections/Orthographic.js +4 -4
- package/es-modules/Maps/Projections/ProjectionRegistry.js +2 -0
- package/es-modules/Maps/Projections/WebMercator.js +2 -3
- package/es-modules/Series/Map/MapSeries.js +3 -0
- package/es-modules/Series/MapLine/MapLineSeries.js +2 -0
- package/es-modules/Series/MapPoint/MapPointSeries.js +13 -11
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +23 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -4
- package/es-modules/Stock/StockToolsGui.js +5 -5
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +3 -3
- package/highcharts-gantt.src.js +3 -3
- package/highcharts-more.js +2 -2
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +2 -2
- package/highcharts.d.ts +126 -9
- package/highcharts.js +3 -3
- package/highcharts.src.d.ts +126 -9
- package/highcharts.src.js +3 -3
- package/highmaps.js +655 -653
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +131 -43
- package/highstock.js +61 -61
- package/highstock.js.map +1 -1
- package/highstock.src.js +3 -7
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +72 -72
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +29 -24
- package/indicators/indicators.js +10 -10
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +26 -20
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.js +1 -1
- package/indicators/klinger.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +4 -5
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +225 -222
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +1306 -1085
- package/modules/annotations-advanced.js +153 -152
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +26 -12
- package/modules/annotations.js +81 -80
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +26 -12
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +1 -1
- package/modules/boost.src.js +1 -1
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +1 -1
- package/modules/coloraxis.src.js +1 -1
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.js +1 -1
- package/modules/datagrouping.src.js +1 -1
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.src.js +1 -1
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +1 -1
- package/modules/export-data.src.js +1 -1
- package/modules/exporting.js +35 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +3 -3
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +1 -1
- package/modules/gantt.src.js +1 -1
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +1 -1
- package/modules/heatmap.src.js +1 -1
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +2 -2
- package/modules/map.js +143 -141
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -2
- package/modules/map.src.js +129 -41
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.src.js +1 -1
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +2 -2
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.src.js +1 -1
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +1 -1
- package/modules/sankey.src.js +1 -1
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +86 -84
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +30 -16
- package/modules/stock.js +90 -90
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +1 -5
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +1 -1
- package/modules/sunburst.src.js +1 -1
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +1 -1
- package/modules/timeline.src.js +1 -1
- package/modules/treegrid.js +1 -1
- package/modules/treegrid.src.js +1 -1
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +1 -1
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +1 -1
- package/modules/venn.src.js +1 -1
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +1 -1
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highstock JS v9.3.
|
|
2
|
+
Highstock JS v9.3.1 (2021-11-05)
|
|
3
3
|
|
|
4
4
|
All technical indicators for Highcharts Stock
|
|
5
5
|
|
|
@@ -11,46 +11,46 @@
|
|
|
11
11
|
f["Core/Utilities.js"]],function(f,d){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b,a)};return function(b,a){function m(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
|
|
12
12
|
(m.prototype=a.prototype,new m)}}(),k=d.seriesTypes.line,p=g.addEvent,r=g.error,h=g.extend,e=g.isArray,a=g.merge,b=g.pick,c=g.splat;g=function(m){function w(){var c=null!==m&&m.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}l(w,m);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});m.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||
|
|
13
13
|
[]).forEach(function(c,m){a.push(this.options.params[c]+b(this.nameSuffixes[m],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,m=c.xData;c=c.yData;var w=c.length,y=0,A=0,h=[],d=[],g=[],f=-1;if(!(m.length<a)){for(e(c[0])&&(f=b.index?b.index:0);y<a-1;)A+=0>f?c[y]:c[y][f],y++;for(b=y;b<w;b++){A+=0>f?c[b]:c[b][f];var r=[m[b],A/a];h.push(r);d.push(r[0]);g.push(r[1]);A-=0>f?c[b-y]:c[b-y][f]}return{values:h,
|
|
14
|
-
xData:d,yData:g}}};w.prototype.init=function(c,b){var a=this;m.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||a.dataEventsToUnbind.push(p(a.
|
|
15
|
-
" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,m=this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]},e=[],w=!0;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var h=this.xAxis.min;var d=
|
|
16
|
-
b=m.xData.indexOf(this.xData[0]);h=m.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&h===m.xData.length-2&&e[0][0]===a[0].x&&e.shift();this.updateData(e)}else m.xData.length!==b-1&&m.xData.length!==b+1&&(w=!1,this.updateData(m.values));w&&(this.xData=m.xData,this.yData=m.yData,this.options.data=m.values)
|
|
17
|
-
m.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(k);h(g.prototype,{
|
|
18
|
-
g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=
|
|
19
|
-
k=d.correctFloat,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.accumulatePeriodPoints=function(a,b,c){for(var m=0,e=0,A;e<a;)A=0>b?c[e]:c[e][b],m+=A,e++;return m};e.prototype.calculateEma=function(a,b,c,m,e,A,y){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];m="undefined"===typeof e?y:k(b*
|
|
20
|
-
0,A=2/(c+1),y=[],h=[],d=[],q=-1;if(!(e<c)){p(a[0])&&(q=b.index?b.index:0);b=this.accumulatePeriodPoints(c,q,a);for(b/=c;c<e+1;c++){var n=this.calculateEma(m,a,c,A,n,q,b);y.push(n);h.push(n[0]);d.push(n[1]);n=n[1]}return{values:y,xData:h,yData:d}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3,period:9}});return e}(l);f.registerSeriesType("ema",d);"";return d});v(f,"Stock/Indicators/AD/ADIndicator.js",
|
|
21
|
-
function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.extend,r=d.merge;d=function(h){function e(){var a=
|
|
22
|
-
return a}g(e,h);e.populateAverage=function(a,b,c,m,e){e=b[m][1];var w=b[m][2];b=b[m][3];c=c[m];return[a[m],b===e&&b===w||e===w?0:(2*b-w-e)/(e-w)*c]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,w=a.yData,A=b.volumeSeriesID,y=a.chart.get(A);b=y&&y.yData;var h=w?w.length:0,d=[],q=[],n=[];if(!(m.length<=c&&h&&4!==w[0].length)){if(y){for(A=c;A<h;A++)a=d.length,y=e.populateAverage(m,w,b,A,c),0<a&&(y[1]+=
|
|
23
|
-
A+" not found! Check `volumeSeriesID`.",!0,a.chart)}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return e}(l);p(d.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",d);"";return d});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
|
|
24
|
-
Array&&function(c,
|
|
25
|
-
function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var e=a[0];if(!this.userOptions.color&&e)for(e.color=b,e=1;e<a.length;e++)a[e].color=a[e].y>a[e-1].y?b:a[e].y<a[e-1].y?c:a[e-1].color};c.prototype.getValues=function(c){var b=c.xData||[];c=c.yData||[];var m=c.length,y=[],h=[],d=[],q=0,n=0,B;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var t=(c[B][1]+
|
|
26
|
-
5;var u=n/34;t=e(t-u);y.push([b[B],t]);h.push(b[B]);d.push(t);t=B+1-5;u=B+1-34;q=e(q-(c[t][1]+c[t][2])/2);n=e(n-(c[u][1]+c[u][2])/2)}return{values:y,xData:h,yData:d}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);r(g.prototype,
|
|
27
|
-
translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});d.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=f.seriesTypes.sma,l=d.defined,k=d.error,p=d.merge,r;(function(h){function e(){var c=this,a=c.linesApiNames,b=c.points,m=c.options,e=c.graph,
|
|
28
|
-
[];d--;)f=b[d],h[a].push({x:f.x,plotX:f.plotX,plotY:f[c],isNull:!l(f[c])});d=b.length});a.forEach(function(a,b){h[b]?(c.points=h[b],m[a]?c.options=p(m[a].styles,w):k('Error: "There is no '+a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),c.graph=c["graph"+a],g.prototype.drawGraph.call(c),c["graph"+
|
|
29
|
-
c.points=b;c.options=m;c.graph=e;g.prototype.drawGraph.call(c)}function a(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){b!==c&&a.push("plot"+b.charAt(0).toUpperCase()+b.slice(1))});return a}function b(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){a.push(c[b])});return a}function c(){var c=this,a=c.pointArrayMap,b=[],m;b=c.getTranslatedLinesNames();
|
|
30
|
-
null!==m&&(e[b[w]]=c.yAxis.toPixels(m,!0))})})}var m=[],w=["bottomLine"],A=["top","bottom"];h.compose=function(h){if(-1===m.indexOf(h)){m.push(h);var d=h.prototype;d.linesApiNames=d.linesApiNames||w.slice();d.pointArrayMap=d.pointArrayMap||A.slice();d.pointValKey=d.pointValKey||"top";d.drawGraph=e;d.toYData=b;d.translate=c;d.getTranslatedLinesNames=a}return h}})(r||
|
|
31
|
-
f["Core/Utilities.js"]],function(f,d,g){function l(a,b){var c=a[0],m=0,e;for(e=1;e<a.length;e++)if("max"===b&&a[e]>=c||"min"===b&&a[e]<=c)c=a[e],m=e;return m}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&
|
|
32
|
-
new m)}}(),p=d.seriesTypes.sma,r=g.extend,h=g.merge,e=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(c,a){a=a.period;var b=c.xData,m=(c=c.yData)?c.length:0,h=[],d=[],f=[],q;for(q=a-1;q<m;q++){var n=c.slice(q-a+1,q+2);var B=
|
|
33
|
-
1]),f.push([n,B]))}return{values:h,xData:d,yData:f}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},
|
|
34
|
-
f.compose(g);d.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||
|
|
35
|
-
a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.aroon,p=g.extend,r=g.merge,h=d.seriesTypes.aroon;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,
|
|
36
|
-
xData:e,yData:d}};a.defaultOptions=r(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);d.registerSeriesType("aroonoscillator",
|
|
37
|
-
typeof e?0:Math.abs(h[1]-e[3]),"undefined"===typeof e?0:Math.abs(h[2]-e[3]))}var l=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(e,a)};return function(e,
|
|
38
|
-
null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=1,h=0,d=0,z=[],f=[],q=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=m;n++)if(B.push([c[n],
|
|
39
|
-
g(a[n-1],a[n-2]),e++;return{values:z,xData:f,yData:q}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);f.registerSeriesType("atr",d);"";return d});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
40
|
-
(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
|
|
41
|
-
this.options)};a.prototype.getValues=function(a,c){var b=c.period,e=c.standardDeviation,h=a.xData,y=(a=a.yData)?a.length:0,z=[],f=[],q=[],n;if(!(h.length<b)){var B=r(a[0]);for(n=b;n<=y;n++){var t=h.slice(n-b,n);var u=a.slice(n-b,n);var g=d.seriesTypes.sma.prototype.getValues.call(this,
|
|
42
|
-
xData:f,yData:q}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
|
|
43
|
-
pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);d.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h){return h.reduce(function(e,a){return e+a},0)}var l=this&&this.__extends||function(){var h=
|
|
44
|
-
(a[b]=c[b])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=
|
|
45
|
-
b;){var q=a[h-1];e.push((q[1]+q[2]+q[3])/3);h++}for(h=b;h<=m;h++){q=a[h-1];q=(q[1]+q[2]+q[3])/3;var n=e.push(q);var B=e.slice(n-b);n=g(B)/b;var t,u=B.length,r=0;for(t=0;t<u;t++)r+=Math.abs(n-B[t]);B=r/b;q=(q-n)/(.015*B);d.push([c[h-1],q]);z.push(c[h-1]);f.push(q)}return{values:d,xData:z,yData:f}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);
|
|
46
|
-
function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,
|
|
47
|
-
h.points=void 0;h.volumeSeries=void 0;h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,d);f.prototype.isValid=function(){var h=this.chart,e=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(e.params.volumeSeriesID));var b=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=
|
|
48
|
-
h.yData,this.volumeSeries.yData,e.period)};f.prototype.getMoneyFlow=function(h,e,a,b){function c(a,c){var b=a[1],m=a[2];a=a[3];return null!==c&&null!==b&&null!==m&&null!==a&&b!==m?(a-m-(b-a))/(b-m)*c:(B=n,null)}var m=e.length,w=[],d=0,y=0,z=[],f=[],q=[],n,B=-1;if(0<b&&b<=m){for(n=0;n<b;n++)w[n]=c(e[n],a[n]),d+=a[n],y+=w[n];z.push(h[n-1]);f.push(n-B>=
|
|
49
|
-
q.push([t[0],t[1]])}}return{values:q,xData:z,yData:f}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(l);f.registerSeriesType("cmf",d);"";return d});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
50
|
-
c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.isArray,e=g.merge;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||
|
|
51
|
-
w,0):0:e?0:Math.max(a-m,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,e){return p(a-a/e+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=
|
|
52
|
-
1;t<m;t++)if(t<=b){var u=this.calculateDM(a,t,!0);var g=this.calculateDM(a,t);var l=this.getTR(a[t],a[t-1]);q+=u;n+=g;B+=l;t===b&&(l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]))}else u=this.calculateDM(a,t,!0),g=this.calculateDM(a,t),l=this.getTR(a[t],a[t-1]),q=this.smoothValues(q,
|
|
53
|
-
u,l,g]),d.push(c[t]),f.push([u,l,g]);return{values:e,xData:d,yData:f}}};b.defaultOptions=e(k.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},
|
|
14
|
+
xData:d,yData:g}}};w.prototype.init=function(c,b){var a=this;m.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var m=p(a.chart,
|
|
15
|
+
a.calculateOn.chart,function(){a.recalculateValues();m()})}else return r("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,m=this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]},e=[],w=!0;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var h=this.xAxis.min;var d=
|
|
16
|
+
this.xAxis.max}b=this.cropData(m.xData,m.yData,h,d);for(h=0;h<b.xData.length;h++)e.push([b.xData[h]].concat(c(b.yData[h])));b=m.xData.indexOf(this.xData[0]);h=m.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&h===m.xData.length-2&&e[0][0]===a[0].x&&e.shift();this.updateData(e)}else m.xData.length!==b-1&&m.xData.length!==b+1&&(w=!1,this.updateData(m.values));w&&(this.xData=m.xData,this.yData=m.yData,this.options.data=m.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,
|
|
17
|
+
this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;m.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(k);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,
|
|
18
|
+
nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});d.registerSeriesType("sma",g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=
|
|
19
|
+
e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.accumulatePeriodPoints=function(a,b,c){for(var m=0,e=0,A;e<a;)A=0>b?c[e]:c[e][b],m+=A,e++;return m};e.prototype.calculateEma=function(a,b,c,m,e,A,y){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];m="undefined"===typeof e?y:k(b*
|
|
20
|
+
m+e*(1-m));return[a,m]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,e=(a=a.yData)?a.length:0,A=2/(c+1),y=[],h=[],d=[],q=-1;if(!(e<c)){p(a[0])&&(q=b.index?b.index:0);b=this.accumulatePeriodPoints(c,q,a);for(b/=c;c<e+1;c++){var n=this.calculateEma(m,a,c,A,n,q,b);y.push(n);h.push(n[0]);d.push(n[1]);n=n[1]}return{values:y,xData:h,yData:d}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3,period:9}});return e}(l);f.registerSeriesType("ema",d);"";return d});v(f,"Stock/Indicators/AD/ADIndicator.js",
|
|
21
|
+
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.extend,r=d.merge;d=function(h){function e(){var a=
|
|
22
|
+
null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.populateAverage=function(a,b,c,m,e){e=b[m][1];var w=b[m][2];b=b[m][3];c=c[m];return[a[m],b===e&&b===w||e===w?0:(2*b-w-e)/(e-w)*c]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,w=a.yData,A=b.volumeSeriesID,y=a.chart.get(A);b=y&&y.yData;var h=w?w.length:0,d=[],q=[],n=[];if(!(m.length<=c&&h&&4!==w[0].length)){if(y){for(A=c;A<h;A++)a=d.length,y=e.populateAverage(m,w,b,A,c),0<a&&(y[1]+=
|
|
23
|
+
d[a-1][1]),d.push(y),q.push(y[0]),n.push(y[1]);return{values:d,xData:q,yData:n}}k("Series "+A+" not found! Check `volumeSeriesID`.",!0,a.chart)}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return e}(l);p(d.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",d);"";return d});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
|
|
24
|
+
this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return b(c,a)};return function(c,a){function m(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(m.prototype=a.prototype,new m)}}();f=f.noop;var k=d.seriesTypes,p=k.sma;k=k.column;var r=g.extend,h=g.merge,e=g.correctFloat,a=g.isArray;g=function(b){function c(){var c=null!==b&&b.apply(this,
|
|
25
|
+
arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}l(c,b);c.prototype.drawGraph=function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var e=a[0];if(!this.userOptions.color&&e)for(e.color=b,e=1;e<a.length;e++)a[e].color=a[e].y>a[e-1].y?b:a[e].y<a[e-1].y?c:a[e-1].color};c.prototype.getValues=function(c){var b=c.xData||[];c=c.yData||[];var m=c.length,y=[],h=[],d=[],q=0,n=0,B;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var t=(c[B][1]+
|
|
26
|
+
c[B][2])/2;29<=B&&(q=e(q+t));n=e(n+t)}for(B=33;B<m;B++){t=(c[B][1]+c[B][2])/2;q=e(q+t);n=e(n+t);t=q/5;var u=n/34;t=e(t-u);y.push([b[B],t]);h.push(b[B]);d.push(t);t=B+1-5;u=B+1-34;q=e(q-(c[t][1]+c[t][2])/2);n=e(n-(c[u][1]+c[u][2])/2)}return{values:y,xData:h,yData:d}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);r(g.prototype,
|
|
27
|
+
{nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});d.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=f.seriesTypes.sma,l=d.defined,k=d.error,p=d.merge,r;(function(h){function e(){var c=this,a=c.linesApiNames,b=c.points,m=c.options,e=c.graph,
|
|
28
|
+
w={options:{gapSize:m.gapSize}},h=[],A=c.getTranslatedLinesNames(c.pointValKey),d=b.length,f;A.forEach(function(c,a){for(h[a]=[];d--;)f=b[d],h[a].push({x:f.x,plotX:f.plotX,plotY:f[c],isNull:!l(f[c])});d=b.length});a.forEach(function(a,b){h[b]?(c.points=h[b],m[a]?c.options=p(m[a].styles,w):k('Error: "There is no '+a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),c.graph=c["graph"+a],g.prototype.drawGraph.call(c),c["graph"+
|
|
29
|
+
a]=c.graph):k('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});c.points=b;c.options=m;c.graph=e;g.prototype.drawGraph.call(c)}function a(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){b!==c&&a.push("plot"+b.charAt(0).toUpperCase()+b.slice(1))});return a}function b(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){a.push(c[b])});return a}function c(){var c=this,a=c.pointArrayMap,b=[],m;b=c.getTranslatedLinesNames();
|
|
30
|
+
g.prototype.translate.apply(c,arguments);c.points.forEach(function(e){a.forEach(function(a,w){m=e[a];c.dataModify&&(m=c.dataModify.modifyValue(m));null!==m&&(e[b[w]]=c.yAxis.toPixels(m,!0))})})}var m=[],w=["bottomLine"],A=["top","bottom"];h.compose=function(h){if(-1===m.indexOf(h)){m.push(h);var d=h.prototype;d.linesApiNames=d.linesApiNames||w.slice();d.pointArrayMap=d.pointArrayMap||A.slice();d.pointValKey=d.pointValKey||"top";d.drawGraph=e;d.toYData=b;d.translate=c;d.getTranslatedLinesNames=a}return h}})(r||
|
|
31
|
+
(r={}));return r});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){function l(a,b){var c=a[0],m=0,e;for(e=1;e<a.length;e++)if("max"===b&&a[e]>=c||"min"===b&&a[e]<=c)c=a[e],m=e;return m}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&
|
|
32
|
+
(c[b]=a[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),p=d.seriesTypes.sma,r=g.extend,h=g.merge,e=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(c,a){a=a.period;var b=c.xData,m=(c=c.yData)?c.length:0,h=[],d=[],f=[],q;for(q=a-1;q<m;q++){var n=c.slice(q-a+1,q+2);var B=
|
|
33
|
+
l(n.map(function(c){return e(c[2],c)}),"min");n=l(n.map(function(c){return e(c[1],c)}),"max");n=n/a*100;B=B/a*100;b[q+1]&&(h.push([b[q+1],n,B]),d.push(b[q+1]),f.push([n,B]))}return{values:h,xData:d,yData:f}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},
|
|
34
|
+
dataGrouping:{approximation:"averages"}});return b}(p);r(g.prototype,{linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);d.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||
|
|
35
|
+
{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.aroon,p=g.extend,r=g.merge,h=d.seriesTypes.aroon;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,
|
|
36
|
+
c){var b=[],e=[],d=[];a=h.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var y=a.yData[c][0];var z=a.yData[c][1];y-=z;b.push([a.xData[c],y]);e.push(a.xData[c]);d.push(y)}return{values:b,xData:e,yData:d}};a.defaultOptions=r(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);d.registerSeriesType("aroonoscillator",
|
|
37
|
+
g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h,e){return Math.max(h[1]-h[2],"undefined"===typeof e?0:Math.abs(h[1]-e[3]),"undefined"===typeof e?0:Math.abs(h[2]-e[3]))}var l=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(e,a)};return function(e,
|
|
38
|
+
a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=1,h=0,d=0,z=[],f=[],q=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=m;n++)if(B.push([c[n],
|
|
39
|
+
a[n]]),b<e){var t=b;var u=c[n-1],r=g(a[n-1],a[n-2]);t=[u,(h*(t-1)+r)/t];h=t[1];z.push(t);f.push(t[0]);q.push(t[1])}else b===e?(h=d/(n-1),z.push([c[n-1],h]),f.push(c[n-1]),q.push(h)):d+=g(a[n-1],a[n-2]),e++;return{values:z,xData:f,yData:q}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);f.registerSeriesType("atr",d);"";return d});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
40
|
+
function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
|
|
41
|
+
void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,c){var b=c.period,e=c.standardDeviation,h=a.xData,y=(a=a.yData)?a.length:0,z=[],f=[],q=[],n;if(!(h.length<b)){var B=r(a[0]);for(n=b;n<=y;n++){var t=h.slice(n-b,n);var u=a.slice(n-b,n);var g=d.seriesTypes.sma.prototype.getValues.call(this,
|
|
42
|
+
{xData:t,yData:u},c);t=g.xData[0];g=g.yData[0];for(var l=0,k=u.length,p=0;p<k;p++){var x=(B?u[p][c.index]:u[p])-g;l+=x*x}x=Math.sqrt(l/(k-1));u=g+e*x;x=g-e*x;z.push([t,u,g,x]);f.push(t);q.push([u,g,x])}return{values:z,xData:f,yData:q}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
|
|
43
|
+
marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);d.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h){return h.reduce(function(e,a){return e+a},0)}var l=this&&this.__extends||function(){var h=
|
|
44
|
+
function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=
|
|
45
|
+
function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],h=1,d=[],z=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;h<b;){var q=a[h-1];e.push((q[1]+q[2]+q[3])/3);h++}for(h=b;h<=m;h++){q=a[h-1];q=(q[1]+q[2]+q[3])/3;var n=e.push(q);var B=e.slice(n-b);n=g(B)/b;var t,u=B.length,r=0;for(t=0;t<u;t++)r+=Math.abs(n-B[t]);B=r/b;q=(q-n)/(.015*B);d.push([c[h-1],q]);z.push(c[h-1]);f.push(q)}return{values:d,xData:z,yData:f}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);
|
|
46
|
+
f.registerSeriesType("cci",d);"";return d});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,
|
|
47
|
+
new e)}}(),l=f.seriesTypes.sma,k=d.merge;d=function(d){function f(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;h.volumeSeries=void 0;h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,d);f.prototype.isValid=function(){var h=this.chart,e=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(e.params.volumeSeriesID));var b=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=
|
|
48
|
+
e.params.period&&h.xData&&h.xData.length>=e.params.period&&b)};f.prototype.getValues=function(h,e){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,e.period)};f.prototype.getMoneyFlow=function(h,e,a,b){function c(a,c){var b=a[1],m=a[2];a=a[3];return null!==c&&null!==b&&null!==m&&null!==a&&b!==m?(a-m-(b-a))/(b-m)*c:(B=n,null)}var m=e.length,w=[],d=0,y=0,z=[],f=[],q=[],n,B=-1;if(0<b&&b<=m){for(n=0;n<b;n++)w[n]=c(e[n],a[n]),d+=a[n],y+=w[n];z.push(h[n-1]);f.push(n-B>=
|
|
49
|
+
b&&0!==d?y/d:null);for(q.push([z[0],f[0]]);n<m;n++){w[n]=c(e[n],a[n]);d-=a[n-b];d+=a[n];y-=w[n-b];y+=w[n];var t=[h[n],n-B>=b?y/d:null];z.push(t[0]);f.push(t[1]);q.push([t[0],t[1]])}}return{values:q,xData:z,yData:f}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(l);f.registerSeriesType("cmf",d);"";return d});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
50
|
+
function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.isArray,e=g.merge;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||
|
|
51
|
+
this;c.options=void 0;return c}l(b,a);b.prototype.calculateDM=function(a,b,e){var c=a[b][1],m=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-m?e?Math.max(c-w,0):0:e?0:Math.max(a-m,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,e){return p(a-a/e+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=
|
|
52
|
+
function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],d=[],f=[];if(!(c.length<=b)&&h(a[0])&&4===a[0].length){var q=0,n=0,B=0,t;for(t=1;t<m;t++)if(t<=b){var u=this.calculateDM(a,t,!0);var g=this.calculateDM(a,t);var l=this.getTR(a[t],a[t-1]);q+=u;n+=g;B+=l;t===b&&(l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]))}else u=this.calculateDM(a,t,!0),g=this.calculateDM(a,t),l=this.getTR(a[t],a[t-1]),q=this.smoothValues(q,
|
|
53
|
+
u,b),n=this.smoothValues(n,g,b),B=this.smoothValues(B,l,b),l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]);return{values:e,xData:d,yData:f}}};b.defaultOptions=e(k.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},
|
|
54
54
|
plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,{nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);d.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
|
|
55
55
|
d){function g(a,b,c,m,w){b=e(b[c][m],b[c]);return w?h(a-b):h(a+b)}var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=f.seriesTypes.sma,p=d.extend,r=d.merge,h=d.correctFloat,e=d.pick;d=function(a){function b(){var c=
|
|
56
56
|
null!==a&&a.apply(this,arguments)||this;c.options=void 0;c.data=void 0;c.points=void 0;return c}l(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var m=c+Math.floor(c/2+1),h=a.xData||[];a=a.yData||[];var d=a.length,f=[],q=[],n=[],B=0,t,u;if(!(h.length<=m)){for(t=0;t<c-1;t++)B=g(B,a,t,b);for(u=0;u<=d-m;u++){var l=u+c-1;t=u+m-1;B=g(B,a,l,b);l=e(a[t][b],a[t]);l-=B/c;B=g(B,a,u,b,!0);f.push([h[t],l]);q.push(h[t]);n.push(l)}return{values:f,xData:q,yData:n}}};b.defaultOptions=r(k.defaultOptions,
|
|
@@ -171,36 +171,36 @@ c(d);q=k?k.max:b(d);k=this.zoneStarts=[];n=[];var r=0;l=1;var t=this.linkedParen
|
|
|
171
171
|
n,h,e,d)};f.prototype.volumePerZone=function(a,b,c,e,d){var f=this,m=c.processedXData,h=c.processedYData,g=b.length-1,k=d.length;c=h.length;var n,l,t,r,p;q(k-c)&&(e[0]!==m[0]&&h.unshift(0),e[k-1]!==m[c-1]&&h.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(p=b.negativeVolumeData=0;p<k;p++){t=l=!1;r=a?d[p][3]:d[p];n=p?a?d[p-1][3]:d[p-1]:r;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(r=c.dataModify.modifyValue(r),n=c.dataModify.modifyValue(n));
|
|
172
172
|
r<=b.start&&0===b.index&&(l=!0);r>=b.end&&b.index===g&&(t=!0);(r>b.start||l)&&(r<b.end||t)&&(b.wholeVolumeData+=h[p],n>r?b.negativeVolumeData+=h[p]:b.positiveVolumeData+=h[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,e){var d=a.renderer,f=this.zoneLinesSVG,m=[],h=a.plotWidth,g=a.plotTop,k;c.forEach(function(c){k=b.toPixels(c)-g;m=m.concat(a.renderer.crispLine([["M",0,k],["L",h,k]],e.lineWidth))});f?f.animate({d:m}):f=this.zoneLinesSVG=d.path(m).attr({"stroke-width":e.lineWidth,
|
|
173
173
|
stroke:e.color,dashstyle:e.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(e.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1E3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0,
|
|
174
|
-
enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(e);y(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
c[h]
|
|
178
|
-
|
|
179
|
-
void 0;a.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
e
|
|
192
|
-
d);"";return d});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=
|
|
193
|
-
e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",d);"";return d});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",
|
|
174
|
+
enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(e);y(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:d,drawGraph:d,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});l.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
175
|
+
function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
|
|
176
|
+
void 0;a.points=void 0;a.options=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.chart,e=a.xData;a=a.yData;var d=b.period,f=!0,h;if(h=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,e,a,h,d);k("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};e.prototype.calculateVWAPValues=function(a,b,c,e,d){var f=e.yData,m=e.xData.length,h=b.length;e=[];var g=[],k=[],n=[],l=[],r;m=h<=m?h:m;for(r=h=0;h<m;h++){var p=a?(c[h][1]+c[h][2]+c[h][3])/3:
|
|
177
|
+
c[h];p*=f[h];p=r?e[h-1]+p:p;var w=r?g[h-1]+f[h]:f[h];e.push(p);g.push(w);l.push([b[h],p/w]);k.push(l[h][0]);n.push(l[h][1]);r++;r===d&&(r=0)}return{values:l,xData:k,yData:n}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return e}(l);f.registerSeriesType("vwap",d);"";return d});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
|
|
178
|
+
this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=
|
|
179
|
+
void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,c){c=c.period;var b=a.xData,e=(a=a.yData)?a.length:0,d=[],h=[],g=[],k;if(!(b.length<c)&&r(a[0])&&4===a[0].length){for(k=c-1;k<e;k++){var l=a.slice(k-c+1,k+1);var n=f.getArrayExtremes(l,2,1);l=n[0];n=n[1];var p=a[k][3];l=(n-p)/(n-l)*-100;b[k]&&(d.push([b[k],l]),h.push(b[k]),g.push(l))}return{values:d,xData:h,yData:g}}};a.defaultOptions=h(k.defaultOptions,{params:{index:void 0,period:14}});return a}(k);p(g.prototype,{nameBase:"Williams %R"});
|
|
180
|
+
d.registerSeriesType("williamsr",g);"";return g});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(e,a){a*=(a+1)/2;return e.reduce(function(a,c,e){return[null,a[1]+c[1]*(e+1)]})[1]/a}function l(e,a,b,c){b=g(e,e.length);a=a[c-1];e.shift();return[a,b]}var k=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
|
|
181
|
+
(a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.isArray,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.getValues=function(a,c){var b=c.period,e=a.xData,d=(a=a.yData)?a.length:0,f=1,h=e[0],g=a[0],k=[],n=[],p=[],t=-1;if(!(e.length<b)){r(a[0])&&(t=c.index,
|
|
182
|
+
g=a[0][t]);for(c=[[h,g]];f!==b;)c.push([e[f],0>t?a[f]:a[f][t]]),f++;for(b=f;b<d;b++)f=l(c,e,a,b),k.push(f),n.push(f[0]),p.push(f[1]),c.push([e[b],0>t?a[b]:a[b][t]]);f=l(c,e,a,b);k.push(f);n.push(f[0]);p.push(f[1]);return{values:k,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",d);"";return d});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
|
|
183
|
+
this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=
|
|
184
|
+
void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.lowIndex,c=a.highIndex,d=a.deviation/100;a=1+d;var f=1-d;d=e.xData;var h=e.yData;e=h?h.length:0;var g=[],k=[],l=[],q,n,p=!1,r=!1;if(!(!d||1>=d.length||e&&("undefined"===typeof h[0][b]||"undefined"===typeof h[0][c]))){var u=h[0][b];var v=h[0][c];for(q=1;q<e;q++){if(h[q][b]<=v*f){g.push([d[0],v]);var x=[d[q],h[q][b]];p=n=!0}else h[q][c]>=u*a&&(g.push([d[0],u]),x=[d[q],h[q][c]],n=!1,p=!0);if(p){k.push(g[0][0]);l.push(g[0][1]);var L=q++;
|
|
185
|
+
q=e}}for(q=L;q<e;q++)n?(h[q][b]<=x[1]&&(x=[d[q],h[q][b]]),h[q][c]>=x[1]*a&&(r=c)):(h[q][c]>=x[1]&&(x=[d[q],h[q][c]]),h[q][b]<=x[1]*f&&(r=b)),!1!==r&&(g.push(x),k.push(x[0]),l.push(x[1]),x=[d[q],h[q][r]],n=!n,r=!1);b=g.length;0!==b&&g[b-1][0]<d[e-1]&&(g.push(x),k.push(x[0]),l.push(x[1]));return{values:g,xData:k,yData:l}}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(l);d(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
|
|
186
|
+
nameBase:"Zig Zag"});f.registerSeriesType("zigzag",p);"";return p});v(f,"Stock/Indicators/LinearRegression/LinearRegression.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===
|
|
187
|
+
a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.isArray,p=d.extend,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getRegressionLineParameters=function(a,b){var c=this.options.params.index,e=function(a,b){return k(a)?a[b]:a},d=a.reduce(function(a,b){return b+a},0),f=b.reduce(function(a,b){return e(b,c)+a},0);d/=a.length;f/=b.length;var h=0,g=0,l;for(l=0;l<a.length;l++){var p=
|
|
188
|
+
a[l]-d;var n=e(b[l],c)-f;h+=p*n;g+=Math.pow(p,2)}a=g?h/g:0;return{slope:a,intercept:f-a*d}};e.prototype.getEndPointY=function(a,b){return a.slope*b+a.intercept};e.prototype.transformXData=function(a,b){var c=a[0];return a.map(function(a){return(a-c)/b})};e.prototype.findClosestDistance=function(a){var b,c;for(c=1;c<a.length-1;c++){var e=a[c]-a[c-1];0<e&&("undefined"===typeof b||e<b)&&(b=e)}return b};e.prototype.getValues=function(a,b){var c=a.xData;a=a.yData;b=b.period;var e,d={xData:[],yData:[],
|
|
189
|
+
values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(c);for(e=b-1;e<=c.length-1;e++){var h=e-b+1;var g=e+1;var k=c[e];var l=c.slice(h,g);h=a.slice(h,g);g=this.transformXData(l,f);l=this.getRegressionLineParameters(g,h);h=this.getEndPointY(l,g[g.length-1]);d.values.push({regressionLineParameters:l,x:k,y:h});d.xData.push(k);d.yData.push(h)}return d};e.defaultOptions=r(l.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return e}(l);p(d.prototype,{nameBase:"Linear Regression Indicator"});
|
|
190
|
+
f.registerSeriesType("linearRegression",d);"";return d});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===
|
|
191
|
+
e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(e){return e.slope};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",d);"";return d});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
|
|
194
192
|
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=
|
|
195
|
-
null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
193
|
+
null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",d);"";return d});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
|
|
194
|
+
function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;
|
|
195
|
+
return e}g(f,d);f.prototype.slopeToAngle=function(d){return 180/Math.PI*Math.atan(d)};f.prototype.getEndPointY=function(d){return this.slopeToAngle(d.slope)};f.defaultOptions=p(l.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(l);k(d.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",d);"";return d});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
|
|
196
|
+
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.merge;g=function(d){function a(){var a=
|
|
197
|
+
null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],k=[],l=[],n=[],r=[],t;if(!(g<b)){for(t=0;t<=g;t++){if(t<g){var u=a[t][2];var v=a[t][1];var x=e;u=p(v-u)/(p(v+u)/2)*1E3*x;h.push(a[t][1]*p(1+2*u));k.push(a[t][2]*p(1-2*u))}if(t>=b){u=f.slice(t-b,t);var L=a.slice(t-b,t);x=d.prototype.getValues.call(this,{xData:u,yData:h.slice(t-b,t)},
|
|
198
|
+
{period:b});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(t-b,t)},{period:b});L=d.prototype.getValues.call(this,{xData:u,yData:L},{period:b,index:c});u=L.xData[0];x=x.yData[0];v=v.yData[0];L=L.yData[0];l.push([u,x,L,v]);n.push(u);r.push([x,L,v])}}return{values:l,xData:n,yData:r}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);
|
|
199
|
+
r(g.prototype,{linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=
|
|
200
|
+
c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.merge,r=d.isArray;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[];var e=[],f=[],g=0,h=0,k=0,l=0,n=
|
|
201
|
+
c.length,p=b.index;for(b=0;b<n;b++){var t=c[b];var u=r(d[b])?d[b][p]:d[b];g+=t;h+=u;k+=t*u;l+=t*t}d=(n*k-g*h)/(n*l-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(b=0;b<n;b++)t=c[b],u=d*t+g,a[b]=[t,u],e[b]=t,f[b]=u;return{xData:e,yData:f,values:a}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,index:3}});return e}(l);k(d.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",d);"";return d});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[f["Core/Series/SeriesRegistry.js"],
|
|
202
|
+
f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.defined,r=d.extend,h=d.isArray,e=d.merge;d=function(a){function b(){var b=
|
|
203
|
+
null!==a&&a.apply(this,arguments)||this;b.averageIndicator=void 0;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.init=function(){var a=arguments,b=a[1].params;this.averageIndicator=f.seriesTypes[b&&b.average?b.average:void 0]||l;this.averageIndicator.prototype.init.apply(this,a)};b.prototype.calculateDisparityIndex=function(a,b){return k(a-b)/b*100};b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:0,g=[],k=[],l=[],m=this.averageIndicator,
|
|
204
|
+
r=h(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&p(c)&&!(e.length<=b)){for(m=b;m<f;m++){var u=this.calculateDisparityIndex(r?e[m][c]:e[m],a[m-b]);g.push([d[m],u]);k.push(d[m]);l.push(u)}return{values:g,xData:k,yData:l}}};b.defaultOptions=e(l.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return b}(l);r(d.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});f.registerSeriesType("disparityindex",
|
|
205
|
+
d);"";return d});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
|
|
206
206
|
//# sourceMappingURL=indicators-all.js.map
|