highcharts 9.3.3 → 10.2.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/bower.json +1 -1
- package/css/highcharts.css +19 -2
- package/css/highcharts.scss +17 -2
- package/css/themes/dark-unica.css +19 -2
- package/css/themes/grid-light.css +19 -2
- package/css/themes/sand-signika.css +19 -2
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +3 -4
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +3 -3
- package/es-modules/Accessibility/Components/ContainerComponent.js +11 -10
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +18 -11
- package/es-modules/Accessibility/Components/LegendComponent.js +34 -26
- package/es-modules/Accessibility/Components/MenuComponent.js +7 -6
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +7 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +34 -18
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +96 -39
- package/es-modules/Accessibility/Components/ZoomComponent.js +43 -80
- package/es-modules/Accessibility/FocusBorder.js +6 -5
- package/es-modules/Accessibility/HighContrastMode.js +3 -3
- package/es-modules/Accessibility/KeyboardNavigation.js +113 -98
- package/es-modules/Accessibility/Options/{Options.js → A11yDefaults.js} +72 -4
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -2
- package/es-modules/Accessibility/Options/{LangOptions.js → LangDefaults.js} +46 -31
- package/es-modules/Accessibility/ProxyElement.js +14 -6
- package/es-modules/Accessibility/ProxyProvider.js +10 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +10 -5
- package/es-modules/Core/Animation/Fx.js +1 -1
- package/es-modules/Core/Axis/Axis.js +197 -91
- package/es-modules/Core/Axis/AxisDefaults.js +8 -8
- package/es-modules/Core/Axis/Color/ColorAxis.js +26 -7
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +3 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +5 -3
- package/es-modules/Core/Axis/GridAxis.js +821 -821
- package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +26 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/StackingAxis.js +0 -1
- package/es-modules/Core/Axis/Tick.js +22 -18
- package/es-modules/Core/Axis/TreeGridTick.js +13 -2
- package/es-modules/Core/Axis/ZAxis.js +3 -1
- package/es-modules/Core/Chart/Chart.js +27 -8
- package/es-modules/Core/Chart/Chart3D.js +1 -11
- package/es-modules/Core/Chart/ChartDefaults.js +46 -14
- package/es-modules/Core/Chart/GanttChart.js +3 -1
- package/es-modules/Core/Chart/MapChart.js +4 -7
- package/es-modules/Core/Chart/StockChart.js +7 -5
- package/es-modules/Core/Color/Color.js +1 -1
- package/es-modules/Core/DefaultOptions.js +19 -15
- package/es-modules/Core/Geometry/PolygonClip.js +84 -0
- package/es-modules/Core/Globals.js +4 -18
- package/es-modules/Core/HttpUtilities.js +46 -39
- package/es-modules/Core/Legend/Legend.js +14 -12
- package/es-modules/Core/MSPointer.js +3 -1
- package/es-modules/Core/Navigator.js +16 -13
- package/es-modules/Core/Pointer.js +16 -12
- package/es-modules/Core/Renderer/HTML/AST.js +68 -8
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +3 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +54 -70
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +60 -55
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +4 -2
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +12 -10
- package/es-modules/Core/Scrollbar.js +9 -5
- package/es-modules/Core/ScrollbarDefaults.js +8 -8
- package/es-modules/Core/Series/DataLabel.js +67 -38
- package/es-modules/Core/Series/Point.js +11 -2
- package/es-modules/Core/Series/Series.js +57 -27
- package/es-modules/Core/Series/Series3D.js +3 -1
- package/es-modules/Core/Series/SeriesDefaults.js +7 -4
- package/es-modules/Core/Time.js +6 -7
- package/es-modules/Core/Tooltip.js +17 -34
- package/es-modules/Core/Utilities.js +33 -33
- package/es-modules/Data/DataConverter.js +1 -1
- package/es-modules/Data/DataTable.js +12 -10
- package/es-modules/Data/Modifiers/ChainModifier.js +3 -1
- package/es-modules/Data/Modifiers/GroupModifier.js +3 -1
- package/es-modules/Data/Modifiers/InvertModifier.js +9 -7
- package/es-modules/Data/Modifiers/RangeModifier.js +3 -1
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +3 -1
- package/es-modules/Data/Modifiers/SortModifier.js +3 -1
- package/es-modules/Data/Parsers/CSVParser.js +3 -1
- package/es-modules/Data/Parsers/DataParser.js +1 -1
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +3 -2
- package/es-modules/Data/Parsers/HTMLTableParser.js +3 -1
- package/es-modules/Data/Stores/CSVStore.js +8 -5
- package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
- package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
- package/es-modules/Extensions/Annotations/{Annotations.js → Annotation.js} +30 -11
- package/es-modules/Extensions/Annotations/AnnotationsDefaults.js +0 -0
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +5 -2
- package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +16 -5
- package/es-modules/Extensions/Annotations/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +18 -12
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +5 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +4 -2
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Measure.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +4 -2
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +5 -2
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +4 -2
- package/es-modules/Extensions/Boost/BoostAttach.js +5 -1
- package/es-modules/Extensions/Boost/BoostInit.js +9 -3
- package/es-modules/Extensions/Boost/BoostOptions.js +26 -0
- package/es-modules/Extensions/Boost/Boostables.js +1 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +48 -37
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +11 -5
- package/es-modules/Extensions/Breadcrumbs.js +898 -0
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +661 -613
- package/es-modules/Extensions/DataGrouping.js +8 -3
- package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
- package/es-modules/Extensions/DownloadURL.js +3 -3
- package/es-modules/Extensions/DragPanes.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +9 -7
- package/es-modules/Extensions/Drilldown.js +152 -97
- package/es-modules/Extensions/ExportData.js +58 -9
- package/es-modules/Extensions/Exporting/Exporting.js +34 -23
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +56 -8
- package/es-modules/Extensions/FullScreen.js +121 -54
- package/es-modules/Extensions/GeoJSON.js +149 -125
- package/es-modules/Extensions/MarkerClusters.js +36 -22
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +110 -22
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -2
- package/es-modules/Extensions/OverlappingDataLabels.js +5 -4
- package/es-modules/Extensions/Pane.js +3 -3
- package/es-modules/Extensions/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/PatternFill.js +14 -2
- package/es-modules/Extensions/RangeSelector.js +29 -18
- package/es-modules/Extensions/ScrollablePlotArea.js +8 -4
- package/es-modules/Extensions/{SeriesLabel.js → SeriesLabel/SeriesLabel.js} +262 -384
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +124 -0
- package/es-modules/Extensions/SeriesLabel/SeriesLabelUtilities.js +67 -0
- package/es-modules/Extensions/Sonification/Earcon.js +1 -1
- package/es-modules/Extensions/Stacking.js +5 -4
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
- package/es-modules/Maps/MapNavigation.js +49 -12
- package/es-modules/Maps/MapPointer.js +16 -0
- package/es-modules/Maps/MapUtilities.js +56 -0
- package/es-modules/Maps/MapView.js +619 -137
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +60 -20
- package/es-modules/Maps/Projection.js +182 -88
- package/es-modules/Maps/Projections/EqualEarth.js +15 -6
- package/es-modules/Maps/Projections/LambertConformalConic.js +27 -19
- package/es-modules/Maps/Projections/Miller.js +23 -10
- package/es-modules/Maps/Projections/Orthographic.js +21 -10
- package/es-modules/Maps/Projections/WebMercator.js +25 -13
- package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +79 -0
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +591 -0
- package/es-modules/Series/Area/AreaSeries.js +21 -14
- package/es-modules/Series/AreaRange/AreaRangePoint.js +24 -11
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +154 -147
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +45 -41
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +43 -43
- package/es-modules/Series/Bar/BarSeries.js +3 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +3 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubblePoint.js +3 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +15 -6
- package/es-modules/Series/Bullet/BulletPoint.js +3 -1
- package/es-modules/Series/Bullet/BulletSeries.js +4 -3
- package/es-modules/Series/Candlestick/CandlestickSeries.js +5 -3
- package/es-modules/Series/CenteredUtilities.js +8 -2
- package/es-modules/Series/ColorMapComposition.js +111 -0
- package/es-modules/Series/Column/ColumnSeries.js +10 -7
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +3 -1
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +17 -13
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +60 -57
- package/es-modules/Series/Cylinder/CylinderPoint.js +3 -1
- package/es-modules/Series/Cylinder/CylinderSeries.js +3 -1
- package/es-modules/Series/DataModifyComposition.js +1 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +5 -3
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -1
- package/es-modules/Series/DrawPointUtilities.js +87 -0
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +3 -1
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +4 -2
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +4 -2
- package/es-modules/Series/Flags/FlagsPoint.js +4 -1
- package/es-modules/Series/Flags/FlagsSeries.js +13 -16
- package/es-modules/Series/Funnel/FunnelSeries.js +5 -3
- package/es-modules/Series/Funnel3D/Funnel3DPoint.js +3 -1
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +3 -1
- package/es-modules/Series/Gantt/GanttPoint.js +3 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -1
- package/es-modules/Series/Gauge/GaugePoint.js +3 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +196 -174
- package/es-modules/Series/HLC/HLCPoint.js +3 -1
- package/es-modules/Series/HLC/HLCSeries.js +4 -2
- package/es-modules/Series/Heatmap/HeatmapPoint.js +7 -5
- package/es-modules/Series/Heatmap/HeatmapSeries.js +29 -33
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -1
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +11 -9
- package/es-modules/Series/Item/ItemPoint.js +3 -1
- package/es-modules/Series/Item/ItemSeries.js +3 -1
- package/es-modules/Series/Line/LineSeries.js +4 -2
- package/es-modules/Series/Lollipop/LollipopPoint.js +3 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +4 -2
- package/es-modules/Series/Map/MapPoint.js +32 -7
- package/es-modules/Series/Map/MapSeries.js +298 -189
- package/es-modules/Series/MapBubble/MapBubblePoint.js +19 -25
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +61 -2
- package/es-modules/Series/MapLine/MapLineSeries.js +18 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +6 -10
- package/es-modules/Series/MapPoint/MapPointSeries.js +50 -16
- package/es-modules/Series/Networkgraph/Networkgraph.js +3 -1
- package/es-modules/Series/NodesComposition.js +101 -49
- package/es-modules/Series/OHLC/OHLCPoint.js +3 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +10 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +71 -3
- package/es-modules/Series/Organization/OrganizationSeries.js +84 -28
- package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +0 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +3 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -1
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -1
- package/es-modules/Series/Pie/PieDataLabel.js +4 -2
- package/es-modules/Series/Pie/PiePoint.js +15 -6
- package/es-modules/Series/Pie/PieSeries.js +51 -37
- package/es-modules/Series/Pie3D/Pie3DPoint.js +3 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +22 -1
- package/es-modules/Series/PolarComposition.js +819 -0
- package/es-modules/Series/Polygon/PolygonSeries.js +3 -1
- package/es-modules/Series/Pyramid/PyramidSeries.js +3 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +3 -1
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +193 -0
- package/es-modules/Series/Sankey/SankeyPoint.js +40 -2
- package/es-modules/Series/Sankey/SankeySeries.js +35 -136
- package/es-modules/Series/Scatter/ScatterSeries.js +11 -6
- package/es-modules/Series/Scatter3D/Scatter3DPoint.js +3 -1
- package/es-modules/Series/Scatter3D/Scatter3DSeries.js +3 -1
- package/es-modules/Series/SeriesOnPointComposition.js +391 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +5 -3
- package/es-modules/Series/Spline/SplineSeries.js +13 -4
- package/es-modules/Series/Streamgraph/StreamgraphSeries.js +3 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +3 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +21 -5
- package/es-modules/Series/Tilemap/TilemapPoint.js +3 -1
- package/es-modules/Series/Tilemap/TilemapSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelinePoint.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +6 -4
- package/es-modules/Series/Treemap/TreemapPoint.js +8 -4
- package/es-modules/Series/Treemap/TreemapSeries.js +97 -87
- package/es-modules/Series/VariablePie/VariablePieSeries.js +3 -1
- package/es-modules/Series/Variwide/VariwidePoint.js +3 -1
- package/es-modules/Series/Variwide/VariwideSeries.js +3 -1
- package/es-modules/Series/Vector/VectorSeries.js +3 -1
- package/es-modules/Series/Venn/VennPoint.js +5 -5
- package/es-modules/Series/Venn/VennSeries.js +9 -6
- package/es-modules/Series/Waterfall/WaterfallPoint.js +3 -1
- package/es-modules/Series/Waterfall/WaterfallSeries.js +16 -12
- package/es-modules/Series/Windbarb/WindbarbPoint.js +3 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -1
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +6 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +11 -8
- package/es-modules/Series/XRange/XRangePoint.js +3 -1
- package/es-modules/Series/XRange/XRangeSeries.js +3 -1
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +5 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +3 -1
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +6 -4
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +13 -7
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -1
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +3 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +3 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +26 -13
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +3 -1
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +85 -95
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +3 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +12 -3
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +6 -4
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPPoint.js +3 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +3 -1
- package/es-modules/Stock/StockToolsBindings.js +51 -43
- package/es-modules/Stock/StockToolsGui.js +1 -1
- 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 +4 -4
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +2 -2
- package/es-modules/masters/modules/annotations.src.js +2 -2
- package/es-modules/masters/modules/arc-diagram.src.js +14 -0
- 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 +2 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +2 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +5 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +5 -2
- package/es-modules/masters/modules/series-on-point.src.js +16 -0
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +2 -6
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +5 -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/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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 +99 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +51 -21
- package/highcharts-gantt.js +811 -801
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +2020 -1607
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +194 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +3512 -3364
- package/highcharts.d.ts +12336 -965
- package/highcharts.js +595 -586
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +12336 -965
- package/highcharts.src.js +1047 -665
- package/highmaps.js +763 -728
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +4482 -2639
- package/highstock.js +798 -788
- package/highstock.js.map +1 -1
- package/highstock.src.js +1177 -739
- package/indicators/acceleration-bands.d.ts +1 -17
- package/indicators/acceleration-bands.js +11 -11
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +1 -17
- package/indicators/acceleration-bands.src.js +99 -100
- package/indicators/accumulation-distribution.js +5 -5
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +11 -2
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +13 -4
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +11 -2
- package/indicators/aroon-oscillator.d.ts +1 -17
- package/indicators/aroon-oscillator.js +10 -10
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.d.ts +1 -17
- package/indicators/aroon-oscillator.src.js +99 -100
- package/indicators/aroon.d.ts +1 -17
- package/indicators/aroon.js +11 -11
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.d.ts +1 -17
- package/indicators/aroon.src.js +99 -100
- package/indicators/atr.js +5 -5
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +11 -2
- package/indicators/bollinger-bands.d.ts +1 -17
- package/indicators/bollinger-bands.js +11 -12
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.d.ts +1 -17
- package/indicators/bollinger-bands.src.js +102 -103
- package/indicators/cci.js +5 -5
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +11 -2
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +11 -2
- package/indicators/cmf.js +6 -6
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +11 -2
- package/indicators/cmo.js +5 -5
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +11 -2
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +11 -2
- package/indicators/disparity-index.js +6 -6
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +11 -2
- package/indicators/dmi.js +12 -12
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +109 -106
- package/indicators/dpo.js +5 -5
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +11 -2
- package/indicators/ema.js +2 -1
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +10 -1
- package/indicators/ichimoku-kinko-hyo.js +16 -16
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +11 -2
- package/indicators/indicators-all.d.ts +1 -17
- package/indicators/indicators-all.js +198 -196
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +1 -17
- package/indicators/indicators-all.src.js +151 -129
- package/indicators/indicators.js +13 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +21 -5
- package/indicators/keltner-channels.d.ts +1 -17
- package/indicators/keltner-channels.js +11 -11
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +1 -17
- package/indicators/keltner-channels.src.js +99 -100
- package/indicators/klinger.js +14 -14
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +99 -100
- package/indicators/macd.js +13 -11
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +35 -14
- package/indicators/mfi.js +6 -6
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +11 -2
- package/indicators/momentum.js +5 -5
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +11 -2
- package/indicators/natr.js +5 -4
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +11 -2
- package/indicators/obv.js +5 -5
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -2
- package/indicators/pivot-points.js +11 -11
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +11 -2
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +11 -2
- package/indicators/price-channel.d.ts +1 -17
- package/indicators/price-channel.js +11 -11
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.d.ts +1 -17
- package/indicators/price-channel.src.js +99 -100
- package/indicators/price-envelopes.js +8 -8
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +11 -2
- package/indicators/psar.js +7 -6
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +11 -2
- package/indicators/regressions.js +12 -12
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +11 -2
- package/indicators/roc.js +5 -5
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +11 -2
- package/indicators/rsi.js +6 -5
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +11 -2
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +11 -2
- package/indicators/stochastic.d.ts +1 -17
- package/indicators/stochastic.js +12 -12
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.d.ts +1 -17
- package/indicators/stochastic.src.js +99 -100
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +14 -5
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +11 -2
- package/indicators/trendline.js +5 -5
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +11 -2
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +11 -2
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +11 -2
- package/indicators/vwap.js +5 -5
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +11 -2
- package/indicators/williams-r.js +6 -5
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -2
- package/indicators/wma.js +5 -5
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +11 -2
- package/indicators/zigzag.js +6 -6
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +11 -2
- package/lib/jspdf.js +299 -184
- package/lib/jspdf.src.js +25266 -18067
- package/lib/svg2pdf.js +35 -31
- package/lib/svg2pdf.src.js +5721 -4179
- package/modules/accessibility.js +242 -237
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +599 -390
- package/modules/annotations-advanced.js +192 -192
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +96 -47
- package/modules/annotations.js +126 -126
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +67 -25
- package/modules/arc-diagram.js +25 -0
- package/modules/arc-diagram.js.map +1 -0
- package/modules/arc-diagram.src.js +778 -0
- package/modules/arrow-symbols.js +4 -3
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +11 -2
- package/modules/boost-canvas.js +16 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +22 -7
- package/modules/boost.js +81 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +90 -51
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +11 -2
- package/modules/bullet.js +9 -9
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +12 -6
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +37 -11
- package/modules/current-date-indicator.js +5 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +12 -3
- package/modules/cylinder.js +11 -11
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +11 -2
- package/modules/data.d.ts +12 -12
- package/modules/data.js +33 -33
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +12 -12
- package/modules/data.src.js +906 -846
- package/modules/datagrouping.js +21 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +19 -5
- package/modules/debugger.js +8 -7
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +15 -2
- package/modules/dependency-wheel.js +12 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +14 -5
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +11 -2
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +12 -3
- package/modules/draggable-points.js +35 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +20 -9
- package/modules/drilldown.d.ts +19 -0
- package/modules/drilldown.js +37 -25
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +19 -0
- package/modules/drilldown.src.js +1124 -108
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +34 -13
- package/modules/export-data.js +24 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +87 -14
- package/modules/exporting.d.ts +8 -8
- package/modules/exporting.js +39 -39
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +8 -8
- package/modules/exporting.src.js +270 -135
- package/modules/full-screen.js +8 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +135 -58
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +13 -4
- package/modules/funnel3d.js +21 -21
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -2
- package/modules/gantt.js +218 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +983 -943
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +900 -890
- package/modules/heatmap.js +40 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +160 -113
- package/modules/heikinashi.js +8 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +11 -2
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +11 -2
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +19 -10
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +11 -2
- package/modules/lollipop.js +7 -7
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +12 -3
- package/modules/map.d.ts +80 -43
- package/modules/map.js +171 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +80 -43
- package/modules/map.src.js +8292 -6822
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +48 -28
- package/modules/networkgraph.d.ts +1 -12
- package/modules/networkgraph.js +46 -45
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +1 -12
- package/modules/networkgraph.src.js +127 -55
- 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 +12 -3
- package/modules/offline-exporting.js +20 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +129 -28
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +11 -2
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +13 -4
- package/modules/organization.js +16 -14
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +168 -34
- package/modules/overlapping-datalabels.js +3 -2
- package/modules/overlapping-datalabels.js.map +1 -1
- package/modules/overlapping-datalabels.src.js +11 -2
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +12 -3
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +11 -2
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +11 -2
- package/modules/pattern-fill.js +15 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -3
- package/modules/price-indicator.js +5 -5
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +11 -2
- package/modules/pyramid3d.js +4 -4
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +11 -2
- package/modules/sankey.d.ts +1 -12
- package/modules/sankey.js +32 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +1 -12
- package/modules/sankey.src.js +422 -207
- package/modules/series-label.js +18 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +482 -386
- package/modules/series-on-point.js +18 -0
- package/modules/series-on-point.js.map +1 -0
- package/modules/series-on-point.src.js +464 -0
- package/modules/solid-gauge.js +10 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +15 -6
- package/modules/sonification.js +59 -59
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +13 -8
- package/modules/static-scale.js +5 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +11 -2
- package/modules/stock-tools.js +167 -167
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +118 -67
- package/modules/stock.js +205 -204
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +141 -76
- package/modules/streamgraph.js +5 -4
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +11 -2
- package/modules/sunburst.d.ts +3 -0
- package/modules/sunburst.js +73 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.d.ts +3 -0
- package/modules/sunburst.src.js +1391 -406
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +11 -2
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +14 -5
- package/modules/treegrid.js +57 -56
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +913 -892
- package/modules/treemap.d.ts +3 -0
- package/modules/treemap.js +54 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.d.ts +3 -0
- package/modules/treemap.src.js +1229 -255
- package/modules/variable-pie.js +9 -9
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +11 -2
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +11 -2
- package/modules/vector.js +8 -7
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +11 -2
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +88 -105
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -2
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +92 -109
- package/modules/xrange.js +16 -16
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -2
- package/package.json +1 -1
- package/themes/avocado.js +4 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +11 -2
- package/themes/brand-dark.js +9 -8
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.js +11 -2
- package/themes/brand-light.js +8 -8
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.js +11 -2
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +11 -2
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +11 -2
- package/themes/dark-unica.js +8 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +11 -2
- package/themes/gray.js +9 -8
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +11 -2
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +11 -2
- package/themes/grid.js +5 -5
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +11 -2
- package/themes/high-contrast-dark.js +7 -7
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +21 -12
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +21 -12
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +11 -2
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +11 -2
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +11 -2
- package/es-modules/Extensions/Polar.js +0 -740
- package/es-modules/Maps/ProjectionDefinition.js +0 -9
- package/es-modules/Series/ColorMapMixin.js +0 -84
- package/es-modules/Series/DrawPointComposition.js +0 -111
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highstock JS
|
|
2
|
+
Highstock JS v10.2.0 (2022-07-05)
|
|
3
3
|
|
|
4
4
|
All technical indicators for Highcharts Stock
|
|
5
5
|
|
|
@@ -7,201 +7,203 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
f["Core/Utilities.js"]],function(f,e){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,
|
|
12
|
-
(
|
|
13
|
-
[]).forEach(function(
|
|
14
|
-
xData:e,yData:
|
|
15
|
-
a.calculateOn.chart,function(){a.recalculateValues();
|
|
16
|
-
this.xAxis.max}
|
|
17
|
-
this.isDirty=!0,this.redraw());this.isDirtyData=!1};
|
|
18
|
-
nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});e.registerSeriesType("sma",
|
|
19
|
-
d}
|
|
20
|
-
k+d*(1-
|
|
21
|
-
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var
|
|
22
|
-
null!==
|
|
23
|
-
h[a-1][1]),
|
|
24
|
-
this&&this.__extends||function(){var
|
|
25
|
-
arguments)||this;
|
|
26
|
-
c[A][2])/2;29<=A&&(
|
|
27
|
-
{nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:
|
|
28
|
-
|
|
29
|
-
plotY:
|
|
30
|
-
|
|
31
|
-
return c}function
|
|
32
|
-
|
|
33
|
-
function(){var a=function(b
|
|
34
|
-
|
|
35
|
-
aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return
|
|
36
|
-
function(){var d=function(a,
|
|
37
|
-
void 0;return a}
|
|
38
|
-
pointValKey:"y"});f.compose(
|
|
39
|
-
(a
|
|
40
|
-
4===a[0].length){for(n=1;n<=
|
|
41
|
-
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,
|
|
42
|
-
null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}
|
|
43
|
-
a.slice(n-
|
|
44
|
-
marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(
|
|
45
|
-
var
|
|
46
|
-
a.options=void 0;return a}
|
|
47
|
-
t(
|
|
48
|
-
f.prototype=null===
|
|
49
|
-
4===a.yData[0].length;return!!(a&&
|
|
50
|
-
c(d[n],a[n]),e+=a[n],B+=
|
|
51
|
-
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,
|
|
52
|
-
h=function(a){function
|
|
53
|
-
a[2],
|
|
54
|
-
q,!0),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
b.
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
a,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
b.
|
|
82
|
-
b["
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
b=b.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
period
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"Stock/Indicators/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
{__proto__:[]}instanceof Array&&function(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
1.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
c.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
e)
|
|
152
|
-
void 0;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
l
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
y
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
e=
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
10
|
+
(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,e,g,l){f.hasOwnProperty(e)||(f[e]=l.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:f[e]}})))}
|
|
11
|
+
f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var b=function(c,a){b=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 b(c,
|
|
12
|
+
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)}}(),k=e.seriesTypes.line,p=g.addEvent,t=g.error,h=g.extend,d=g.isArray,a=g.merge,c=g.pick,b=g.splat;g=function(m){function x(){var b=null!==m&&m.apply(this,arguments)||this;b.data=void 0;b.dataEventsToUnbind=void 0;b.linkedParent=void 0;b.options=void 0;b.points=void 0;return b}l(x,m);x.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(b){b()});
|
|
13
|
+
m.prototype.destroy.apply(this,arguments)};x.prototype.getName=function(){var b=this.name,a=[];b||((this.nameComponents||[]).forEach(function(b,m){a.push(this.options.params[b]+c(this.nameSuffixes[m],""))},this),b=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return b};x.prototype.getValues=function(b,c){var a=c.period,m=b.xData;b=b.yData;var x=b.length,z=0,B=0,h=[],e=[],g=[],f=-1;if(!(m.length<a)){for(d(b[0])&&(f=c.index?c.index:0);z<a-1;)B+=0>f?b[z]:b[z][f],
|
|
14
|
+
z++;for(c=z;c<x;c++){B+=0>f?b[c]:b[c][f];var t=[m[c],B/a];h.push(t);e.push(t[0]);g.push(t[1]);B-=0>f?b[c-z]:b[c-z][f]}return{values:h,xData:e,yData:g}}};x.prototype.init=function(b,c){var a=this;m.prototype.init.call(a,b,c);c=p(f,"afterLinkSeries",function(){var c=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(c||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,
|
|
15
|
+
function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!c)var m=p(a.chart,a.calculateOn.chart,function(){a.recalculateValues();m()})}else return t("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,b)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(c)};x.prototype.recalculateValues=function(){var a=this.points||[],c=(this.xData||[]).length,m={values:[],xData:[],yData:[]},d=[],x=!0;m=this.linkedParent.options?this.getValues(this.linkedParent,
|
|
16
|
+
this.options.params)||m:m;if(c&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var n=this.xAxis.min;var h=this.xAxis.max}c=this.cropData(m.xData,m.yData,n,h);for(n=0;n<c.xData.length;n++)d.push([c.xData[n]].concat(b(c.yData[n])));c=m.xData.indexOf(this.xData[0]);n=m.xData.indexOf(this.xData[this.xData.length-1]);-1===c&&n===m.xData.length-2&&d[0][0]===a[0].x&&d.shift();this.updateData(d)}else m.xData.length!==c-1&&m.xData.length!==c+1&&(x=!1,this.updateData(m.values));
|
|
17
|
+
x&&(this.xData=m.xData,this.yData=m.yData,this.options.data=m.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!1};x.prototype.processData=function(){var b=this.options.compareToMain,c=this.linkedParent;m.prototype.processData.apply(this,arguments);this.dataModify&&c&&c.dataModify&&c.dataModify.compareValue&&b&&(this.dataModify.compareValue=c.dataModify.compareValue)};x.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},
|
|
18
|
+
linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return x}(k);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});e.registerSeriesType("sma",g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=
|
|
19
|
+
b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return h(d,a)};return function(d,a){function c(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.accumulatePeriodPoints=function(a,c,b){for(var m=0,d=0,z;d<a;)z=0>c?b[d]:b[d][c],
|
|
20
|
+
m+=z,d++;return m};d.prototype.calculateEma=function(a,c,b,m,d,z,h){a=a[b-1];c=0>z?c[b-1]:c[b-1][z];m="undefined"===typeof d?h:k(c*m+d*(1-m));return[a,m]};d.prototype.getValues=function(a,c){var b=c.period,m=a.xData,d=(a=a.yData)?a.length:0,z=2/(b+1),h=[],e=[],g=[],q=-1;if(!(d<b)){p(a[0])&&(q=c.index?c.index:0);c=this.accumulatePeriodPoints(b,q,a);for(c/=b;b<d+1;b++){var n=this.calculateEma(m,a,b,z,n,q,c);h.push(n);e.push(n[0]);g.push(n[1]);n=n[1]}return{values:h,xData:e,yData:g}}};d.defaultOptions=
|
|
21
|
+
t(l.defaultOptions,{params:{index:3,period:9}});return d}(l);f.registerSeriesType("ema",e);"";return e});v(f,"Stock/Indicators/AD/ADIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function c(){this.constructor=d}h(d,
|
|
22
|
+
a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.error,p=e.extend,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.populateAverage=function(a,c,b,m,d){d=c[m][1];var x=c[m][2];c=c[m][3];b=b[m];return[a[m],c===d&&c===x||d===x?0:(2*c-x-d)/(d-x)*b]};d.prototype.getValues=function(a,c){var b=c.period,m=a.xData,x=a.yData,z=c.volumeSeriesID,h=a.chart.get(z);
|
|
23
|
+
c=h&&h.yData;var e=x?x.length:0,g=[],q=[],n=[];if(!(m.length<=b&&e&&4!==x[0].length)){if(h){for(z=b;z<e;z++)a=g.length,h=d.populateAverage(m,x,c,z,b),0<a&&(h[1]+=g[a-1][1]),g.push(h),q.push(h[0]),n.push(h[1]);return{values:g,xData:q,yData:n}}k("Series "+z+" not found! Check `volumeSeriesID`.",!0,a.chart)}};d.defaultOptions=t(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return d}(l);p(e.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",
|
|
24
|
+
e);"";return e});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return c(b,a)};return function(b,a){function m(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(m.prototype=a.prototype,
|
|
25
|
+
new m)}}();f=f.noop;var k=e.seriesTypes,p=k.sma;k=k.column;var t=g.extend,h=g.merge,d=g.correctFloat,a=g.isArray;g=function(c){function b(){var b=null!==c&&c.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}l(b,c);b.prototype.drawGraph=function(){var b=this.options,a=this.points,c=b.greaterBarColor;b=b.lowerBarColor;var d=a[0];if(!this.userOptions.color&&d)for(d.color=c,d=1;d<a.length;d++)a[d].color=a[d].y>a[d-1].y?c:a[d].y<a[d-1].y?b:a[d-1].color};b.prototype.getValues=
|
|
26
|
+
function(b){var c=b.xData||[];b=b.yData||[];var m=b.length,h=[],e=[],g=[],q=0,n=0,A;if(!(34>=c.length)&&a(b[0])&&4===b[0].length){for(A=0;33>A;A++){var r=(b[A][1]+b[A][2])/2;29<=A&&(q=d(q+r));n=d(n+r)}for(A=33;A<m;A++){r=(b[A][1]+b[A][2])/2;q=d(q+r);n=d(n+r);r=q/5;var u=n/34;r=d(r-u);h.push([c[A],r]);e.push(c[A]);g.push(r);r=A+1-5;u=A+1-34;q=d(q-(b[r][1]+b[r][2])/2);n=d(n-(b[u][1]+b[u][2])/2)}return{values:h,xData:e,yData:g}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},
|
|
27
|
+
greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return b}(p);t(g.prototype,{nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});e.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
28
|
+
function(f,e){var g=f.seriesTypes.sma.prototype,l=e.defined,k=e.error,p=e.merge,t;(function(h){function d(b){return"plot"+b.charAt(0).toUpperCase()+b.slice(1)}function a(b,a){var c=[];(b.pointArrayMap||[]).forEach(function(b){b!==a&&c.push(d(b))});return c}function c(){var b=this,c=b.linesApiNames,m=b.areaLinesNames,x=b.points,h=b.options,z=b.graph,e={options:{gapSize:h.gapSize}},B=[],w=a(b,b.pointValKey),f=x.length,N;w.forEach(function(b,a){for(B[a]=[];f--;)N=x[f],B[a].push({x:N.x,plotX:N.plotX,
|
|
29
|
+
plotY:N[b],isNull:!l(N[b])});f=x.length});if(b.userOptions.fillColor&&m.length){var t=w.indexOf(d(m[0]));t=B[t];m=1===m.length?x:B[w.indexOf(d(m[1]))];w=b.color;b.points=m;b.nextPoints=t;b.color=b.userOptions.fillColor;b.options=p(x,e);b.graph=b.area;b.fillGraph=!0;g.drawGraph.call(b);b.area=b.graph;delete b.nextPoints;delete b.fillGraph;b.color=w}c.forEach(function(a,c){B[c]?(b.points=B[c],h[a]?b.options=p(h[a].styles,e):k('Error: "There is no '+a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),
|
|
30
|
+
b.graph=b["graph"+a],g.drawGraph.call(b),b["graph"+a]=b.graph):k('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});b.points=x;b.options=h;b.graph=z;g.drawGraph.call(b)}function b(b){var a,c=[];b=b||this.points;if(this.fillGraph&&this.nextPoints){if((a=g.getGraphPath.call(this,this.nextPoints))&&a.length){a[0][0]="L";c=g.getGraphPath.call(this,b);a=a.slice(0,c.length);for(var m=a.length-1;0<=m;m--)c.push(a[m])}}else c=g.getGraphPath.apply(this,
|
|
31
|
+
arguments);return c}function m(b){var a=[];(this.pointArrayMap||[]).forEach(function(c){a.push(b[c])});return a}function x(){var b=this,c=this.pointArrayMap,m=[],d;m=a(this);g.translate.apply(this,arguments);this.points.forEach(function(a){c.forEach(function(c,x){d=a[c];b.dataModify&&(d=b.dataModify.modifyValue(d));null!==d&&(a[m[x]]=b.yAxis.toPixels(d,!0))})})}var z=[],e=["bottomLine"],w=["top","bottom"],f=["top"];h.compose=function(a){if(-1===z.indexOf(a)){z.push(a);var d=a.prototype;d.linesApiNames=
|
|
32
|
+
d.linesApiNames||e.slice();d.pointArrayMap=d.pointArrayMap||w.slice();d.pointValKey=d.pointValKey||"top";d.areaLinesNames=d.areaLinesNames||f.slice();d.drawGraph=c;d.getGraphPath=b;d.toYData=m;d.translate=x}return a}})(t||(t={}));return t});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){function l(a,c){var b=a[0],m=0,d;for(d=1;d<a.length;d++)if("max"===c&&a[d]>=b||"min"===
|
|
33
|
+
c&&a[d]<=b)b=a[d],m=d;return m}var k=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return a(c,b)};return function(c,b){function m(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),p=e.seriesTypes.sma,t=g.extend,h=g.merge,d=g.pick;g=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||
|
|
34
|
+
this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(c,a);c.prototype.getValues=function(b,a){a=a.period;var c=b.xData,m=(b=b.yData)?b.length:0,h=[],e=[],g=[],q;for(q=a-1;q<m;q++){var n=b.slice(q-a+1,q+2);var A=l(n.map(function(b){return d(b[2],b)}),"min");n=l(n.map(function(b){return d(b[1],b)}),"max");n=n/a*100;A=A/a*100;c[q+1]&&(h.push([c[q+1],n,A]),e.push(c[q+1]),g.push([n,A]))}return{values:h,xData:e,yData:g}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},
|
|
35
|
+
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 c}(p);t(g.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);e.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",
|
|
36
|
+
[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=e.seriesTypes.aroon,
|
|
37
|
+
p=g.extend,t=g.merge,h=e.seriesTypes.aroon;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,b){var c=[],d=[],z=[];a=h.prototype.getValues.call(this,a,b);for(b=0;b<a.yData.length;b++){var e=a.yData[b][0];var w=a.yData[b][1];e-=w;c.push([a.xData[b],e]);d.push(a.xData[b]);z.push(e)}return{values:c,xData:d,yData:z}};a.defaultOptions=t(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});
|
|
38
|
+
return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);e.registerSeriesType("aroonoscillator",g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h,d){return Math.max(h[1]-h[2],"undefined"===typeof d?0:Math.abs(h[1]-d[3]),"undefined"===typeof d?0:Math.abs(h[2]-d[3]))}var l=this&&this.__extends||function(){var h=function(d,a){h=Object.setPrototypeOf||
|
|
39
|
+
{__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 h(d,a)};return function(d,a){function c(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(d,h);d.prototype.getValues=function(a,c){c=c.period;var b=
|
|
40
|
+
a.xData,m=(a=a.yData)?a.length:0,d=1,h=0,e=0,w=[],f=[],q=[],n;var A=[[b[0],a[0]]];if(!(b.length<=c)&&p(a[0])&&4===a[0].length){for(n=1;n<=m;n++)if(A.push([b[n],a[n]]),c<d){var r=c;var u=b[n-1],t=g(a[n-1],a[n-2]);r=[u,(h*(r-1)+t)/r];h=r[1];w.push(r);f.push(r[0]);q.push(r[1])}else c===d?(h=e/(n-1),w.push([b[n-1],h]),f.push(b[n-1]),q.push(h)):e+=g(a[n-1],a[n-2]),d++;return{values:w,xData:f,yData:q}}};d.defaultOptions=t(k.defaultOptions,{params:{index:void 0}});return d}(k);f.registerSeriesType("atr",
|
|
41
|
+
e);"";return e});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):
|
|
42
|
+
(b.prototype=c.prototype,new b)}}(),k=e.seriesTypes.sma,p=g.extend,t=g.isArray,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.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,b){var c=b.period,d=b.standardDeviation,h=a.xData,
|
|
43
|
+
B=(a=a.yData)?a.length:0,w=[],f=[],q=[],n;if(!(h.length<c)){var A=t(a[0]);for(n=c;n<=B;n++){var r=h.slice(n-c,n);var u=a.slice(n-c,n);var g=e.seriesTypes.sma.prototype.getValues.call(this,{xData:r,yData:u},b);r=g.xData[0];g=g.yData[0];for(var l=0,k=u.length,p=0;p<k;p++){var y=(A?u[p][b.index]:u[p])-g;l+=y*y}y=Math.sqrt(l/(k-1));u=g+d*y;y=g-d*y;w.push([r,u,g,y]);f.push(r);q.push([u,g,y])}return{values:w,xData:f,yData:q}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,standardDeviation:2,index:3},
|
|
44
|
+
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,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","standardDeviation"],pointArrayMap:["top","middle",
|
|
45
|
+
"bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(h){return h.reduce(function(d,a){return d+a},0)}var l=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,
|
|
46
|
+
a){function c(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(d,h);d.prototype.getValues=function(a,c){c=c.period;var b=a.xData,m=(a=a.yData)?a.length:0,d=[],h=1,e=[],w=[],f=[];if(!(b.length<=c)&&p(a[0])&&4===a[0].length){for(;h<c;){var q=a[h-1];d.push((q[1]+q[2]+q[3])/3);h++}for(h=
|
|
47
|
+
c;h<=m;h++){q=a[h-1];q=(q[1]+q[2]+q[3])/3;var n=d.push(q);var A=d.slice(n-c);n=g(A)/c;var r,u=A.length,t=0;for(r=0;r<u;r++)t+=Math.abs(n-A[r]);A=t/c;q=(q-n)/(.015*A);e.push([b[h-1],q]);w.push(b[h-1]);f.push(q)}return{values:e,xData:w,yData:f}}};d.defaultOptions=t(k.defaultOptions,{params:{index:void 0}});return d}(k);f.registerSeriesType("cci",e);"";return e});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||
|
|
48
|
+
function(){var e=function(f,h){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var c in a)a.hasOwnProperty(c)&&(d[c]=a[c])};return e(f,h)};return function(f,h){function d(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),l=f.seriesTypes.sma,k=e.merge;e=function(e){function f(){var h=null!==e&&e.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;h.volumeSeries=void 0;
|
|
49
|
+
h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,e);f.prototype.isValid=function(){var h=this.chart,d=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(d.params.volumeSeriesID));var c=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=d.params.period&&h.xData&&h.xData.length>=d.params.period&&c)};f.prototype.getValues=function(h,d){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,
|
|
50
|
+
d.period)};f.prototype.getMoneyFlow=function(h,d,a,c){function b(b,a){var c=b[1],m=b[2];b=b[3];return null!==a&&null!==c&&null!==m&&null!==b&&c!==m?(b-m-(c-b))/(c-m)*a:(A=n,null)}var m=d.length,x=[],e=0,B=0,w=[],f=[],q=[],n,A=-1;if(0<c&&c<=m){for(n=0;n<c;n++)x[n]=b(d[n],a[n]),e+=a[n],B+=x[n];w.push(h[n-1]);f.push(n-A>=c&&0!==e?B/e:null);for(q.push([w[0],f[0]]);n<m;n++){x[n]=b(d[n],a[n]);e-=a[n-c];e+=a[n];B-=x[n-c];B+=x[n];var r=[h[n],n-A>=c?B/e:null];w.push(r[0]);f.push(r[1]);q.push([r[0],r[1]])}}return{values:q,
|
|
51
|
+
xData:w,yData:f}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(l);f.registerSeriesType("cmf",e);"";return e});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&
|
|
52
|
+
(b[c]=a[c])};return a(c,b)};return function(c,b){function m(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.isArray,d=g.merge;g=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;return b}l(c,a);c.prototype.calculateDM=function(b,a,c){var m=b[a][1],d=b[a][2],x=b[a-1][1];b=b[a-1][2];return p(m-x>b-d?c?Math.max(m-x,0):0:c?0:Math.max(b-d,0))};c.prototype.calculateDI=
|
|
53
|
+
function(a,c){return a/c*100};c.prototype.calculateDX=function(a,c){return p(Math.abs(a-c)/Math.abs(a+c)*100)};c.prototype.smoothValues=function(a,c,d){return p(a-a/d+c)};c.prototype.getTR=function(a,c){return p(Math.max(a[1]-a[2],c?Math.abs(a[1]-c[3]):0,c?Math.abs(a[2]-c[3]):0))};c.prototype.getValues=function(a,c){c=c.period;var b=a.xData,m=(a=a.yData)?a.length:0,d=[],e=[],f=[];if(!(b.length<=c)&&h(a[0])&&4===a[0].length){var q=0,n=0,A=0,r;for(r=1;r<m;r++)if(r<=c){var u=this.calculateDM(a,r,!0);
|
|
54
|
+
var g=this.calculateDM(a,r);var l=this.getTR(a[r],a[r-1]);q+=u;n+=g;A+=l;r===c&&(l=this.calculateDI(q,A),g=this.calculateDI(n,A),u=this.calculateDX(q,n),d.push([b[r],u,l,g]),e.push(b[r]),f.push([u,l,g]))}else u=this.calculateDM(a,r,!0),g=this.calculateDM(a,r),l=this.getTR(a[r],a[r-1]),q=this.smoothValues(q,u,c),n=this.smoothValues(n,g,c),A=this.smoothValues(A,l,c),l=this.calculateDI(q,A),g=this.calculateDI(n,A),u=this.calculateDX(q,n),d.push([b[r],u,l,g]),e.push(b[r]),f.push([u,l,g]);return{values:d,
|
|
55
|
+
xData:e,yData:f}}};c.defaultOptions=d(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/>'},plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},
|
|
56
|
+
minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return c}(k);t(g.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);e.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(a,c,b,m,x){c=d(c[b][m],
|
|
57
|
+
c[b]);return x?h(a-c):h(a+c)}var l=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function m(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),k=f.seriesTypes.sma,p=e.extend,t=e.merge,h=e.correctFloat,d=e.pick;e=function(a){function c(){var b=null!==a&&a.apply(this,
|
|
58
|
+
arguments)||this;b.options=void 0;b.data=void 0;b.points=void 0;return b}l(c,a);c.prototype.getValues=function(a,c){var b=c.period;c=c.index;var m=b+Math.floor(b/2+1),h=a.xData||[];a=a.yData||[];var e=a.length,f=[],q=[],n=[],A=0,r,u;if(!(h.length<=m)){for(r=0;r<b-1;r++)A=g(A,a,r,c);for(u=0;u<=e-m;u++){var l=u+b-1;r=u+m-1;A=g(A,a,l,c);l=d(a[r][c],a[r]);l-=A/b;A=g(A,a,u,c,!0);f.push([h[r],l]);q.push(h[r]);n.push(l)}return{values:f,xData:q,yData:n}}};c.defaultOptions=t(k.defaultOptions,{params:{index:0,
|
|
59
|
+
period:21}});return c}(k);p(e.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",e);"";return e});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function m(){this.constructor=
|
|
60
|
+
c}a(c,b);c.prototype=null===b?Object.create(b):(m.prototype=b.prototype,new m)}}(),l=f.seriesTypes,k=l.ad,p=l.ema,t=e.correctFloat;l=e.extend;var h=e.merge,d=e.error;e=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(c,a);c.prototype.getValues=function(a,c){var b=c.periods,m=c.period,h=[],e=[],f=[],q;if(2!==b.length||b[1]<=b[0])d('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
|
|
61
|
+
else if(c=k.prototype.getValues.call(this,a,{volumeSeriesID:c.volumeSeriesID,period:m}))if(a=p.prototype.getValues.call(this,c,{period:b[0]}),c=p.prototype.getValues.call(this,c,{period:b[1]}),a&&c){b=b[1]-b[0];for(q=0;q<c.yData.length;q++)m=t(a.yData[q+b]-c.yData[q]),h.push([c.xData[q],m]),e.push(c.xData[q]),f.push(m);return{values:h,xData:e,yData:f}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return c}(p);l(e.prototype,{nameBase:"Chaikin Osc",
|
|
62
|
+
nameComponents:["periods"]});f.registerSeriesType("chaikin",e);"";return e});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(h,d){e=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 e(h,d)};return function(h,d){function a(){this.constructor=h}e(h,d);h.prototype=null===d?Object.create(d):
|
|
63
|
+
(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.sma,k=e.isNumber,p=e.merge;e=function(e){function h(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(h,e);h.prototype.getValues=function(d,a){var c=a.period,b=d.xData,m=d.yData;d=m?m.length:0;var h=[],e=[],f=[],w,g=a.index;if(!(b.length<c)){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(w=c;0<w;w--)a[w]>a[w-1]?m+=a[w]-a[w-1]:a[w]<a[w-1]&&(n+=a[w-
|
|
64
|
+
1]-a[w]);q=0<m+n?100*(m-n)/(m+n):0;e.push(b[c]);f.push(q);h.push([b[c],q]);for(w=c+1;w<d;w++)q=Math.abs(a[w-c-1]-a[w-c]),a[w]>a[w-1]?m+=a[w]-a[w-1]:a[w]<a[w-1]&&(n+=a[w-1]-a[w]),a[w-c]>a[w-c-1]?m-=q:n-=q,q=0<m+n?100*(m-n)/(m+n):0,e.push(b[w]),f.push(q),h.push([b[w],q]);return{values:h,xData:e,yData:f}}};h.defaultOptions=p(l.defaultOptions,{params:{period:20,index:3}});return h}(l);f.registerSeriesType("cmo",e);"";return e});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
|
|
65
|
+
f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=function(d,a){h=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 h(d,a)};return function(d,a){function c(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.ema,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,
|
|
66
|
+
arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,h);d.prototype.getEMA=function(a,c,b,m,d,h){return l.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,this.EMApercent,c,"undefined"===typeof m?-1:m,b)};d.prototype.getValues=function(a,c){var b=c.period,m=2*b,d=a.xData,h=(a=a.yData)?a.length:0,e=-1,f=[],g=[],q=[],n=0,A=[],r;this.EMApercent=2/(b+1);if(!(h<2*b-1)){p(a[0])&&(e=c.index?c.index:0);c=l.prototype.accumulatePeriodPoints(b,e,a);var u=
|
|
67
|
+
c/b;c=0;for(r=b;r<h+2;r++){r<h+1&&(n=this.getEMA(a,t,u,e,r)[1],A.push(n));var t=n;if(r<m)c+=n;else{r===m&&(u=c/b);n=A[r-b-1];var J=this.getEMA([n],J,u)[1];var y=[d[r-2],k(2*n-J)];f.push(y);g.push(y[0]);q.push(y[1])}}return{values:f,xData:g,yData:q}}};d.defaultOptions=t(l.defaultOptions);return d}(l);f.registerSeriesType("dema",e);"";return e});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var h=
|
|
68
|
+
function(d,a){h=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 h(d,a)};return function(d,a){function c(){this.constructor=d}h(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.ema,k=e.correctFloat,p=e.isArray,t=e.merge;e=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
|
|
69
|
+
void 0;return a}g(d,h);d.prototype.getEMA=function(a,c,b,m,d,h){return l.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,this.EMApercent,c,"undefined"===typeof m?-1:m,b)};d.prototype.getTemaPoint=function(a,c,b,m){return[a[m-3],k(3*b.level1-3*b.level2+b.level3)]};d.prototype.getValues=function(a,c){var b=c.period,m=2*b,d=3*b,h=a.xData,e=(a=a.yData)?a.length:0,f=-1,g=[],q=[],n=[],A=[],r=[],u,t,k={};this.EMApercent=2/(b+1);if(!(e<3*b-2)){p(a[0])&&(f=c.index?c.index:0);c=l.prototype.accumulatePeriodPoints(b,
|
|
70
|
+
f,a);var y=c/b;c=0;for(u=b;u<e+3;u++){u<e+1&&(k.level1=this.getEMA(a,F,y,f,u)[1],A.push(k.level1));var F=k.level1;if(u<m)c+=k.level1;else{u===m&&(y=c/b,c=0);k.level1=A[u-b-1];k.level2=this.getEMA([k.level1],Q,y)[1];r.push(k.level2);var Q=k.level2;if(u<d)c+=k.level2;else{u===d&&(y=c/b);u===e+1&&(k.level1=A[u-b-1],k.level2=this.getEMA([k.level1],Q,y)[1],r.push(k.level2));k.level1=A[u-b-2];k.level2=r[u-2*b-1];k.level3=this.getEMA([k.level2],k.prevLevel3,y)[1];if(t=this.getTemaPoint(h,d,k,u))g.push(t),
|
|
71
|
+
q.push(t[0]),n.push(t[1]);k.prevLevel3=k.level3}}}return{values:g,xData:q,yData:n}}};d.defaultOptions=t(l.defaultOptions);return d}(l);f.registerSeriesType("tema",e);"";return e});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(h,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=
|
|
72
|
+
c[b])};return e(h,d)};return function(h,d){function a(){this.constructor=h}e(h,d);h.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.tema,k=e.correctFloat,p=e.merge;e=function(e){function h(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(h,e);h.prototype.getTemaPoint=function(d,a,c,b){if(b>a)return[d[b-3],0!==c.prevLevel3?k(c.level3-c.prevLevel3)/c.prevLevel3*100:null]};h.defaultOptions=p(l.defaultOptions);
|
|
73
|
+
return h}(l);f.registerSeriesType("trix",e);"";return e});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=
|
|
74
|
+
a.prototype,new c)}}(),l=f.seriesTypes.ema,k=e.extend,p=e.merge,t=e.error;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,c){var b=c.periods,m=c.index;c=[];var d=[],e=[],h;if(2!==b.length||b[1]<=b[0])t('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:b[0]});a=l.prototype.getValues.call(this,
|
|
75
|
+
a,{index:m,period:b[1]});if(f&&a){b=b[1]-b[0];for(h=0;h<a.yData.length;h++)m=f.yData[h+b]-a.yData[h],c.push([a.xData[h],m]),d.push(a.xData[h]),e.push(m);return{values:c,xData:d,yData:e}}}};d.defaultOptions=p(l.defaultOptions,{params:{period:void 0,periods:[10,20]}});return d}(l);k(e.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",e);"";return e});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
|
|
76
|
+
f["Core/Utilities.js"]],function(f,e,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 t(a){return{high:k(a),low:p(a)}}function h(a){var b,c,m,d,e;a.series.forEach(function(a){if(a.xData)for(d=a.xData,e=c=a.xIncrement?1:d.length-1;0<e;e--)if(m=d[e]-d[e-1],"undefined"===typeof b||m<b)b=m});return b}function d(a,b,c,m){if(a&&b&&c&&m){var d=b.plotX-a.plotX;b=b.plotY-a.plotY;var e=
|
|
77
|
+
m.plotX-c.plotX;m=m.plotY-c.plotY;var h=a.plotX-c.plotX,x=a.plotY-c.plotY;c=(-b*h+d*x)/(-e*b+d*m);e=(e*x-m*h)/(-e*b+d*m);if(0<=c&&1>=c&&0<=e&&1>=e)return{plotX:a.plotX+e*d,plotY:a.plotY+e*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=w(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var c=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
78
|
+
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)}}(),b=f.parse,m=g.seriesTypes.sma,x=l.defined;f=l.extend;var z=l.isArray,B=l.isNumber,w=l.merge,N=l.objectEach;e.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,m){a.push(e.approximations.average(c));b=!b&&"undefined"===
|
|
79
|
+
typeof a[m]});return b?void 0:a};l=function(e){function f(){var a=null!==e&&e.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}c(f,e);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=w({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
|
|
80
|
+
fill:b(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:b(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:b(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];B(m)&&(b["plot"+c]=a.yAxis.toPixels(m,
|
|
81
|
+
!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,e=b.options,h=b.graph,f=b.color,z={options:{gapSize:e.gapSize}},n=b.pointArrayMap.length,q=[[],[],[],[],[],[]],B={tenkanLine:q[0],kijunLine:q[1],chikouLine:q[2],senkouSpanA:q[3],senkouSpanB:q[4],senkouSpan:q[5]},l=[],k=b.options.senkouSpan,t=k.color||k.styles.fill,p=k.negativeColor,y=[[],[]],v=[[],[]],R=0,K,S,O;for(b.ikhMap=B;m--;){var D=c[m];for(K=0;K<n;K++)k=
|
|
82
|
+
b.pointArrayMap[K],x(D[k])&&q[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});p&&m!==c.length-1&&(k=B.senkouSpanB.length-1,D=d(B.senkouSpanA[k-1],B.senkouSpanA[k],B.senkouSpanB[k-1],B.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(B.senkouSpanA.splice(k,0,K),B.senkouSpanB.splice(k,0,K),l.push(k)))}N(B,function(a,c){e[c]&&"senkouSpan"!==c&&(b.points=q[R],b.options=w(e[c].styles,z),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,g.seriesTypes.sma.prototype.drawGraph.call(b),
|
|
83
|
+
b["graph"+c]=b.graph);R++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&B.senkouSpanA[0]&&B.senkouSpanB[0]){l.unshift(0);l.push(B.senkouSpanA.length-1);for(n=0;n<l.length-1;n++){k=l[n];D=l[n+1];m=B.senkouSpanB.slice(k,D+1);k=B.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(O=K=D=0;O<m.length;O++)D+=m[O].plotY,K+=k[O].plotY;D=D>K?0:1}else D=m[D].plotY>k[D].plotY?0:1;
|
|
84
|
+
else D=m[0].plotY>k[0].plotY?0:1;y[D]=y[D].concat(m);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,m){y[m].length&&v[m].length&&(S=0===m?t:p,a({indicator:b,points:y[m],nextPoints:v[m],color:S,options:e,gap:z,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:B.senkouSpanB,nextPoints:B.senkouSpanA,color:t,options:e,gap:z,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
|
|
85
|
+
c;b.options=e;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;
|
|
86
|
+
b=b.periodSenkouSpanB;var d=a.xData,e=a.yData,x=e&&e.length||0;a=h(a.xAxis);var f=[],B=[],n;if(!(d.length<=c)&&z(e[0])&&4===e[0].length){var g=d[0]-c*a;for(n=0;n<c;n++)B.push(g+n*a);for(n=0;n<x;n++){if(n>=m){var q=e.slice(n-m,n);q=t(q);q=(q.high+q.low)/2}if(n>=c){var w=e.slice(n-c,n);w=t(w);w=(w.high+w.low)/2;var r=(q+w)/2}if(n>=b){var k=e.slice(n-b,n);k=t(k);k=(k.high+k.low)/2}g=e[n][3];var l=d[n];"undefined"===typeof f[n]&&(f[n]=[]);"undefined"===typeof f[n+c]&&(f[n+c]=[]);f[n+c][0]=q;f[n+c][1]=
|
|
87
|
+
w;f[n+c][2]=void 0;f[n][2]=g;n<=c&&(f[n+c][3]=void 0,f[n+c][4]=void 0);"undefined"===typeof f[n+2*c]&&(f[n+2*c]=[]);f[n+2*c][3]=r;f[n+2*c][4]=k;B.push(l)}for(n=1;n<=c;n++)B.push(l+n*a);return{values:f,xData:B,yData:f}}};f.defaultOptions=w(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/>'},
|
|
88
|
+
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",
|
|
89
|
+
"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,e,g){var l=this&&this.__extends||function(){var d=function(a,c){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(a,c)};return function(a,
|
|
90
|
+
c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=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.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};
|
|
91
|
+
a.prototype.getValues=function(a,b){var c=b.period,d=b.periodATR,h=b.multiplierATR,f=a.yData;f=f?f.length:0;var w=[];b=e.seriesTypes.ema.prototype.getValues(a,{period:c,index:b.index});var g=e.seriesTypes.atr.prototype.getValues(a,{period:d}),q=[],n=[],k;if(!(f<c)){for(k=c;k<=f;k++){var r=b.values[k-c];var l=g.values[k-d];var t=r[0];a=p(r[1]+h*l[1]);l=p(r[1]-h*l[1]);r=r[1];w.push([t,a,r,l]);q.push(t);n.push([a,r,l])}return{values:w,xData:q,yData:n}}};a.defaultOptions=h(k.defaultOptions,{params:{index:0,
|
|
92
|
+
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);t(g.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top",
|
|
93
|
+
"bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.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,e,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
94
|
+
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)}}(),k=e.seriesTypes,p=k.sma,t=k.ema,h=g.correctFloat,d=g.error;k=g.extend;var a=g.isArray,c=g.merge;g=function(b){function m(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}l(m,b);
|
|
95
|
+
m.prototype.calculateTrend=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,e=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(m.params.volumeSeriesID)))||d("Series "+m.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);return!(![e,c].every(function(a){return a&&a.xData&&a.xData.length>=m.params.slowAvgPeriod})||!b)};m.prototype.getCM=function(a,
|
|
96
|
+
b,c,m,d){return h(b+(c===m?a:d))};m.prototype.getDM=function(a,b){return h(a-b)};m.prototype.getVolumeForce=function(a){var b=[],c=1;var m=0;var d=a[0][1]-a[0][2];var e=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,e,d);e=this.volumeSeries.yData[c]*h*Math.abs(2*(f/m-1))*100;b.push([e]);e=h;d=f}return b};m.prototype.getEMA=function(a,b,c,m,d,e,h){return t.prototype.calculateEma(h||[],a,"undefined"===typeof e?1:e,m,b,"undefined"===typeof d?
|
|
97
|
+
-1:d,c)};m.prototype.getSMA=function(a,b,c){return t.prototype.accumulatePeriodPoints(a,b,c)/a};m.prototype.getValues=function(a,b){var c=[],m=a.xData;a=a.yData;var d=[],e=[],f=[],x,g=0,k=0,z=void 0,l=void 0,t=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),y=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&&(z=k=this.getEMA(p,z,y,M,0,g,m)[1]),g>=b.slowAvgPeriod&&(l=x=this.getEMA(p,
|
|
98
|
+
l,C,v,0,g,m)[1],x=h(k-x),f.push(x),f.length>=b.signalPeriod&&(t=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([m[g],x,t]),d.push(m[g]),e.push([x,t]));return{values:c,xData:d,yData:e}}};m.defaultOptions=c(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/>'}});
|
|
99
|
+
return m}(p);k(g.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);e.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,e,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
|
|
100
|
+
{__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=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=f.noop,p=e.seriesTypes.sma,t=g.extend,h=g.correctFloat,d=g.defined,a=g.merge;g=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=
|
|
101
|
+
void 0;a.graphsignal=void 0;a.macdZones=void 0;a.signalZones=void 0;return a}l(b,c);b.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);var a=this.color,b=this.userOptions._colorIndex;this.options&&(d(this.userOptions._colorIndex)&&(this.options.signalLine&&this.options.signalLine.styles&&!this.options.signalLine.styles.lineColor&&(this.userOptions._colorIndex++,this.getCyclic("color",void 0,this.chart.options.colors),this.options.signalLine.styles.lineColor=this.color),
|
|
102
|
+
this.options.macdLine&&this.options.macdLine.styles&&!this.options.macdLine.styles.lineColor&&(this.userOptions._colorIndex++,this.getCyclic("color",void 0,this.chart.options.colors),this.options.macdLine.styles.lineColor=this.color)),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);this.color=a;this.userOptions._colorIndex=b};b.prototype.toYData=
|
|
103
|
+
function(a){return[a.y,a.signal,a.MACD]};b.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,d){null!==m&&(c[b[d]]=a.yAxis.toPixels(m,!0))})})};b.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();e.seriesTypes.sma.prototype.destroy.apply(this,arguments)};
|
|
104
|
+
b.prototype.drawGraph=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],d(n.plotMACD)&&q[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!d(n.plotMACD)}),d(n.plotSignal)&&q[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!d(n.plotMACD)});["macd","signal"].forEach(function(c,d){b.points=q[d];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;e.seriesTypes.sma.prototype.drawGraph.call(b);
|
|
105
|
+
b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};b.prototype.getZonesGraphs=function(a){var b=c.prototype.getZonesGraphs.call(this,a),d=b;this.currentLineZone&&(d=b.splice(this[this.currentLineZone].startIndex+1),d.length?d.splice(0,0,a[0]):d=[a[0]]);return d};b.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;e.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
|
|
106
|
+
this.zones=a};b.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,m=0,f=[],g=[],q=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=e.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var x=e.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;x=x.values;for(a=0;a<=n.length;a++)d(x[a])&&d(x[a][1])&&d(n[a+c])&&d(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-x[a][1]]);for(a=0;a<f.length;a++)g.push(f[a][0]),q.push([0,
|
|
107
|
+
null,f[a][3]]);b=e.seriesTypes.ema.prototype.getValues({xData:g,yData:q},{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],q[a]=[0,b[m][1],f[a][3]],null===f[a][3]?(f[a][1]=0,q[a][0]=0):(f[a][1]=h(f[a][3]-b[m][1]),q[a][0]=h(f[a][3]-b[m][1])),m++);return{values:f,xData:g,yData:q}}};b.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
|
|
108
|
+
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 b}(p);t(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
|
|
109
|
+
"signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});e.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(a){return a.reduce(function(a,c){return a+c})}function l(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends||
|
|
110
|
+
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)}}(),p=f.seriesTypes.sma,t=e.extend,h=e.merge,d=e.error,a=e.isArray;e=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
|
|
111
|
+
void 0;return a}k(b,c);b.prototype.getValues=function(b,c){var m=c.period,e=b.xData,h=b.yData,f=h?h.length:0,q=c.decimals,n=1,k=b.chart.get(c.volumeSeriesID),x=k&&k.yData,u=[],t=[],p=[],y=[],F=[];if(!k)d("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(e.length<=m)&&a(h[0])&&4===h[0].length&&x){for(b=l(h[n]);n<m+1;)c=b,b=l(h[n]),c=b>=c,k=b*x[n],y.push(c?k:0),F.push(c?0:k),n++;for(m=n-1;m<f;m++)m>n-1&&(y.shift(),F.shift(),c=b,b=l(h[m]),c=b>c,k=b*x[m],y.push(c?
|
|
112
|
+
k:0),F.push(c?0:k)),c=g(F),k=g(y),c=k/c,c=parseFloat((100-100/(1+c)).toFixed(q)),u.push([e[m],c]),t.push(e[m]),p.push(c);return{values:u,xData:t,yData:p}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return b}(p);t(e.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",e);"";return e});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||
|
|
113
|
+
function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
|
|
114
|
+
return a}g(d,e);d.prototype.getValues=function(a,c){var b=c.period;c=c.index;var d=a.xData,e=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(d.length<=b)&&p(a[0])){for(k=b+1;k<e;k++){var q=[d[k-1],a[k-1][c]-a[k-b-1][c]];h.push(q);f.push(q[0]);g.push(q[1])}q=[d[k-1],a[k-1][c]-a[k-b-1][c]];h.push(q);f.push(q[0]);g.push(q[1]);return{values:h,xData:f,yData:g}}};d.defaultOptions=t(l.defaultOptions,{params:{index:3}});return d}(l);k(e.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",e);"";
|
|
115
|
+
return e});v(f,"Stock/Indicators/NATR/NATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,h){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var c in a)a.hasOwnProperty(c)&&(d[c]=a[c])};return e(f,h)};return function(f,h){function d(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),l=f.seriesTypes.atr,
|
|
116
|
+
k=e.merge;e=function(e){function f(){var f=null!==e&&e.apply(this,arguments)||this;f.data=void 0;f.points=void 0;f.options=void 0;return f}g(f,e);f.prototype.getValues=function(e,d){var a=l.prototype.getValues.apply(this,arguments),c=a.values.length,b=d.period-1,m=e.yData,f=0;if(a){for(;f<c;f++)a.yData[f]=a.values[f][1]/m[b][3]*100,a.values[f][1]=a.yData[f],b++;return a}};f.defaultOptions=k(l.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(l);f.registerSeriesType("natr",e);"";return e});v(f,
|
|
117
|
+
"Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var d=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),l=f.seriesTypes.sma,k=e.isNumber,
|
|
118
|
+
p=e.error,t=e.extend,h=e.merge;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,d);a.prototype.getValues=function(a,b){var c=a.chart.get(b.volumeSeriesID),d=a.xData,e=a.yData,f=[],h=[],g=[],q=!k(e[0]),n=1,l=0;if(c){c=c.yData;a=[d[0],l];var r=q?e[0][3]:e[0];f.push(a);h.push(d[0]);g.push(a[1]);for(n;n<e.length;n++)b=q?e[n][3]:e[n],l=b>r?l+c[n]:b===r?l:l-c[n],a=[d[n],l],r=b,f.push(a),h.push(d[n]),g.push(a[1]);return{values:f,
|
|
119
|
+
xData:h,yData:g}}p("Series "+b.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);t(e.prototype,{nameComponents:void 0});f.registerSeriesType("obv",e);"";return e});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function e(e,g){var k=e.series.pointArrayMap,l=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(e);l--;)g=
|
|
120
|
+
"dataLabel"+k[l],e[g]&&e[g].element&&e[g].destroy(),e[g]=null}var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var e=null!==f&&f.apply(this,arguments)||this;e.P=
|
|
121
|
+
void 0;e.pivotLine=void 0;e.series=void 0;return e}g(k,f);k.prototype.destroyElements=function(){e(this,"destroyElements")};k.prototype.destroy=function(){e(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,e,g){var l=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||
|
|
122
|
+
{__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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),k=e.seriesTypes.sma,p=g.merge,t=g.extend,h=g.defined,d=g.isArray;g=function(a){function c(){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}
|
|
123
|
+
l(c,a);c.prototype.toYData=function(a){return[a.P]};c.prototype.translate=function(){var a=this;e.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)};c.prototype.getGraphPath=function(a){for(var b=this,c=a.length,d=[[],[],[],[],[],[],[],[],[]],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],
|
|
124
|
+
h(n[q])&&d[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}d.forEach(function(a){f=f.concat(e.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};c.prototype.drawDataLabels=function(){var a=this,c=a.pointArrayMap,d,f,h;if(a.options.dataLabels.enabled){var g=a.points.length;c.concat([!1]).forEach(function(b,m){for(h=g;h--;)f=a.points[h],b?(f.y=f[b],f.pivotLine=b,f.plotY=f["plot"+b],d=f["dataLabel"+b],m&&(f["dataLabel"+
|
|
125
|
+
c[m-1]]=f.dataLabel),f.dataLabels||(f.dataLabels=[]),f.dataLabels[0]=f.dataLabel=d=d&&d.element?d:null):f["dataLabel"+c[m-1]]=f.dataLabel;e.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};c.prototype.getValues=function(a,c){var b=c.period,m=a.xData,e=(a=a.yData)?a.length:0;c=this[c.algorithm+"Placement"];var f=[],h=[],g=[],n;if(!(m.length<b)&&d(a[0])&&4===a[0].length){for(n=b+1;n<=e+b;n+=b){var k=m.slice(n-b-1,n);var l=a.slice(n-b-1,n);var u=k.length;var t=k[u-1];l=this.getPivotAndHLC(l);
|
|
126
|
+
l=c(l);l=f.push([t].concat(l));h.push(t);g.push(f[l-1].slice(1))}this.endPoint=k[0]+(t-k[0])/u*b;return{values:f,xData:h,yData:g}}};c.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,d=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+d)/3,b,c,d]};c.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]};c.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
|
|
127
|
+
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]};c.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]};c.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 c}(k);t(g.prototype,
|
|
128
|
+
{nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});e.registerSeriesType("pivotpoints",g);"";return g});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var d=function(a,c){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(a,c)};
|
|
129
|
+
return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),l=f.seriesTypes.ema,k=e.correctFloat,p=e.extend,t=e.merge,h=e.error;e=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}g(a,d);a.prototype.getValues=function(a,b){var c=b.periods,d=b.index;b=[];var e=[],f=[],g;if(2!==c.length||c[1]<=c[0])h('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
|
|
130
|
+
else{var t=l.prototype.getValues.call(this,a,{index:d,period:c[0]});a=l.prototype.getValues.call(this,a,{index:d,period:c[1]});if(t&&a){c=c[1]-c[0];for(g=0;g<a.yData.length;g++)d=k((t.yData[g+c]-a.yData[g])/a.yData[g]*100),b.push([a.xData[g],d]),e.push(a.xData[g]),f.push(d);return{values:b,xData:e,yData:f}}}};a.defaultOptions=t(l.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(l);p(e.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",e);"";return e});
|
|
131
|
+
v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,e,g){return f.reduce(function(f,k){return[Math.min(f[0],k[e]),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,e,g,l,k){var p=this&&this.__extends||function(){var a=function(c,
|
|
132
|
+
b){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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),t=l.seriesTypes.sma,h=k.merge;k=k.extend;var d=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(c,a);c.prototype.getValues=
|
|
133
|
+
function(a,c){c=c.period;var b=a.xData,d=(a=a.yData)?a.length:0,e=[],m=[],h=[],g;if(!(d<c)){for(g=c;g<=d;g++){var n=b[g-1];var k=a.slice(g-c,g);var l=f.getArrayExtremes(k,2,1);k=l[1];var u=l[0];l=(k+u)/2;e.push([n,k,l,u]);m.push(n);h.push([k,l,u])}return{values:e,xData:m,yData:h}}};c.defaultOptions=h(t.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"}});
|
|
134
|
+
return c}(t);k(d.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});e.compose(d);l.registerSeriesType("pc",d);"";return d});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
135
|
+
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,
|
|
136
|
+
arguments);this.options=t({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};d.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};d.prototype.translate=function(){var a=this,c=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){[b.top,b.middle,b.bottom].forEach(function(d,e){null!==d&&(b[c[e]]=a.yAxis.toPixels(d,!0))})})};d.prototype.drawGraph=function(){for(var a=this,c=a.points,
|
|
137
|
+
b=c.length,d=a.options,e=a.graph,h={options:{gapSize:d.gapSize}},g=[[],[]],k;b--;)k=c[b],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=t(d[b].styles,h);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=c;a.options=d;a.graph=e;f.seriesTypes.sma.prototype.drawGraph.call(a)};d.prototype.getValues=function(a,
|
|
138
|
+
c){var b=c.period,d=c.topBand,e=c.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],l=[],q=[],n;if(!(h.length<b)&&p(a[0])&&4===a[0].length){for(n=b;n<=g;n++){var t=h.slice(n-b,n);var r=a.slice(n-b,n);r=f.seriesTypes.sma.prototype.getValues.call(this,{xData:t,yData:r},c);t=r.xData[0];r=r.yData[0];var u=r*(1+d);var P=r*(1-e);k.push([t,u,r,P]);l.push(t);q.push([u,r,P])}return{values:k,xData:l,yData:q}}};d.defaultOptions=t(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/>'},
|
|
139
|
+
params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return d}(l);k(e.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",e);"";return e});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
|
|
140
|
+
f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||
|
|
141
|
+
this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var c=d.xData;d=d.yData;var b=d[0][1],e=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=d[0][2],k=a.decimals,l=a.index,q=[],n=[],t=[],r=1,u;if(!(l>=d.length)){for(u=0;u<l;u++)b=Math.max(d[u][1],b),g=Math.min(d[u][2],parseFloat(g.toFixed(k)));var p=d[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(b-g);q.push([c[l],g]);n.push(c[l]);t.push(parseFloat(g.toFixed(k)));for(u=
|
|
142
|
+
l+1;u<d.length;u++){l=d[u-1][2];var y=d[u-2][2];var F=d[u-1][1];var v=d[u-2][1];var C=d[u][1];var M=d[u][2];null!==y&&null!==v&&null!==l&&null!==F&&null!==C&&null!==M&&(g=p===r?1===p?g+J<Math.min(y,l)?g+J:Math.min(y,l):g+J>Math.max(v,F)?g+J:Math.max(v,F):b,l=1===p?C>b?C:b:M<b?M:b,C=1===r&&M>g||-1===r&&C>g?1:-1,r=C,J=l,M=f,y=e,F=h,a=r===p?1===r&&J>b?a===y?y:parseFloat((a+M).toFixed(2)):-1===r&&J<b?a===y?y:parseFloat((a+M).toFixed(2)):a:F,b=l-g,J=a*b,q.push([c[u],parseFloat(g.toFixed(k))]),n.push(c[u]),
|
|
143
|
+
t.push(parseFloat(g.toFixed(k))),r=p,p=C,b=l)}return{values:q,xData:n,yData:t}}};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);e(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,
|
|
144
|
+
e){var g=this&&this.__extends||function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.isArray,p=e.merge;e=e.extend;var t=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;
|
|
145
|
+
a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,c){var b=c.period,d=a.xData,e=(a=a.yData)?a.length:0,f=[],h=[],g=[],l=-1;if(!(d.length<=b)){k(a[0])&&(l=c.index);for(c=b;c<e;c++){var q=0>l?(q=a[c-b])?(a[c]-q)/q*100:null:(q=a[c-b][l])?(a[c][l]-q)/q*100:null;q=[d[c],q];f.push(q);h.push(q[0]);g.push(q[1])}return{values:f,xData:h,yData:g}}};d.defaultOptions=p(l.defaultOptions,{params:{index:3,period:9}});return d}(l);e(t.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
|
|
146
|
+
t);"";return t});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.sma,
|
|
147
|
+
k=e.isNumber,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var c=a.period,b=d.xData,e=d.yData;d=e?e.length:0;var f=a.decimals,h=1,g=[],l=[],t=[],q=a.index,n=a=0,p;if(!(b.length<c)){if(k(e[0]))var r=e;else q=Math.min(q,e[0].length-1),r=e.map(function(a){return a[q]});for(;h<c;){var u=parseFloat((r[h]-r[h-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);h++}e=parseFloat((a/
|
|
148
|
+
(c-1)).toFixed(f));for(p=parseFloat((n/(c-1)).toFixed(f));h<d;h++)u=parseFloat((r[h]-r[h-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),e=parseFloat(((e*(c-1)+a)/c).toFixed(f)),p=parseFloat(((p*(c-1)+n)/c).toFixed(f)),a=0===p?100:0===e?0:parseFloat((100-100/(1+e/p)).toFixed(f)),g.push([b[h],a]),l.push(b[h]),t.push(a);return{values:g,xData:l,yData:t}}};f.defaultOptions=p(l.defaultOptions,{params:{decimals:4,index:3}});return f}(l);f.registerSeriesType("rsi",e);"";return e});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
|
|
149
|
+
[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g,l){var k=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=
|
|
150
|
+
b.prototype,new d)}}(),p=g.seriesTypes.sma,t=l.extend,h=l.isArray,d=l.merge;l=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(c,a);c.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=d({smoothedLine:{styles:{lineColor:this.color}}},this.options)};c.prototype.getValues=function(a,c){var b=c.periods[0];c=c.periods[1];var d=a.xData,e=(a=a.yData)?a.length:0,m=[],k=[],l=[],n=null,
|
|
151
|
+
t;if(!(e<b)&&h(a[0])&&4===a[0].length){for(t=b-1;t<e;t++){var r=a.slice(t-b+1,t+1);var u=f.getArrayExtremes(r,2,1);var p=u[0];r=a[t][3]-p;p=u[1]-p;r=r/p*100;k.push(d[t]);l.push([r,null]);t>=b-1+(c-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-c),yData:l.slice(-c)},{period:c}),n=n.yData[0]);m.push([d[t],r,n]);l[l.length-1][1]=n}return{values:m,xData:k,yData:l}}};c.defaultOptions=d(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/>'},
|
|
152
|
+
smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return c}(p);t(l.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});e.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,
|
|
153
|
+
e){var g=this&&this.__extends||function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.stochastic,k=f.seriesTypes,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
|
|
154
|
+
void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,c){var b=c.periods,d=k.stochastic.prototype.getValues.call(this,a,c);a={values:[],xData:[],yData:[]};c=0;if(d){a.xData=d.xData.slice(b[1]-1);d=d.yData.slice(b[1]-1);var e=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:d},{index:1,period:b[2]});if(e){for(var f=a.xData.length;c<f;c++)a.yData[c]=[d[c][1],e.yData[c-b[2]+1]||null],a.values[c]=[a.xData[c],d[c][1],e.yData[c-b[2]+1]||null];return a}}};d.defaultOptions=
|
|
155
|
+
t(l.defaultOptions,{params:{periods:[14,3,3]}});return d}(l);p(e.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",e);"";return e});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,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&&
|
|
156
|
+
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)}}(),p=f.seriesTypes,t=p.atr,h=p.sma,d=e.addEvent,a=e.correctFloat,c=e.isArray;p=e.extend;var b=e.merge,m=e.objectEach;e=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}
|
|
157
|
+
k(f,e);f.prototype.init=function(){var a;h.prototype.init.apply(this,arguments);var b=this,c=d(g,"afterLinkSeries",function(){if(b.options){var d=b.options;a=b.linkedParent.options;d.cropThreshold=a.cropThreshold-(d.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,c=a.options,d=a.linkedParent,e=d?d.points:[],f=a.points,g=a.graph,k=f.length,u=e.length-k;u=0<u?u:0;for(var t={options:{gapSize:c.gapSize}},p={top:[],bottom:[],intersect:[]},x={top:{styles:{lineWidth:c.lineWidth,
|
|
158
|
+
lineColor:c.fallingTrendColor||c.color,dashStyle:c.dashStyle}},bottom:{styles:{lineWidth:c.lineWidth,lineColor:c.risingTrendColor||c.color,dashStyle:c.dashStyle}},intersect:c.changeTrendLine},z,y,C,v,E,G,H,I;k--;)z=f[k],y=f[k-1],C=e[k-1+u],v=e[k-2+u],E=e[k+u],G=e[k+u+1],H=z.options.color,I={x:z.x,plotX:z.plotX,plotY:z.plotY,isNull:!1},!v&&C&&d.yData[C.index-1]&&(v=l(d,C.index-1,3)),!G&&E&&d.yData[E.index+1]&&(G=l(d,E.index+1,3)),!C&&v&&d.yData[v.index+1]?C=l(d,v.index+1,3):!C&&E&&d.yData[E.index-
|
|
159
|
+
1]&&(C=l(d,E.index-1,3)),z&&C&&E&&v&&z.x!==C.x&&(z.x===E.x?(v=C,C=E):z.x===v.x?(C=v,v={close:d.yData[C.index-1][3],x:d.xData[C.index-1]}):G&&z.x===G.x&&(C=G,v=E)),y&&v&&C?(E={x:y.x,plotX:y.plotX,plotY:y.plotY,isNull:!1},z.y>=C.close&&y.y>=v.close?(z.color=H||c.fallingTrendColor||c.color,p.top.push(I)):z.y<C.close&&y.y<v.close?(z.color=H||c.risingTrendColor||c.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(b(E,{isNull:!0})),z.y>=C.close&&y.y<v.close?(z.color=H||c.fallingTrendColor||
|
|
160
|
+
c.color,y.color=H||c.risingTrendColor||c.color,p.top.push(I),p.top.push(b(E,{isNull:!0}))):z.y<C.close&&y.y>=v.close&&(z.color=H||c.risingTrendColor||c.color,y.color=H||c.fallingTrendColor||c.color,p.bottom.push(I),p.bottom.push(b(E,{isNull:!0}))))):C&&(z.y>=C.close?(z.color=H||c.fallingTrendColor||c.color,p.top.push(I)):(z.color=H||c.risingTrendColor||c.color,p.bottom.push(I)));m(p,function(c,d){a.points=c;a.options=b(x[d].styles,t);a.graph=a["graph"+d+"Line"];h.prototype.drawGraph.call(a);a["graph"+
|
|
161
|
+
d+"Line"]=a.graph});a.points=f;a.options=c;a.graph=g};f.prototype.getValues=function(b,d){var e=d.period;d=d.multiplier;var f=b.xData,m=b.yData,h=[],g=[],k=[],l=0===e?0:e-1,p=[],x=[],w;if(!(f.length<=e||!c(m[0])||4!==m[0].length||0>e)){b=t.prototype.getValues.call(this,b,{period:e}).yData;for(w=0;w<b.length;w++){var z=m[l+w];var B=m[l+w-1]||[];var y=p[w-1];var v=x[w-1];var G=k[w-1];0===w&&(y=v=G=0);e=a((z[1]+z[2])/2+d*b[w]);var H=a((z[1]+z[2])/2-d*b[w]);p[w]=e<y||B[3]>y?e:y;x[w]=H>v||B[3]<v?H:v;if(G===
|
|
162
|
+
y&&z[3]<p[w]||G===v&&z[3]<x[w])var I=p[w];else if(G===y&&z[3]>p[w]||G===v&&z[3]>x[w])I=x[w];h.push([f[l+w],I]);g.push(f[l+w]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=b(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(e.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
|
|
163
|
+
e);"";return e});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(f,g)};return function(f,g){function k(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(e){function k(){return null!==
|
|
164
|
+
e&&e.apply(this,arguments)||this}g(k,e);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(e.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,e,g,l,k,
|
|
165
|
+
p){var t=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)}}(),h=e.animObject;e=g.noop;var d=l.seriesTypes.sma,a=k.addEvent,c=k.arrayMax,b=k.arrayMin,m=k.correctFloat,x=k.defined,z=k.error,B=k.extend,w=k.isArray,
|
|
166
|
+
v=k.merge,q=Math.abs,n=l.seriesTypes.column.prototype;k=function(e){function f(){var a=null!==e&&e.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}t(f,e);f.prototype.init=function(b){var c=this,d,e,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var m=a(p,"afterLinkSeries",function(){c.options&&(d=c.options.params,
|
|
167
|
+
e=c.linkedParent,f=b.get(d.volumeSeriesID),c.addCustomEvents(e,f));m()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function d(){e.chart.redraw();e.setData([]);e.zoneStarts=[];e.zoneLinesSVG&&(e.zoneLinesSVG=e.zoneLinesSVG.destroy())}var e=this;e.dataEventsToUnbind.push(a(b,"remove",function(){d()}));c&&e.dataEventsToUnbind.push(a(c,"remove",function(){d()}));return e};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,d=b.group,e={};!a&&d&&(a=c?b.yAxis.top:b.xAxis.left,
|
|
168
|
+
c?(d["forceAnimate:translateY"]=!0,e.translateY=a):(d["forceAnimate:translateX"]=!0,e.translateX=a),d.animate(e,B(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"],d=this.options.volumeDivision,
|
|
169
|
+
e=this.points.length,f=[],m=[],h=0,g;a?(this.posWidths=f,this.negWidths=m):(f=this.posWidths,m=this.negWidths);for(;h<e;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?d.styles.positiveColor:d.styles.negativeColor;k.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];k.shapeArgs.x=b?k.shapeArgs.x:
|
|
170
|
+
this.posWidths[h]}};f.prototype.translate=function(){var a=this,b=a.options,d=a.chart,e=a.yAxis,f=e.min,h=a.options.zoneLines,g=a.priceZones,k=0,l,t,r;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>b.pointPadding?b.pointPadding:.1;b=a.volumeDataArray;var x=c(b);var z=d.plotWidth/2;var B=d.plotTop;var A=q(e.toPixels(f)-e.toPixels(f+a.rangeStep));var v=q(e.toPixels(f)-e.toPixels(f+a.rangeStep));w&&(f=q(A*(1-2*w)),k=q((A-f)/2),A=q(f));p.forEach(function(b,c){t=b.barX=b.plotX=0;r=b.plotY=e.toPixels(g[c].start)-
|
|
171
|
+
B-(e.reversed?A-v:A)-k;l=m(z*g[c].wholeVolumeData/x);b.pointWidth=l;b.shapeArgs=a.crispCol.apply(a,[t,r,l,A]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(d,e,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,d=a.processedYData,e=this.chart,f=b.ranges,m=[],h=[],g=[],k;if(a.chart)if(k=e.get(b.volumeSeriesID))if((b=w(d[0]))&&4!==d[0].length)z("Type of "+a.name+" series is different than line, OHLC or candlestick.",
|
|
172
|
+
!0,e);else return(this.priceZones=this.specifyZones(b,c,d,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 z("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e);else z("Base series not found! In case it has been removed, add a new one.",!0,e)};f.prototype.specifyZones=function(a,d,e,f,h){if(a){var g=e.length;for(var k=e[0][3],n=k,l=1,q;l<g;l++)q=e[l][3],q<k&&(k=q),q>n&&(n=q);g={min:k,max:n}}else g=!1;g=(k=g)?k.min:
|
|
173
|
+
b(e);q=k?k.max:c(e);k=this.zoneStarts=[];n=[];var t=0;l=1;var r=this.linkedParent;!this.options.compareToMain&&r.dataModify&&(g=r.dataModify.modifyValue(g),q=r.dataModify.modifyValue(q));if(!x(g)||!x(q))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];r=this.rangeStep=m(q-g)/f;for(k.push(g);t<f-1;t++)k.push(m(k[t]+r));k.push(q);for(f=k.length;l<f;l++)n.push({index:l-1,x:d[0],start:k[l-1],end:k[l]});return this.volumePerZone(a,
|
|
174
|
+
n,h,d,e)};f.prototype.volumePerZone=function(a,b,c,d,e){var f=this,m=c.processedXData,h=c.processedYData,g=b.length-1,k=e.length;c=h.length;var n,l,t,r,p;q(k-c)&&(d[0]!==m[0]&&h.unshift(0),d[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?e[p][3]:e[p];n=p?a?e[p-1][3]:e[p-1]:r;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(r=c.dataModify.modifyValue(r),n=c.dataModify.modifyValue(n));
|
|
175
|
+
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,d){var e=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]],d.lineWidth))});f?f.animate({d:m}):f=this.zoneLinesSVG=e.path(m).attr({"stroke-width":d.lineWidth,
|
|
174
176
|
stroke:d.color,dashstyle:d.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(d.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,
|
|
175
|
-
enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(d);B(
|
|
176
|
-
function(f,e){var
|
|
177
|
-
void 0;a.points=void 0;a.options=void 0;return a}
|
|
178
|
-
|
|
179
|
-
this&&this.__extends||function(){var d=function(a,
|
|
180
|
-
void 0;a.points=void 0;return a}
|
|
181
|
-
e.registerSeriesType("williamsr",
|
|
182
|
-
(a[
|
|
183
|
-
|
|
184
|
-
this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
185
|
-
void 0;return d}
|
|
186
|
-
|
|
187
|
-
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,e){var
|
|
188
|
-
a?Object.create(a):(
|
|
189
|
-
a[
|
|
190
|
-
values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(
|
|
191
|
-
f.registerSeriesType("linearRegression",e);"";return e});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var
|
|
192
|
-
d?Object.create(d):(a.prototype=d.prototype,new a)}}(),
|
|
193
|
-
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var
|
|
194
|
-
null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}
|
|
195
|
-
function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
196
|
-
return d}
|
|
197
|
-
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,
|
|
198
|
-
null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}
|
|
199
|
-
{period:
|
|
200
|
-
t(
|
|
201
|
-
Array&&function(a,
|
|
202
|
-
var e=[],f=[],g=0,h=0,
|
|
203
|
-
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var
|
|
204
|
-
d=e.merge;e=function(a){function
|
|
205
|
-
0,
|
|
177
|
+
enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(d);B(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:e,drawGraph:e,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});l.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
|
|
178
|
+
function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.error,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
|
|
179
|
+
void 0;a.points=void 0;a.options=void 0;return a}g(d,e);d.prototype.getValues=function(a,c){var b=a.chart,d=a.xData;a=a.yData;var e=c.period,f=!0,h;if(h=b.get(c.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,d,a,h,e);k("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b)};d.prototype.calculateVWAPValues=function(a,c,b,d,e){var f=d.yData,m=d.xData.length,h=c.length;d=[];var g=[],k=[],n=[],l=[],r;m=h<=m?h:m;for(r=h=0;h<m;h++){var t=a?(b[h][1]+b[h][2]+b[h][3])/3:
|
|
180
|
+
b[h];t*=f[h];t=r?d[h-1]+t:t;var p=r?g[h-1]+f[h]:f[h];d.push(t);g.push(p);l.push([c[h],t/p]);k.push(l[h][0]);n.push(l[h][1]);r++;r===e&&(r=0)}return{values:l,xData:k,yData:n}};d.defaultOptions=t(l.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return d}(l);f.registerSeriesType("vwap",e);"";return e});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=
|
|
181
|
+
this&&this.__extends||function(){var d=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=e.seriesTypes.sma,p=g.extend,t=g.isArray,h=g.merge;g=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=
|
|
182
|
+
void 0;a.points=void 0;return a}l(a,d);a.prototype.getValues=function(a,b){b=b.period;var c=a.xData,d=(a=a.yData)?a.length:0,e=[],h=[],g=[],k;if(!(c.length<b)&&t(a[0])&&4===a[0].length){for(k=b-1;k<d;k++){var l=a.slice(k-b+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;c[k]&&(e.push([c[k],l]),h.push(c[k]),g.push(l))}return{values:e,xData:h,yData:g}}};a.defaultOptions=h(k.defaultOptions,{params:{index:void 0,period:14}});return a}(k);p(g.prototype,{nameBase:"Williams %R"});
|
|
183
|
+
e.registerSeriesType("williamsr",g);"";return g});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function g(d,a){a*=(a+1)/2;return d.reduce(function(a,b,d){return[null,a[1]+b[1]*(d+1)]})[1]/a}function l(d,a,c,b){c=g(d,d.length);a=a[b-1];d.shift();return[a,c]}var k=this&&this.__extends||function(){var d=function(a,c){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
|
|
184
|
+
(a[b]=c[b])};return d(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),p=f.seriesTypes.sma,t=e.isArray,h=e.merge;e=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}k(a,d);a.prototype.getValues=function(a,b){var c=b.period,d=a.xData,e=(a=a.yData)?a.length:0,f=1,h=d[0],g=a[0],k=[],n=[],p=[],r=-1;if(!(d.length<c)){t(a[0])&&(r=b.index,
|
|
185
|
+
g=a[0][r]);for(b=[[h,g]];f!==c;)b.push([d[f],0>r?a[f]:a[f][r]]),f++;for(c=f;c<e;c++)f=l(b,d,a,c),k.push(f),n.push(f[0]),p.push(f[1]),b.push([d[c],0>r?a[c]:a[c][r]]);f=l(b,d,a,c);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",e);"";return e});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&
|
|
186
|
+
this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.sma,k=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=
|
|
187
|
+
void 0;return d}g(f,e);f.prototype.getValues=function(d,a){var c=a.lowIndex,b=a.highIndex,e=a.deviation/100;a=1+e;var f=1-e;e=d.xData;var h=d.yData;d=h?h.length:0;var g=[],k=[],l=[],q,n,p=!1,r=!1;if(!(!e||1>=e.length||d&&("undefined"===typeof h[0][c]||"undefined"===typeof h[0][b]))){var t=h[0][c];var v=h[0][b];for(q=1;q<d;q++){if(h[q][c]<=v*f){g.push([e[0],v]);var y=[e[q],h[q][c]];p=n=!0}else h[q][b]>=t*a&&(g.push([e[0],t]),y=[e[q],h[q][b]],n=!1,p=!0);if(p){k.push(g[0][0]);l.push(g[0][1]);var L=q++;
|
|
188
|
+
q=d}}for(q=L;q<d;q++)n?(h[q][c]<=y[1]&&(y=[e[q],h[q][c]]),h[q][b]>=y[1]*a&&(r=b)):(h[q][b]>=y[1]&&(y=[e[q],h[q][b]]),h[q][c]<=y[1]*f&&(r=c)),!1!==r&&(g.push(y),k.push(y[0]),l.push(y[1]),y=[e[q],h[q][r]],n=!n,r=!1);c=g.length;0!==c&&g[c-1][0]<e[d-1]&&(g.push(y),k.push(y[0]),l.push(y[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);e(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
|
|
189
|
+
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,e){var g=this&&this.__extends||function(){var e=function(d,a){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(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===
|
|
190
|
+
a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.isArray,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getRegressionLineParameters=function(a,c){var b=this.options.params.index,d=function(a,b){return k(a)?a[b]:a},e=a.reduce(function(a,b){return b+a},0),f=c.reduce(function(a,c){return d(c,b)+a},0);e/=a.length;f/=c.length;var h=0,g=0,l;for(l=0;l<a.length;l++){var q=
|
|
191
|
+
a[l]-e;var n=d(c[l],b)-f;h+=q*n;g+=Math.pow(q,2)}a=g?h/g:0;return{slope:a,intercept:f-a*e}};d.prototype.getEndPointY=function(a,c){return a.slope*c+a.intercept};d.prototype.transformXData=function(a,c){var b=a[0];return a.map(function(a){return(a-b)/c})};d.prototype.findClosestDistance=function(a){var c,b;for(b=1;b<a.length-1;b++){var d=a[b]-a[b-1];0<d&&("undefined"===typeof c||d<c)&&(c=d)}return c};d.prototype.getValues=function(a,c){var b=a.xData;a=a.yData;c=c.period;var d,e={xData:[],yData:[],
|
|
192
|
+
values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(b);for(d=c-1;d<=b.length-1;d++){var h=d-c+1;var g=d+1;var k=b[d];var l=b.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]);e.values.push({regressionLineParameters:l,x:k,y:h});e.xData.push(k);e.yData.push(h)}return e};d.defaultOptions=t(l.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return d}(l);p(e.prototype,{nameBase:"Linear Regression Indicator"});
|
|
193
|
+
f.registerSeriesType("linearRegression",e);"";return e});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===
|
|
194
|
+
d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(f,e);f.prototype.getEndPointY=function(d){return d.slope};f.defaultOptions=p(l.defaultOptions);return f}(l);k(e.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",e);"";return e});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
|
|
195
|
+
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=
|
|
196
|
+
null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}g(f,e);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(l.defaultOptions);return f}(l);k(e.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",e);"";return e});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||
|
|
197
|
+
function(){var e=function(f,d){e=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 e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;
|
|
198
|
+
return d}g(f,e);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(e.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",e);"";return e});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
|
|
199
|
+
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,g){var l=this&&this.__extends||function(){var d=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}d(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=e.seriesTypes.sma,p=g.correctFloat,t=g.extend,h=g.merge;g=function(d){function a(){var a=
|
|
200
|
+
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,b){var c=b.period,e=b.factor;b=b.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],k=[],l=[],n=[],t=[],r;if(!(g<c)){for(r=0;r<=g;r++){if(r<g){var u=a[r][2];var v=a[r][1];var y=e;u=p(v-u)/(p(v+u)/2)*1E3*y;h.push(a[r][1]*p(1+2*u));k.push(a[r][2]*p(1-2*u))}if(r>=c){u=f.slice(r-c,r);var L=a.slice(r-c,r);y=d.prototype.getValues.call(this,{xData:u,yData:h.slice(r-c,r)},
|
|
201
|
+
{period:c});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(r-c,r)},{period:c});L=d.prototype.getValues.call(this,{xData:u,yData:L},{period:c,index:b});u=L.xData[0];y=y.yData[0];v=v.yData[0];L=L.yData[0];l.push([u,y,L,v]);n.push(u);t.push([y,L,v])}}return{values:l,xData:n,yData:t}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);
|
|
202
|
+
t(g.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);e.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
203
|
+
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(d,a)};return function(d,a){function c(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),l=f.seriesTypes.sma,k=e.extend,p=e.merge,t=e.isArray;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(d,e);d.prototype.getValues=function(a,c){var b=a.xData,d=a.yData;a=[];
|
|
204
|
+
var e=[],f=[],g=0,h=0,k=0,l=0,n=b.length,p=c.index;for(c=0;c<n;c++){var r=b[c];var u=t(d[c])?d[c][p]:d[c];g+=r;h+=u;k+=r*u;l+=r*r}d=(n*k-g*h)/(n*l-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(c=0;c<n;c++)r=b[c],u=d*r+g,a[c]=[r,u],e[c]=r,f[c]=u;return{xData:e,yData:f,values:a}};d.defaultOptions=p(l.defaultOptions,{params:{period:void 0,index:3}});return d}(l);k(e.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",e);"";return e});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",
|
|
205
|
+
[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var g=this&&this.__extends||function(){var a=function(c,b){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(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),l=f.seriesTypes.sma,k=e.correctFloat,p=e.defined,t=e.extend,h=e.isArray,
|
|
206
|
+
d=e.merge;e=function(a){function c(){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(c,a);c.prototype.init=function(){var a=arguments,c=a[1].params;this.averageIndicator=f.seriesTypes[c&&c.average?c.average:void 0]||l;this.averageIndicator.prototype.init.apply(this,a)};c.prototype.calculateDisparityIndex=function(a,c){return k(a-c)/c*100};c.prototype.getValues=function(a,c){var b=c.index,d=a.xData,e=a.yData,f=e?e.length:
|
|
207
|
+
0,g=[],k=[],l=[],m=this.averageIndicator,r=h(e[0]);c=m.prototype.getValues(a,c);a=c.yData;c=d.indexOf(c.xData[0]);if(a&&0!==a.length&&p(b)&&!(e.length<=c)){for(m=c;m<f;m++){var t=this.calculateDisparityIndex(r?e[m][b]:e[m],a[m-c]);g.push([d[m],t]);k.push(d[m]);l.push(t)}return{values:g,xData:k,yData:l}}};c.defaultOptions=d(l.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return c}(l);t(e.prototype,{nameBase:"Disparity Index",nameComponents:["period",
|
|
206
208
|
"average"]});f.registerSeriesType("disparityindex",e);"";return e});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
|
|
207
209
|
//# sourceMappingURL=indicators-all.js.map
|