highcharts 9.2.2 → 9.3.0
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/README.md +13 -6
- package/bower.json +1 -1
- package/css/annotations/popup.css +48 -8
- package/css/annotations/popup.scss +70 -22
- package/css/highcharts.css +45 -0
- package/css/highcharts.scss +40 -0
- package/css/themes/dark-unica.css +45 -0
- package/css/themes/grid-light.css +45 -0
- package/css/themes/sand-signika.css +45 -0
- package/es-modules/Accessibility/A11yI18n.js +273 -224
- package/es-modules/Accessibility/Accessibility.js +233 -128
- package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
- package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
- package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
- package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
- package/es-modules/Accessibility/FocusBorder.js +192 -147
- package/es-modules/Accessibility/HighContrastMode.js +78 -66
- package/es-modules/Accessibility/HighContrastTheme.js +10 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
- package/es-modules/Accessibility/Options/LangOptions.js +1 -2
- package/es-modules/Accessibility/Options/Options.js +32 -17
- package/es-modules/Accessibility/ProxyElement.js +212 -0
- package/es-modules/Accessibility/ProxyProvider.js +305 -0
- package/es-modules/Accessibility/Utils/Announcer.js +15 -8
- package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
- package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
- package/es-modules/Core/Axis/Axis.js +37 -30
- package/es-modules/Core/Axis/AxisDefaults.js +35 -24
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
- package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
- package/es-modules/Core/Axis/TreeGridTick.js +1 -2
- package/es-modules/Core/Chart/Chart.js +2 -3
- package/es-modules/Core/Chart/ChartDefaults.js +3 -4
- package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
- package/es-modules/Core/Chart/MapChart.js +10 -22
- package/es-modules/Core/Chart/StockChart.js +3 -293
- package/es-modules/Core/Color/Palettes.js +22 -0
- package/es-modules/Core/DefaultOptions.js +19 -17
- package/es-modules/Core/Foundation.js +39 -31
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +3 -3
- package/es-modules/Core/Legend/Legend.js +7 -3
- package/es-modules/Core/Navigator.js +7 -8
- package/es-modules/Core/Pointer.js +39 -36
- package/es-modules/Core/Renderer/HTML/AST.js +2 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
- package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
- package/es-modules/Core/ScrollbarDefaults.js +10 -9
- package/es-modules/Core/Series/DataLabel.js +2 -3
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +153 -162
- package/es-modules/Core/Series/SeriesDefaults.js +3 -4
- package/es-modules/Core/Series/SeriesRegistry.js +1 -2
- package/es-modules/Core/Tooltip.js +44 -17
- package/es-modules/Core/Utilities.js +15 -7
- package/es-modules/Data/DataConverter.js +489 -0
- package/es-modules/Data/DataPromise.js +252 -0
- package/es-modules/Data/DataSeriesConverter.js +203 -0
- package/es-modules/Data/DataTable.js +1204 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
- package/es-modules/Data/Modifiers/DataModifier.js +303 -0
- package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
- package/es-modules/Data/Modifiers/SortModifier.js +249 -0
- package/es-modules/Data/Parsers/CSVParser.js +399 -0
- package/es-modules/Data/Parsers/DataParser.js +101 -0
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
- package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
- package/es-modules/Data/Stores/CSVStore.js +317 -0
- package/es-modules/Data/Stores/DataStore.js +276 -0
- package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
- package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
- package/es-modules/Extensions/Annotations/Annotations.js +61 -11
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
- package/es-modules/Extensions/Annotations/Popup.js +479 -141
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +1 -2
- package/es-modules/Extensions/CurrentDateIndication.js +2 -3
- package/es-modules/Extensions/DataGrouping.js +31 -18
- package/es-modules/Extensions/DownloadURL.js +2 -2
- package/es-modules/Extensions/DragPanes.js +1 -2
- package/es-modules/Extensions/Drilldown.js +2 -3
- package/es-modules/Extensions/Exporting/Exporting.js +8 -7
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
- package/es-modules/Extensions/GeoJSON.js +39 -63
- package/es-modules/Extensions/MarkerClusters.js +115 -97
- package/es-modules/Extensions/NoDataToDisplay.js +1 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -3
- package/es-modules/Extensions/Pane.js +5 -6
- package/es-modules/Extensions/RangeSelector.js +3 -4
- package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
- package/es-modules/Extensions/Sonification/Earcon.js +136 -102
- package/es-modules/Extensions/Sonification/Instrument.js +496 -426
- package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
- package/es-modules/Extensions/Sonification/Options.js +10 -0
- package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
- package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
- package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
- package/es-modules/Extensions/Sonification/Sonification.js +26 -52
- package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
- package/es-modules/Extensions/Sonification/Timeline.js +255 -567
- package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
- package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
- package/es-modules/Maps/MapNavigation.js +27 -64
- package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
- package/es-modules/Maps/MapPointer.js +7 -5
- package/es-modules/Maps/MapView.js +450 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
- package/es-modules/Maps/Projection.js +433 -0
- package/es-modules/Maps/ProjectionDefinition.js +9 -0
- package/es-modules/Maps/Projections/EqualEarth.js +42 -0
- package/es-modules/Maps/Projections/Miller.js +17 -0
- package/es-modules/Maps/Projections/Orthographic.js +26 -0
- package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
- package/es-modules/Maps/Projections/WebMercator.js +25 -0
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubblePoint.js +5 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
- package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
- package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
- package/es-modules/Series/ColorMapComposition.js +109 -0
- package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
- package/es-modules/Series/Column/ColumnSeries.js +3 -4
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
- package/es-modules/Series/DataModifyComposition.js +539 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
- package/es-modules/Series/DerivedComposition.js +137 -0
- package/es-modules/Series/DrawPointComposition.js +111 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
- package/es-modules/Series/Flags/FlagsSeries.js +18 -25
- package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
- package/es-modules/Series/Gantt/GanttSeries.js +0 -2
- package/es-modules/Series/Gauge/GaugePoint.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
- package/es-modules/Series/HLC/HLCPoint.js +55 -0
- package/es-modules/Series/HLC/HLCSeries.js +383 -0
- package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
- package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
- package/es-modules/Series/Line/LineSeries.js +1 -2
- package/es-modules/Series/Map/MapPoint.js +23 -16
- package/es-modules/Series/Map/MapSeries.js +268 -309
- package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
- package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
- package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
- package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
- package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
- package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
- package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
- package/es-modules/Series/Pie/PieDataLabel.js +1 -2
- package/es-modules/Series/Pie/PieSeries.js +6 -7
- package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
- package/es-modules/Series/Sankey/SankeySeries.js +89 -20
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
- package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
- package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
- package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
- package/es-modules/Series/Venn/VennPoint.js +16 -7
- package/es-modules/Series/Venn/VennSeries.js +5 -8
- package/es-modules/Series/Venn/VennUtils.js +550 -439
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
- package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
- package/es-modules/Series/XRange/XRangePoint.js +1 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
- package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
- package/es-modules/Stock/StockToolsBindings.js +144 -42
- package/es-modules/Stock/StockToolsGui.js +405 -11
- 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/ema.src.js +4 -10
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -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 +16 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -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 +6 -3
- 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 -2
- 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 -3
- 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 +33 -2
- 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 +4 -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 +801 -804
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +775 -739
- package/highcharts-more.js +194 -193
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +207 -119
- package/highcharts.d.ts +9670 -4217
- package/highcharts.js +585 -588
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +9670 -4217
- package/highcharts.src.js +608 -587
- package/highmaps.js +726 -708
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2708 -1587
- package/highstock.js +788 -783
- package/highstock.js.map +1 -1
- package/highstock.src.js +1896 -1267
- package/indicators/acceleration-bands.js +10 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +156 -112
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -4
- package/indicators/apo.js +5 -6
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +16 -84
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +160 -177
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +156 -112
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +10 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +180 -117
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +8 -9
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +8 -76
- 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 +5 -6
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +3 -75
- package/indicators/disparity-index.js +6 -7
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +19 -74
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +173 -116
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -13
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +7 -188
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +197 -203
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +649 -720
- package/indicators/indicators.js +12 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +188 -124
- package/indicators/keltner-channels.js +10 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +164 -118
- package/indicators/klinger.js +12 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +161 -184
- package/indicators/macd.js +2 -2
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -3
- 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 +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +2 -4
- 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 +5 -6
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +3 -75
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +207 -168
- 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 +9 -9
- 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 +5 -6
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +2 -72
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +209 -164
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +6 -7
- package/indicators/tema.js +6 -7
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +28 -75
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +4 -5
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -76
- package/indicators/volume-by-price.js +16 -16
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +21 -3
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +5 -6
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +41 -51
- 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.d.ts +5 -0
- package/modules/accessibility.js +234 -216
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +5 -0
- package/modules/accessibility.src.js +9709 -8608
- package/modules/annotations-advanced.d.ts +30 -0
- package/modules/annotations-advanced.js +191 -165
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +30 -0
- package/modules/annotations-advanced.src.js +1578 -320
- package/modules/annotations.js +121 -107
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +958 -229
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +3 -3
- package/modules/boost.js +79 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +10 -9
- 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 +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +69 -98
- package/modules/current-date-indicator.js +4 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -4
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +19 -19
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +9 -6
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +33 -19
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +11 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +4 -7
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +8 -8
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +3 -3
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +24 -24
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +4 -4
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +4 -4
- package/modules/export-data.js +1 -1
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +3 -3
- package/modules/exporting.js +39 -38
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +98 -67
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +9 -6
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +217 -218
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +167 -152
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +177 -162
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +4 -4
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +91 -86
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +11 -11
- 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 +136 -14
- package/modules/map.js +142 -122
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +136 -14
- package/modules/map.src.js +2129 -1029
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +173 -142
- package/modules/networkgraph.d.ts +12 -1
- package/modules/networkgraph.js +49 -49
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +12 -1
- package/modules/networkgraph.src.js +91 -43
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +3 -3
- package/modules/offline-exporting.js +17 -17
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +13 -13
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +26 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +4 -4
- package/modules/organization.js +13 -13
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +4 -4
- 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 +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +89 -78
- 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.d.ts +12 -1
- package/modules/sankey.js +29 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +12 -1
- package/modules/sankey.src.js +300 -176
- 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 +59 -55
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +3034 -2553
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +177 -164
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +1001 -131
- package/modules/stock.d.ts +39 -6
- package/modules/stock.js +204 -196
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +39 -6
- package/modules/stock.src.js +1689 -1081
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +61 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +329 -266
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +3 -4
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +5 -5
- package/modules/treegrid.js +56 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +126 -120
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +319 -254
- 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 +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +731 -721
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +90 -62
- package/modules/wordcloud.js +23 -24
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +897 -949
- package/modules/xrange.js +2 -2
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +2 -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
- package/es-modules/Core/Axis/MapAxis.js +0 -157
- package/es-modules/Core/Color/Palette.js +0 -82
- package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
- package/es-modules/Mixins/ColorMapSeries.js +0 -82
- package/es-modules/Mixins/ColorSeries.js +0 -77
- package/es-modules/Mixins/DerivedSeries.js +0 -118
- package/es-modules/Mixins/DrawPoint.js +0 -81
- package/es-modules/Mixins/IndicatorRequired.js +0 -56
- package/es-modules/Mixins/Navigation.js +0 -54
- package/es-modules/Mixins/NelderMead.js +0 -132
- package/es-modules/Mixins/Polygon.js +0 -259
- package/es-modules/Mixins/ReduceArray.js +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highstock JS v9.
|
|
2
|
+
Highstock JS v9.3.0 (2021-10-21)
|
|
3
3
|
|
|
4
4
|
All technical indicators for Highcharts Stock
|
|
5
5
|
|
|
@@ -7,206 +7,200 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
'use strict';(function(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
")
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
null===
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
b.prototype,new
|
|
25
|
-
function(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
a,
|
|
36
|
-
|
|
37
|
-
(a[
|
|
38
|
-
4===
|
|
39
|
-
d["Core/Utilities.js"]],function(d,
|
|
40
|
-
arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}
|
|
41
|
-
e.seriesTypes.sma.prototype.getValues.call(this,{xData:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
e
|
|
45
|
-
1]);d.push(z)}return{values:
|
|
46
|
-
|
|
47
|
-
e.get(
|
|
48
|
-
|
|
49
|
-
[
|
|
50
|
-
|
|
51
|
-
b){return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
a
|
|
57
|
-
b){
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return{values:
|
|
63
|
-
function(
|
|
64
|
-
0;
|
|
65
|
-
d.
|
|
66
|
-
|
|
67
|
-
b,
|
|
68
|
-
this.getEMA([
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
b.
|
|
77
|
-
b=
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
d.prototype.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return
|
|
92
|
-
(b.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
b)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
function(){
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
a
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
lineWidth:1}},dataGrouping:{approximation:"averages"}});return
|
|
137
|
-
function(d
|
|
138
|
-
void 0;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
g.
|
|
142
|
-
|
|
143
|
-
return function(d
|
|
144
|
-
|
|
145
|
-
b
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
{
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
d
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
f
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
function(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
[
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
null!==
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
null!==
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Array&&function(c
|
|
201
|
-
d.prototype.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,c)};return function(e,c){function a(){this.constructor=e}d(e,c);e.prototype=null===c?Object.create(c):(a.prototype=c.prototype,new a)}}(),k=d.seriesTypes.sma,m=e.extend,n=e.merge,r=e.isArray;e=function(d){function e(){var c=null!==d&&d.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}h(e,d);e.prototype.getValues=function(c,a){var b=c.xData,d=c.yData;c=[];var e=[],g=[],h=
|
|
207
|
-
0,k=0,l=0,m=0,n=b.length,t=a.index;for(a=0;a<n;a++){var p=b[a];var u=r(d[a])?d[a][t]:d[a];h+=p;k+=u;l+=p*u;m+=p*p}d=(n*l-h*k)/(n*m-h*h);isNaN(d)&&(d=0);h=(k-d*h)/n;for(a=0;a<n;a++)p=b[a],u=d*p+h,c[a]=[p,u],e[a]=p,g[a]=u;return{xData:e,yData:g,values:c}};e.defaultOptions=n(k.defaultOptions,{params:{period:void 0,index:3}});return e}(k);m(e.prototype,{nameBase:"Trendline",nameComponents:!1});d.registerSeriesType("trendline",e);"";return e});t(d,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",
|
|
208
|
-
[d["Mixins/IndicatorRequired.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,e,h){var k=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)}}(),m=e.seriesTypes.sma,n=h.correctFloat,
|
|
209
|
-
r=h.defined,l=h.extend,g=h.isArray,c=h.merge;h=function(a){function b(){var b=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}k(b,a);b.prototype.init=function(){var a=arguments,b=this,c=a[1].params;c=c&&c.average?c.average:void 0;b.averageIndicator=e.seriesTypes[c]||m;d.isParentLoaded(b.averageIndicator,c,b.type,function(c){c.prototype.init.apply(b,a)})};b.prototype.calculateDisparityIndex=function(a,b){return n(a-b)/b*100};
|
|
210
|
-
b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:0,h=[],k=[],l=[],m=this.averageIndicator,n=g(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&r(c)&&!(e.length<=b)){for(m=b;m<f;m++){var t=this.calculateDisparityIndex(n?e[m][c]:e[m],a[m-b]);h.push([d[m],t]);k.push(d[m]);l.push(t)}return{values:h,xData:k,yData:l}}};b.defaultOptions=c(m.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});
|
|
211
|
-
return b}(m);l(h.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});e.registerSeriesType("disparityindex",h);"";return h});t(d,"masters/indicators/indicators-all.src.js",[],function(){})});
|
|
10
|
+
'use strict';(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,d,g,l){f.hasOwnProperty(d)||(f[d]=l.apply(null,g))}f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],
|
|
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
|
+
(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
|
+
[]).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.bindTo.series?a.linkedParent:a.linkedParent.xAxis,a.bindTo.eventName,function(){a.recalculateValues()})),"init"===a.calculateOn)a.processedYData||a.recalculateValues();else{if(!b)var m=p(a.chart,a.calculateOn,function(){a.recalculateValues();m()})}else return r("Series "+a.options.linkedTo+
|
|
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=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])));
|
|
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);!1===this.bindTo.series&&(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;
|
|
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,{bindTo:{series:!0,eventName:"updatedData"},calculateOn:"init",hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});d.registerSeriesType("sma",
|
|
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=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,
|
|
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*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:
|
|
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",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
|
|
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=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
|
|
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]+=d[a-1][1]),d.push(y),q.push(y[0]),n.push(y[1]);return{values:d,xData:q,yData:n}}k("Series "+
|
|
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=this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
24
|
+
Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};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,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}l(c,b);c.prototype.drawGraph=
|
|
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]+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/
|
|
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,{nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,
|
|
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,w={options:{gapSize:m.gapSize}},h=[],A=c.getTranslatedLinesNames(c.pointValKey),d=b.length,f;A.forEach(function(c,a){for(h[a]=
|
|
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"+a]=c.graph):k('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});
|
|
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();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));
|
|
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||(r={}));return r});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],
|
|
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)&&(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,
|
|
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=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+
|
|
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}},dataGrouping:{approximation:"averages"}});return b}(p);r(g.prototype,{linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});
|
|
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||{__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=
|
|
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,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,
|
|
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",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"===
|
|
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,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=
|
|
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],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+=
|
|
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"]],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)&&
|
|
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=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}}},
|
|
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,{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,
|
|
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/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{pointArrayMap:["top","middle","bottom"],
|
|
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=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)&&
|
|
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=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<
|
|
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);f.registerSeriesType("cci",d);"";return d});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
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,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;
|
|
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>=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,
|
|
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>=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]);
|
|
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"]],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__=
|
|
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)||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-
|
|
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=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=
|
|
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,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],
|
|
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/>'},
|
|
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
|
+
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
|
+
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,
|
|
57
|
+
{params:{index:0,period:21}});return b}(k);p(d.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",d);"";return d});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],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 m(){this.constructor=
|
|
58
|
+
b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),l=f.seriesTypes,k=l.ad,p=l.ema,r=d.correctFloat;l=d.extend;var h=d.merge,e=d.error;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.getValues=function(a,b){var c=b.periods,m=b.period,h=[],d=[],f=[],q;if(2!==c.length||c[1]<=c[0])e('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
|
|
59
|
+
else if(b=k.prototype.getValues.call(this,a,{volumeSeriesID:b.volumeSeriesID,period:m}))if(a=p.prototype.getValues.call(this,b,{period:c[0]}),b=p.prototype.getValues.call(this,b,{period:c[1]}),a&&b){c=c[1]-c[0];for(q=0;q<b.yData.length;q++)m=r(a.yData[q+c]-b.yData[q]),h.push([b.xData[q],m]),d.push(b.xData[q]),f.push(m);return{values:h,xData:d,yData:f}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return b}(p);l(d.prototype,{nameBase:"Chaikin Osc",
|
|
60
|
+
nameComponents:["periods"]});f.registerSeriesType("chaikin",d);"";return d});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,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(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):
|
|
61
|
+
(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.isNumber,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getValues=function(e,a){var b=a.period,c=e.xData,m=e.yData;e=m?m.length:0;var d=[],h=[],f=[],z,g=a.index;if(!(c.length<b)){k(m[0])?a=m:(g=Math.min(g,m[0].length-1),a=m.map(function(a){return a[g]}));var q=0,n=m=0;for(z=b;0<z;z--)a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-
|
|
62
|
+
1]-a[z]);q=0<m+n?100*(m-n)/(m+n):0;h.push(c[b]);f.push(q);d.push([c[b],q]);for(z=b+1;z<e;z++)q=Math.abs(a[z-b-1]-a[z-b]),a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-1]-a[z]),a[z-b]>a[z-b-1]?m-=q:n-=q,q=0<m+n?100*(m-n)/(m+n):0,h.push(c[z]),f.push(q),d.push([c[z],q]);return{values:d,xData:h,yData:f}}};h.defaultOptions=p(l.defaultOptions,{params:{period:20,index:3}});return h}(l);f.registerSeriesType("cmo",d);"";return d});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
|
|
63
|
+
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===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,
|
|
64
|
+
arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=a.xData,d=(a=a.yData)?a.length:0,h=-1,f=[],g=[],q=[],n=0,B=[],t;this.EMApercent=2/(c+1);if(!(d<2*c-1)){p(a[0])&&(h=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,h,a);var u=
|
|
65
|
+
b/c;b=0;for(t=c;t<d+2;t++){t<d+1&&(n=this.getEMA(a,r,u,h,t)[1],B.push(n));var r=n;if(t<m)b+=n;else{t===m&&(u=b/c);n=B[t-c-1];var J=this.getEMA([n],J,u)[1];var x=[e[t-2],k(2*n-J)];f.push(x);g.push(x[0]);q.push(x[1])}}return{values:f,xData:g,yData:q}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("dema",d);"";return d});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=
|
|
66
|
+
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.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
|
|
67
|
+
void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getTemaPoint=function(a,b,c,m){return[a[m-3],k(3*c.level1-3*c.level2+c.level3)]};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=3*c,d=a.xData,h=(a=a.yData)?a.length:0,f=-1,g=[],q=[],n=[],B=[],t=[],u,r,k={};this.EMApercent=2/(c+1);if(!(h<3*c-2)){p(a[0])&&(f=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,
|
|
68
|
+
f,a);var x=b/c;b=0;for(u=c;u<h+3;u++){u<h+1&&(k.level1=this.getEMA(a,F,x,f,u)[1],B.push(k.level1));var F=k.level1;if(u<m)b+=k.level1;else{u===m&&(x=b/c,b=0);k.level1=B[u-c-1];k.level2=this.getEMA([k.level1],P,x)[1];t.push(k.level2);var P=k.level2;if(u<e)b+=k.level2;else{u===e&&(x=b/c);u===h+1&&(k.level1=B[u-c-1],k.level2=this.getEMA([k.level1],P,x)[1],t.push(k.level2));k.level1=B[u-c-2];k.level2=t[u-2*c-1];k.level3=this.getEMA([k.level2],k.prevLevel3,x)[1];if(r=this.getTemaPoint(d,e,k,u))g.push(r),
|
|
69
|
+
q.push(r[0]),n.push(r[1]);k.prevLevel3=k.level3}}}return{values:g,xData:q,yData:n}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("tema",d);"";return d});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,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]=
|
|
70
|
+
b[c])};return d(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.tema,k=d.correctFloat,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getTemaPoint=function(e,a,b,c){if(c>a)return[e[c-3],0!==b.prevLevel3?k(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};h.defaultOptions=p(l.defaultOptions);
|
|
71
|
+
return h}(l);f.registerSeriesType("trix",d);"";return d});v(f,"Stock/Indicators/APO/APOIndicator.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===a?Object.create(a):(b.prototype=
|
|
72
|
+
a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.extend,p=d.merge,r=d.error;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=b.periods,m=b.index;b=[];var e=[],d=[],h;if(2!==c.length||c[1]<=c[0])r('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=l.prototype.getValues.call(this,a,{index:m,period:c[0]});a=l.prototype.getValues.call(this,
|
|
73
|
+
a,{index:m,period:c[1]});if(f&&a){c=c[1]-c[0];for(h=0;h<a.yData.length;h++)m=f.yData[h+c]-a.yData[h],b.push([a.xData[h],m]),e.push(a.xData[h]),d.push(m);return{values:b,xData:e,yData:d}}}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,periods:[10,20]}});return e}(l);k(d.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",d);"";return d});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
|
|
74
|
+
f["Core/Utilities.js"]],function(f,d,g,l){function k(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function p(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function r(a){return{high:k(a),low:p(a)}}function h(a){var b,c,m,e,d;a.series.forEach(function(a){if(a.xData)for(e=a.xData,d=c=a.xIncrement?1:e.length-1;0<d;d--)if(m=e[d]-e[d-1],"undefined"===typeof b||m<b)b=m});return b}function e(a,b,c,m){if(a&&b&&c&&m){var e=b.plotX-a.plotX;b=b.plotY-a.plotY;var d=
|
|
75
|
+
m.plotX-c.plotX;m=m.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+e*w)/(-d*b+e*m);d=(d*w-m*h)/(-d*b+e*m);if(0<=c&&1>=c&&0<=d&&1>=d)return{plotX:a.plotX+d*e,plotY:a.plotY+d*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=z(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
76
|
+
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 m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),c=f.parse,m=g.seriesTypes.sma,w=l.defined;f=l.extend;var A=l.isArray,y=l.isNumber,z=l.merge,S=l.objectEach;d.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,m){a.push(d.approximations.average(c));b=!b&&"undefined"===
|
|
77
|
+
typeof a[m]});return b?void 0:a};l=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,d);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=z({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
|
|
78
|
+
fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var m=b[c];y(m)&&(b["plot"+c]=a.yAxis.toPixels(m,
|
|
79
|
+
!0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,m=c.length,d=b.options,h=b.graph,f=b.color,y={options:{gapSize:d.gapSize}},A=b.pointArrayMap.length,q=[[],[],[],[],[],[]],n={tenkanLine:q[0],kijunLine:q[1],chikouLine:q[2],senkouSpanA:q[3],senkouSpanB:q[4],senkouSpan:q[5]},l=[],k=b.options.senkouSpan,r=k.color||k.styles.fill,p=k.negativeColor,x=[[],[]],v=[[],[]],Q=0,K,R,N;for(b.ikhMap=n;m--;){var D=c[m];for(K=0;K<A;K++)k=
|
|
80
|
+
b.pointArrayMap[K],w(D[k])&&q[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});p&&m!==c.length-1&&(k=n.senkouSpanB.length-1,D=e(n.senkouSpanA[k-1],n.senkouSpanA[k],n.senkouSpanB[k-1],n.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(n.senkouSpanA.splice(k,0,K),n.senkouSpanB.splice(k,0,K),l.push(k)))}S(n,function(a,c){d[c]&&"senkouSpan"!==c&&(b.points=q[Q],b.options=z(d[c].styles,y),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,g.seriesTypes.sma.prototype.drawGraph.call(b),
|
|
81
|
+
b["graph"+c]=b.graph);Q++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&n.senkouSpanA[0]&&n.senkouSpanB[0]){l.unshift(0);l.push(n.senkouSpanA.length-1);for(A=0;A<l.length-1;A++){k=l[A];D=l[A+1];m=n.senkouSpanB.slice(k,D+1);k=n.senkouSpanA.slice(k,D+1);if(1<=Math.floor(m.length/2))if(D=Math.floor(m.length/2),m[D].plotY===k[D].plotY){for(N=K=D=0;N<m.length;N++)D+=m[N].plotY,K+=k[N].plotY;D=D>K?0:1}else D=m[D].plotY>k[D].plotY?0:1;
|
|
82
|
+
else D=m[0].plotY>k[0].plotY?0:1;x[D]=x[D].concat(m);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,m){x[m].length&&v[m].length&&(R=0===m?r:p,a({indicator:b,points:x[m],nextPoints:v[m],color:R,options:d,gap:y,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:n.senkouSpanB,nextPoints:n.senkouSpanA,color:r,options:d,gap:y,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
|
|
83
|
+
c;b.options=d;b.graph=h;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=g.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=g.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var m=c.length-1;0<=m;m--)b.push(c[m])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,m=b.periodTenkan;
|
|
84
|
+
b=b.periodSenkouSpanB;var e=a.xData,d=a.yData,f=d&&d.length||0;a=h(a.xAxis);var w=[],y=[],n;if(!(e.length<=c)&&A(d[0])&&4===d[0].length){var q=e[0]-c*a;for(n=0;n<c;n++)y.push(q+n*a);for(n=0;n<f;n++){if(n>=m){var z=d.slice(n-m,n);z=r(z);z=(z.high+z.low)/2}if(n>=c){var g=d.slice(n-c,n);g=r(g);g=(g.high+g.low)/2;var t=(z+g)/2}if(n>=b){var k=d.slice(n-b,n);k=r(k);k=(k.high+k.low)/2}q=d[n][3];var l=e[n];"undefined"===typeof w[n]&&(w[n]=[]);"undefined"===typeof w[n+c]&&(w[n+c]=[]);w[n+c][0]=z;w[n+c][1]=
|
|
85
|
+
g;w[n+c][2]=void 0;w[n][2]=q;n<=c&&(w[n+c][3]=void 0,w[n+c][4]=void 0);"undefined"===typeof w[n+2*c]&&(w[n+2*c]=[]);w[n+2*c][3]=t;w[n+2*c][4]=k;y.push(l)}for(n=1;n<=c;n++)y.push(l+n*a);return{values:w,xData:y,yData:w}}};f.defaultOptions=z(m.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>TENKAN SEN: {point.tenkanSen:.3f}<br/>KIJUN SEN: {point.kijunSen:.3f}<br/>CHIKOU SPAN: {point.chikouSpan:.3f}<br/>SENKOU SPAN A: {point.senkouSpanA:.3f}<br/>SENKOU SPAN B: {point.senkouSpanB:.3f}<br/>'},
|
|
86
|
+
tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}});return f}(m);f(l.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
|
|
87
|
+
"period","periodTenkan"]});g.registerSeriesType("ikh",l);"";return l});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.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||{__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,
|
|
88
|
+
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.correctFloat,r=g.extend,h=g.merge;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.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)};
|
|
89
|
+
a.prototype.getValues=function(a,c){var b=c.period,e=c.periodATR,h=c.multiplierATR,f=a.yData;f=f?f.length:0;var z=[];c=d.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var g=d.seriesTypes.atr.prototype.getValues(a,{period:e}),q=[],n=[],k;if(!(f<b)){for(k=b;k<=f;k++){var t=c.values[k-b];var l=g.values[k-e];var r=t[0];a=p(t[1]+h*l[1]);l=p(t[1]-h*l[1]);t=t[1];z.push([r,a,t,l]);q.push(r);n.push([a,t,l])}return{values:z,xData:q,yData:n}}};a.defaultOptions=h(k.defaultOptions,{params:{index:0,
|
|
90
|
+
period:20,periodATR:10,multiplierATR:2},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/>Upper Channel: {point.top}<br/>EMA({series.options.params.period}): {point.middle}<br/>Lower Channel: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1});return a}(k);r(g.prototype,{nameBase:"Keltner Channels",nameComponents:["period",
|
|
91
|
+
"periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("keltnerchannels",g);"";return g});v(f,"Stock/Indicators/Klinger/KlingerIndicator.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 a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
92
|
+
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 m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes,p=k.sma,r=k.ema,h=g.correctFloat,e=g.error;k=g.extend;var a=g.isArray,b=g.merge;g=function(c){function m(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}l(m,c);m.prototype.calculateTrend=
|
|
93
|
+
function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};m.prototype.isValidData=function(b){var c=this.chart,m=this.options,d=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(m.params.volumeSeriesID)))||e("Series "+m.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d.chart);return!(![d,c].every(function(a){return a&&a.xData&&a.xData.length>=m.params.slowAvgPeriod})||!b)};m.prototype.getCM=function(a,b,c,m,e){return h(b+(c===
|
|
94
|
+
m?a:e))};m.prototype.getDM=function(a,b){return h(a-b)};m.prototype.getVolumeForce=function(a){var b=[],c=1;var m=0;var e=a[0][1]-a[0][2];var d=0;for(c;c<a.length;c++){var h=this.calculateTrend(a,c);var f=this.getDM(a[c][1],a[c][2]);m=this.getCM(m,f,h,d,e);d=this.volumeSeries.yData[c]*h*Math.abs(2*(f/m-1))*100;b.push([d]);d=h;e=f}return b};m.prototype.getEMA=function(a,b,c,m,e,d,h){return r.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,m,b,"undefined"===typeof e?-1:e,c)};m.prototype.getSMA=
|
|
95
|
+
function(a,b,c){return r.prototype.accumulatePeriodPoints(a,b,c)/a};m.prototype.getValues=function(a,b){var c=[],m=a.xData;a=a.yData;var e=[],d=[],f=[],w,g=0,k=0,l=void 0,A=void 0,r=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),x=this.getSMA(b.fastAvgPeriod,0,p),C=this.getSMA(b.slowAvgPeriod,0,p),M=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(g;g<a.length;g++)g>=b.fastAvgPeriod&&(l=k=this.getEMA(p,l,x,M,0,g,m)[1]),g>=b.slowAvgPeriod&&(A=w=this.getEMA(p,A,C,v,0,g,m)[1],w=h(k-w),
|
|
96
|
+
f.push(w),f.length>=b.signalPeriod&&(r=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([m[g],w,r]),e.push(m[g]),d.push([w,r]));return{values:c,xData:e,yData:d}}};m.defaultOptions=b(p.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</span><b> {series.name}</b><br/><span style="color: {point.color}">Klinger</span>: {point.y}<br/><span style="color: {point.series.options.signalLine.styles.lineColor}">Signal</span>: {point.signal}<br/>'}});
|
|
97
|
+
return m}(p);k(g.prototype,{linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);d.registerSeriesType("klinger",g);"";return g});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
98
|
+
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,m)};return function(b,m){function c(){this.constructor=b}a(b,m);b.prototype=null===m?Object.create(m):(c.prototype=m.prototype,new c)}}(),k=f.noop,p=d.seriesTypes.sma,r=g.extend,h=g.correctFloat,e=g.defined,a=g.merge;g=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=void 0;a.graphsignal=
|
|
99
|
+
void 0;a.macdZones=void 0;a.signalZones=void 0;return a}l(c,b);c.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),this.macdZones={zones:this.options.macdLine.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones.length},this.resetZones=!0)};c.prototype.toYData=function(a){return[a.y,
|
|
100
|
+
a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(m,e){null!==m&&(c[b[e]]=a.yAxis.toPixels(m,!0))})})};c.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();d.seriesTypes.sma.prototype.destroy.apply(this,arguments)};c.prototype.drawGraph=
|
|
101
|
+
function(){for(var b=this,c=b.points,h=c.length,f=b.options,g=b.zones,k={options:{gapSize:f.gapSize}},q=[[],[]],n;h--;)n=c[h],e(n.plotMACD)&&q[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!e(n.plotMACD)}),e(n.plotSignal)&&q[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!e(n.plotMACD)});["macd","signal"].forEach(function(c,m){b.points=q[m];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;d.seriesTypes.sma.prototype.drawGraph.call(b);
|
|
102
|
+
b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),m=c;this.currentLineZone&&(m=c.splice(this[this.currentLineZone].startIndex+1),m.length?m.splice(0,0,a[0]):m=[a[0]]);return m};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;d.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
|
|
103
|
+
this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,m=0,f=[],g=[],w=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=d.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var k=d.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;k=k.values;for(a=0;a<=n.length;a++)e(k[a])&&e(k[a][1])&&e(n[a+c])&&e(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-k[a][1]]);for(a=0;a<f.length;a++)g.push(f[a][0]),w.push([0,
|
|
104
|
+
null,f[a][3]]);b=d.seriesTypes.ema.prototype.getValues({xData:g,yData:w},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<f.length;a++)f[a][0]>=b[0][0]&&(f[a][2]=b[m][1],w[a]=[0,b[m][1],f[a][3]],null===f[a][3]?(f[a][1]=0,w[a][0]=0):(f[a][1]=h(f[a][3]-b[m][1]),w[a][0]=h(f[a][3]-b[m][1])),m++);return{values:f,xData:g,yData:w}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
|
|
105
|
+
styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);r(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
|
|
106
|
+
"signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});d.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(a){return a.reduce(function(a,b){return a+b})}function l(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends||
|
|
107
|
+
function(){var a=function(b,e){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,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.extend,h=d.merge,e=d.error,a=d.isArray;d=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
|
|
108
|
+
void 0;return a}k(c,b);c.prototype.getValues=function(b,c){var m=c.period,d=b.xData,h=b.yData,f=h?h.length:0,q=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),k=w&&w.yData,u=[],r=[],p=[],x=[],F=[];if(!w)e("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(d.length<=m)&&a(h[0])&&4===h[0].length&&k){for(b=l(h[n]);n<m+1;)c=b,b=l(h[n]),c=b>=c,w=b*k[n],x.push(c?w:0),F.push(c?0:w),n++;for(m=n-1;m<f;m++)m>n-1&&(x.shift(),F.shift(),c=b,b=l(h[m]),c=b>c,w=b*k[m],x.push(c?
|
|
109
|
+
w:0),F.push(c?0:w)),c=g(F),w=g(x),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(q)),u.push([d[m],c]),r.push(d[m]),p.push(c);return{values:u,xData:r,yData:p}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);r(d.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",d);"";return d});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
|
|
110
|
+
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.extend,p=d.isArray,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;
|
|
111
|
+
return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period;b=b.index;var e=a.xData,d=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(e.length<=c)&&p(a[0])){for(k=c+1;k<d;k++){var q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1])}q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1]);return{values:h,xData:f,yData:g}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3}});return e}(l);k(d.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",d);"";
|
|
112
|
+
return d});v(f,"Stock/Indicators/NATR/NATRIndicator.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,new e)}}(),l=f.seriesTypes.atr,
|
|
113
|
+
k=d.merge;d=function(d){function f(){var f=null!==d&&d.apply(this,arguments)||this;f.data=void 0;f.points=void 0;f.options=void 0;return f}g(f,d);f.prototype.getValues=function(d,e){var a=l.prototype.getValues.apply(this,arguments),b=a.values.length,c=e.period-1,m=d.yData,f=0;if(a){for(;f<b;f++)a.yData[f]=a.values[f][1]/m[c][3]*100,a.values[f][1]=a.yData[f],c++;return a}};f.defaultOptions=k(l.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(l);f.registerSeriesType("natr",d);"";return d});v(f,
|
|
114
|
+
"Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=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)}}(),l=f.seriesTypes.sma,k=d.isNumber,
|
|
115
|
+
p=d.error,r=d.extend,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,e);a.prototype.getValues=function(a,c){var b=a.chart.get(c.volumeSeriesID),e=a.xData,d=a.yData,f=[],h=[],g=[],q=!k(d[0]),n=1,l=0;if(b){b=b.yData;a=[e[0],l];var t=q?d[0][3]:d[0];f.push(a);h.push(e[0]);g.push(a[1]);for(n;n<d.length;n++)c=q?d[n][3]:d[n],l=c>t?l+b[n]:c===t?l:l-b[n],a=[e[n],l],t=c,f.push(a),h.push(e[n]),g.push(a[1]);return{values:f,
|
|
116
|
+
xData:h,yData:g}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(l.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(l);r(d.prototype,{nameComponents:void 0});f.registerSeriesType("obv",d);"";return d});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function d(d,g){var k=d.series.pointArrayMap,l=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(d);l--;)g=
|
|
117
|
+
"dataLabel"+k[l],d[g]&&d[g].element&&d[g].destroy(),d[g]=null}var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var d=null!==f&&f.apply(this,arguments)||this;d.P=
|
|
118
|
+
void 0;d.pivotLine=void 0;d.series=void 0;return d}g(k,f);k.prototype.destroyElements=function(){d(this,"destroyElements")};k.prototype.destroy=function(){d(this,"destroyElements")};return k}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
|
|
119
|
+
{__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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),k=d.seriesTypes.sma,p=g.merge,r=g.extend,h=g.defined,e=g.isArray;g=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b}
|
|
120
|
+
l(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;d.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){h(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,e=[[],[],[],[],[],[],[],[],[]],f=[],g=b.plotEndPoint,k=b.pointArrayMap.length,q,n,l;c--;){n=a[c];for(l=0;l<k;l++)q=b.pointArrayMap[l],
|
|
121
|
+
h(n[q])&&e[l].push({plotX:n.plotX,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:null,isNull:!0});g=n.plotX}e.forEach(function(a){f=f.concat(d.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};b.prototype.drawDataLabels=function(){var a=this,b=a.pointArrayMap,e,f,h;if(a.options.dataLabels.enabled){var g=a.points.length;b.concat([!1]).forEach(function(c,m){for(h=g;h--;)f=a.points[h],c?(f.y=f[c],f.pivotLine=c,f.plotY=f["plot"+c],e=f["dataLabel"+c],m&&(f["dataLabel"+
|
|
122
|
+
b[m-1]]=f.dataLabel),f.dataLabels||(f.dataLabels=[]),f.dataLabels[0]=f.dataLabel=e=e&&e.element?e:null):f["dataLabel"+b[m-1]]=f.dataLabel;d.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};b.prototype.getValues=function(a,b){var c=b.period,d=a.xData,m=(a=a.yData)?a.length:0;b=this[b.algorithm+"Placement"];var f=[],h=[],g=[],n;if(!(d.length<c)&&e(a[0])&&4===a[0].length){for(n=c+1;n<=m+c;n+=c){var k=d.slice(n-c-1,n);var l=a.slice(n-c-1,n);var u=k.length;var r=k[u-1];l=this.getPivotAndHLC(l);
|
|
123
|
+
l=b(l);l=f.push([r].concat(l));h.push(r);g.push(f[l-1].slice(1))}this.endPoint=k[0]+(r-k[0])/u*c;return{values:f,xData:h,yData:g}}};b.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,e=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+e)/3,b,c,e]};b.prototype.standardPlacement=function(a){var b=a[1]-a[2];return[null,null,a[0]+b,2*a[0]-a[2],a[0],2*a[0]-a[1],a[0]-b,null,null]};b.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
|
|
124
|
+
1.5*b,a[3]+1.25*b,a[3]+1.1666*b,a[3]+1.0833*b,a[0],a[3]-1.0833*b,a[3]-1.1666*b,a[3]-1.25*b,a[3]-1.5*b]};b.prototype.fibonacciPlacement=function(a){var b=a[1]-a[2];return[null,a[0]+b,a[0]+.618*b,a[0]+.382*b,a[0],a[0]-.382*b,a[0]-.618*b,a[0]-b,null]};b.defaultOptions=p(k.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,
|
|
125
|
+
{nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});d.registerSeriesType("pivotpoints",g);"";return g});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=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)};
|
|
126
|
+
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)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.extend,r=d.merge,h=d.error;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}g(a,e);a.prototype.getValues=function(a,c){var b=c.periods,e=c.index;c=[];var d=[],f=[],g;if(2!==b.length||b[1]<=b[0])h('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
|
|
127
|
+
else{var r=l.prototype.getValues.call(this,a,{index:e,period:b[0]});a=l.prototype.getValues.call(this,a,{index:e,period:b[1]});if(r&&a){b=b[1]-b[0];for(g=0;g<a.yData.length;g++)e=k((r.yData[g+b]-a.yData[g])/a.yData[g]*100),c.push([a.xData[g],e]),d.push(a.xData[g]),f.push(e);return{values:c,xData:d,yData:f}}}};a.defaultOptions=r(l.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(l);p(d.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",d);"";return d});
|
|
128
|
+
v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,d,g){return f.reduce(function(f,k){return[Math.min(f[0],k[d]),Math.max(f[1],k[g])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(f,"Stock/Indicators/PC/PCIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Color/Palettes.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l,k){var p=this&&this.__extends||function(){var a=function(b,
|
|
129
|
+
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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=l.seriesTypes.sma,h=k.merge;k=k.extend;var e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(b,a);b.prototype.getValues=
|
|
130
|
+
function(a,b){b=b.period;var c=a.xData,e=(a=a.yData)?a.length:0,d=[],m=[],h=[],g;if(!(e<b)){for(g=b;g<=e;g++){var n=c[g-1];var k=a.slice(g-b,g);var l=f.getArrayExtremes(k,2,1);k=l[1];var u=l[0];l=(k+u)/2;d.push([n,k,l,u]);m.push(n);h.push([k,l,u])}return{values:d,xData:m,yData:h}}};b.defaultOptions=h(r.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:g.colors[2],lineWidth:1}},bottomLine:{styles:{lineColor:g.colors[8],lineWidth:1}},dataGrouping:{approximation:"averages"}});
|
|
131
|
+
return b}(r);k(e.prototype,{nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});d.compose(e);l.registerSeriesType("pc",e);"";return e});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.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,
|
|
132
|
+
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.extend,p=d.isArray,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.init=function(){f.seriesTypes.sma.prototype.init.apply(this,arguments);
|
|
133
|
+
this.options=r({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};e.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};e.prototype.translate=function(){var a=this,b=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(c){[c.top,c.middle,c.bottom].forEach(function(e,d){null!==e&&(c[b[d]]=a.yAxis.toPixels(e,!0))})})};e.prototype.drawGraph=function(){for(var a=this,b=a.points,c=b.length,
|
|
134
|
+
e=a.options,d=a.graph,h={options:{gapSize:e.gapSize}},g=[[],[]],k;c--;)k=b[c],g[0].push({plotX:k.plotX,plotY:k.plotTop,isNull:k.isNull}),g[1].push({plotX:k.plotX,plotY:k.plotBottom,isNull:k.isNull});["topLine","bottomLine"].forEach(function(b,c){a.points=g[c];a.options=r(e[b].styles,h);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=b;a.options=e;a.graph=d;f.seriesTypes.sma.prototype.drawGraph.call(a)};e.prototype.getValues=function(a,b){var c=b.period,
|
|
135
|
+
e=b.topBand,d=b.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],l=[],q=[],n;if(!(h.length<c)&&p(a[0])&&4===a[0].length){for(n=c;n<=g;n++){var r=h.slice(n-c,n);var t=a.slice(n-c,n);t=f.seriesTypes.sma.prototype.getValues.call(this,{xData:r,yData:t},b);r=t.xData[0];t=t.yData[0];var u=t*(1+e);var O=t*(1-d);k.push([r,u,t,O]);l.push(r);q.push([u,t,O])}return{values:k,xData:l,yData:q}}};e.defaultOptions=r(l.defaultOptions,{marker:{enabled:!1},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/>'},
|
|
136
|
+
params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return e}(l);k(d.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",d);"";return d});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
|
|
137
|
+
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.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||
|
|
138
|
+
this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=e.xData;e=e.yData;var c=e[0][1],d=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=e[0][2],k=a.decimals,l=a.index,q=[],n=[],r=[],t=1,u;if(!(l>=e.length)){for(u=0;u<l;u++)c=Math.max(e[u][1],c),g=Math.min(e[u][2],parseFloat(g.toFixed(k)));var p=e[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(c-g);q.push([b[l],g]);n.push(b[l]);r.push(parseFloat(g.toFixed(k)));for(u=
|
|
139
|
+
l+1;u<e.length;u++){l=e[u-1][2];var x=e[u-2][2];var F=e[u-1][1];var v=e[u-2][1];var C=e[u][1];var M=e[u][2];null!==x&&null!==v&&null!==l&&null!==F&&null!==C&&null!==M&&(g=p===t?1===p?g+J<Math.min(x,l)?g+J:Math.min(x,l):g+J>Math.max(v,F)?g+J:Math.max(v,F):c,l=1===p?C>c?C:c:M<c?M:c,C=1===t&&M>g||-1===t&&C>g?1:-1,t=C,J=l,M=f,x=d,F=h,a=t===p?1===t&&J>c?a===x?x:parseFloat((a+M).toFixed(2)):-1===t&&J<c?a===x?x:parseFloat((a+M).toFixed(2)):a:F,c=l-g,J=a*c,q.push([b[u],parseFloat(g.toFixed(k))]),n.push(b[u]),
|
|
140
|
+
r.push(parseFloat(g.toFixed(k))),t=p,p=C,c=l)}return{values:q,xData:n,yData:r}}};f.defaultOptions=k(l.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}});return f}(l);d(p.prototype,{nameComponents:void 0});f.registerSeriesType("psar",p);"";return p});v(f,"Stock/Indicators/ROC/ROCIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
|
|
141
|
+
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.isArray,p=d.merge;d=d.extend;var r=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;
|
|
142
|
+
a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period,e=a.xData,d=(a=a.yData)?a.length:0,f=[],h=[],g=[],l=-1;if(!(e.length<=c)){k(a[0])&&(l=b.index);for(b=c;b<d;b++){var q=0>l?(q=a[b-c])?(a[b]-q)/q*100:null:(q=a[b-c][l])?(a[b][l]-q)/q*100:null;q=[e[b],q];f.push(q);h.push(q[0]);g.push(q[1])}return{values:f,xData:h,yData:g}}};e.defaultOptions=p(l.defaultOptions,{params:{index:3,period:9}});return e}(l);d(r.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
|
|
143
|
+
r);"";return r});v(f,"Stock/Indicators/RSI/RSIIndicator.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=e.prototype,new a)}}(),l=f.seriesTypes.sma,
|
|
144
|
+
k=d.isNumber,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.period,c=e.xData,d=e.yData;e=d?d.length:0;var f=a.decimals,h=1,g=[],l=[],r=[],q=a.index,n=a=0,p;if(!(c.length<b)){if(k(d[0]))var t=d;else q=Math.min(q,d[0].length-1),t=d.map(function(a){return a[q]});for(;h<b;){var u=parseFloat((t[h]-t[h-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);h++}d=parseFloat((a/
|
|
145
|
+
(b-1)).toFixed(f));for(p=parseFloat((n/(b-1)).toFixed(f));h<e;h++)u=parseFloat((t[h]-t[h-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),d=parseFloat(((d*(b-1)+a)/b).toFixed(f)),p=parseFloat(((p*(b-1)+n)/b).toFixed(f)),a=0===p?100:0===d?0:parseFloat((100-100/(1+d/p)).toFixed(f)),g.push([c[h],a]),l.push(c[h]),r.push(a);return{values:g,xData:l,yData:r}}};f.defaultOptions=p(l.defaultOptions,{params:{decimals:4,index:3}});return f}(l);f.registerSeriesType("rsi",d);"";return d});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
|
|
146
|
+
[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l){var k=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=
|
|
147
|
+
c.prototype,new e)}}(),p=g.seriesTypes.sma,r=l.extend,h=l.isArray,e=l.merge;l=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(b,a);b.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=e({smoothedLine:{styles:{lineColor:this.color}}},this.options)};b.prototype.getValues=function(a,b){var c=b.periods[0];b=b.periods[1];var e=a.xData,d=(a=a.yData)?a.length:0,m=[],k=[],l=[],n=null,
|
|
148
|
+
r;if(!(d<c)&&h(a[0])&&4===a[0].length){for(r=c-1;r<d;r++){var t=a.slice(r-c+1,r+1);var u=f.getArrayExtremes(t,2,1);var p=u[0];t=a[r][3]-p;p=u[1]-p;t=t/p*100;k.push(e[r]);l.push([t,null]);r>=c-1+(b-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-b),yData:l.slice(-b)},{period:b}),n=n.yData[0]);m.push([e[r],t,n]);l[l.length-1][1]=n}return{values:m,xData:k,yData:l}}};b.defaultOptions=e(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},
|
|
149
|
+
smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);r(l.prototype,{nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});d.compose(l);g.registerSeriesType("stochastic",l);"";return l});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
|
|
150
|
+
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.stochastic,k=f.seriesTypes,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=
|
|
151
|
+
void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.periods,e=k.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(e){a.xData=e.xData.slice(c[1]-1);e=e.yData.slice(c[1]-1);var d=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:e},{index:1,period:c[2]});if(d){for(var f=a.xData.length;b<f;b++)a.yData[b]=[e[b][1],d.yData[b-c[2]+1]||null],a.values[b]=[a.xData[b],e[b][1],d.yData[b-c[2]+1]||null];return a}}};e.defaultOptions=r(l.defaultOptions,
|
|
152
|
+
{params:{periods:[14,3,3]}});return e}(l);p(d.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",d);"";return d});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g){function l(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
|
|
153
|
+
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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),p=f.seriesTypes,r=p.atr,h=p.sma,e=d.addEvent,a=d.correctFloat,b=d.isArray;p=d.extend;var c=d.merge,m=d.objectEach;d=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}k(f,d);f.prototype.init=
|
|
154
|
+
function(){var a;h.prototype.init.apply(this,arguments);var b=this,c=e(g,"afterLinkSeries",function(){if(b.options){var e=b.options;a=b.linkedParent.options;e.cropThreshold=a.cropThreshold-(e.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,b=a.options,e=a.linkedParent,d=e?e.points:[],f=a.points,g=a.graph,k=f.length,u=d.length-k;u=0<u?u:0;for(var r={options:{gapSize:b.gapSize}},p={top:[],bottom:[],intersect:[]},w={top:{styles:{lineWidth:b.lineWidth,lineColor:b.fallingTrendColor||
|
|
155
|
+
b.color,dashStyle:b.dashStyle}},bottom:{styles:{lineWidth:b.lineWidth,lineColor:b.risingTrendColor||b.color,dashStyle:b.dashStyle}},intersect:b.changeTrendLine},A,x,C,v,E,G,H,I;k--;)A=f[k],x=f[k-1],C=d[k-1+u],v=d[k-2+u],E=d[k+u],G=d[k+u+1],H=A.options.color,I={x:A.x,plotX:A.plotX,plotY:A.plotY,isNull:!1},!v&&C&&e.yData[C.index-1]&&(v=l(e,C.index-1,3)),!G&&E&&e.yData[E.index+1]&&(G=l(e,E.index+1,3)),!C&&v&&e.yData[v.index+1]?C=l(e,v.index+1,3):!C&&E&&e.yData[E.index-1]&&(C=l(e,E.index-1,3)),A&&C&&
|
|
156
|
+
E&&v&&A.x!==C.x&&(A.x===E.x?(v=C,C=E):A.x===v.x?(C=v,v={close:e.yData[C.index-1][3],x:e.xData[C.index-1]}):G&&A.x===G.x&&(C=G,v=E)),x&&v&&C?(E={x:x.x,plotX:x.plotX,plotY:x.plotY,isNull:!1},A.y>=C.close&&x.y>=v.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):A.y<C.close&&x.y<v.close?(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(c(E,{isNull:!0})),A.y>=C.close&&x.y<v.close?(A.color=H||b.fallingTrendColor||b.color,x.color=
|
|
157
|
+
H||b.risingTrendColor||b.color,p.top.push(I),p.top.push(c(E,{isNull:!0}))):A.y<C.close&&x.y>=v.close&&(A.color=H||b.risingTrendColor||b.color,x.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(A.y>=C.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));m(p,function(b,e){a.points=b;a.options=c(w[e].styles,r);a.graph=a["graph"+e+"Line"];h.prototype.drawGraph.call(a);a["graph"+e+"Line"]=a.graph});
|
|
158
|
+
a.points=f;a.options=b;a.graph=g};f.prototype.getValues=function(c,e){var d=e.period;e=e.multiplier;var f=c.xData,m=c.yData,h=[],g=[],k=[],l=0===d?0:d-1,p=[],w=[],y;if(!(f.length<=d||!b(m[0])||4!==m[0].length||0>d)){c=r.prototype.getValues.call(this,c,{period:d}).yData;for(y=0;y<c.length;y++){var z=m[l+y];var A=m[l+y-1]||[];var x=p[y-1];var v=w[y-1];var G=k[y-1];0===y&&(x=v=G=0);d=a((z[1]+z[2])/2+e*c[y]);var H=a((z[1]+z[2])/2-e*c[y]);p[y]=d<x||A[3]>x?d:x;w[y]=H>v||A[3]<v?H:v;if(G===x&&z[3]<p[y]||
|
|
159
|
+
G===v&&z[3]<w[y])var I=p[y];else if(G===x&&z[3]>p[y]||G===v&&z[3]>w[y])I=w[y];h.push([f[l+y],I]);g.push(f[l+y]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=c(h.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(h);p(d.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
|
|
160
|
+
d);"";return d});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(d){function k(){return null!==
|
|
161
|
+
d&&d.apply(this,arguments)||this}g(k,d);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(d.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g,l,k,
|
|
162
|
+
p){var r=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),h=d.animObject;d=g.noop;var e=l.seriesTypes.sma,a=k.addEvent,b=k.arrayMax,c=k.arrayMin,m=k.correctFloat,w=k.defined,A=k.error,y=k.extend,z=k.isArray,
|
|
163
|
+
v=k.merge,q=Math.abs,n=l.seriesTypes.column.prototype;k=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}r(f,d);f.prototype.init=function(b){var c=this,e,d,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var m=a(p,"afterLinkSeries",function(){c.options&&(e=c.options.params,
|
|
164
|
+
d=c.linkedParent,f=b.get(e.volumeSeriesID),c.addCustomEvents(d,f));m()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function e(){d.chart.redraw();d.setData([]);d.zoneStarts=[];d.zoneLinesSVG&&(d.zoneLinesSVG=d.zoneLinesSVG.destroy())}var d=this;d.dataEventsToUnbind.push(a(b,"remove",function(){e()}));c&&d.dataEventsToUnbind.push(a(c,"remove",function(){e()}));return d};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,e=b.group,d={};!a&&e&&(a=c?b.yAxis.top:b.xAxis.left,
|
|
165
|
+
c?(e["forceAnimate:translateY"]=!0,d.translateY=a):(e["forceAnimate:translateX"]=!0,d.translateX=a),e.animate(d,y(h(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],e=this.options.volumeDivision,
|
|
166
|
+
d=this.points.length,f=[],m=[],h=0,g;a?(this.posWidths=f,this.negWidths=m):(f=this.posWidths,m=this.negWidths);for(;h<d;h++){var k=this.points[h];k[c[0]+"Graphic"]=k.graphic;k.graphic=k[c[1]+"Graphic"];if(a){var n=k.shapeArgs.width;var l=this.priceZones[h];(g=l.wholeVolumeData)?(f.push(n/g*l.positiveVolumeData),m.push(n/g*l.negativeVolumeData)):(f.push(0),m.push(0))}k.color=b?e.styles.positiveColor:e.styles.negativeColor;k.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];k.shapeArgs.x=b?k.shapeArgs.x:
|
|
167
|
+
this.posWidths[h]}};f.prototype.translate=function(){var a=this,c=a.options,e=a.chart,d=a.yAxis,f=d.min,h=a.options.zoneLines,g=a.priceZones,k=0,l,r,t;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>c.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var y=b(c);var z=e.plotWidth/2;var A=e.plotTop;var B=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));var v=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));w&&(f=q(B*(1-2*w)),k=q((B-f)/2),B=q(f));p.forEach(function(b,c){r=b.barX=b.plotX=0;t=b.plotY=d.toPixels(g[c].start)-
|
|
168
|
+
A-(d.reversed?B-v:B)-k;l=m(z*g[c].wholeVolumeData/y);b.pointWidth=l;b.shapeArgs=a.crispCol.apply(a,[r,t,l,B]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(e,d,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,e=a.processedYData,d=this.chart,f=b.ranges,m=[],h=[],g=[],k;if(a.chart)if(k=d.get(b.volumeSeriesID))if((b=z(e[0]))&&4!==e[0].length)A("Type of "+a.name+" series is different than line, OHLC or candlestick.",
|
|
169
|
+
!0,d);else return(this.priceZones=this.specifyZones(b,c,e,f,k)).forEach(function(a,b){m.push([a.x,a.end]);h.push(m[b][0]);g.push(m[b][1])}),{values:m,xData:h,yData:g};else A("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d);else A("Base series not found! In case it has been removed, add a new one.",!0,d)};f.prototype.specifyZones=function(a,e,d,f,h){if(a){var g=d.length;for(var k=d[0][3],n=k,l=1,q;l<g;l++)q=d[l][3],q<k&&(k=q),q>n&&(n=q);g={min:k,max:n}}else g=!1;g=(k=g)?k.min:
|
|
170
|
+
c(d);q=k?k.max:b(d);k=this.zoneStarts=[];n=[];var r=0;l=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(g=t.dataModify.modifyValue(g),q=t.dataModify.modifyValue(q));if(!w(g)||!w(q))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=m(q-g)/f;for(k.push(g);r<f-1;r++)k.push(m(k[r]+t));k.push(q);for(f=k.length;l<f;l++)n.push({index:l-1,x:e[0],start:k[l-1],end:k[l]});return this.volumePerZone(a,
|
|
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
|
+
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
|
+
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"],bindTo:{series:!1,eventName:"afterSetExtremes"},calculateOn:"render",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"],
|
|
175
|
+
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===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,
|
|
176
|
+
arguments)||this;a.data=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]+
|
|
177
|
+
c[h][2]+c[h][3])/3: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"]],
|
|
178
|
+
function(f,d,g){var l=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=
|
|
179
|
+
void 0;a.options=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,
|
|
180
|
+
{nameBase:"Williams %R"});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}||
|
|
181
|
+
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)}}(),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=
|
|
182
|
+
[],p=[],t=-1;if(!(e.length<b)){r(a[0])&&(t=c.index,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"],
|
|
183
|
+
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.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||
|
|
184
|
+
this;e.data=void 0;e.points=void 0;e.options=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);
|
|
185
|
+
if(p){k.push(g[0][0]);l.push(g[0][1]);var L=q++;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,
|
|
186
|
+
{nameComponents:["deviation"],nameSuffixes:["%"],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=
|
|
187
|
+
e}d(e,a);e.prototype=null===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;
|
|
188
|
+
var h=0,g=0,l;for(l=0;l<a.length;l++){var q=a[l]-d;var n=e(b[l],c)-f;h+=q*n;g+=Math.pow(q,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;
|
|
189
|
+
b=b.period;var e,d={xData:[],yData:[],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);
|
|
190
|
+
p(d.prototype,{nameBase:"Linear Regression Indicator"});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,
|
|
191
|
+
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;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",
|
|
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",
|
|
194
|
+
[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.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",
|
|
196
|
+
d);"";return d});v(f,"Stock/Indicators/ABands/ABandsIndicator.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 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):
|
|
197
|
+
(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=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]*
|
|
198
|
+
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)},{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,
|
|
199
|
+
topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);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&&
|
|
200
|
+
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.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;
|
|
201
|
+
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=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});
|
|
202
|
+
f.registerSeriesType("trendline",d);"";return d});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[f["Core/Series/SeriesRegistry.js"],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):
|
|
203
|
+
(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=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,
|
|
204
|
+
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,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},
|
|
205
|
+
dataGrouping:{approximation:"averages"}});return b}(l);r(d.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});f.registerSeriesType("disparityindex",d);"";return d});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
|
|
212
206
|
//# sourceMappingURL=indicators-all.js.map
|