highcharts 10.0.0 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +10 -20
- package/css/themes/dark-unica.css +10 -20
- package/css/themes/grid-light.css +10 -20
- package/css/themes/sand-signika.css +10 -20
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +8 -3
- 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 +11 -11
- package/es-modules/Accessibility/Components/MenuComponent.js +3 -1
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +3 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +34 -17
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +35 -10
- package/es-modules/Accessibility/Components/ZoomComponent.js +30 -70
- package/es-modules/Accessibility/FocusBorder.js +6 -5
- package/es-modules/Accessibility/HighContrastMode.js +1 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +2 -2
- package/es-modules/Accessibility/Options/{Options.js → A11yDefaults.js} +73 -5
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -2
- package/es-modules/Accessibility/Options/{LangOptions.js → LangDefaults.js} +46 -31
- 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 +51 -46
- package/es-modules/Core/Axis/Axis3D.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +9 -9
- package/es-modules/Core/Axis/BrokenAxis.js +1 -1
- package/es-modules/Core/Axis/Color/ColorAxis.js +4 -2
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +7 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +5 -3
- package/es-modules/Core/Axis/GridAxis.js +821 -822
- package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
- package/es-modules/Core/Axis/NavigatorAxis.js +2 -2
- package/es-modules/Core/Axis/OrdinalAxis.js +26 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/RadialAxis.js +1 -1
- package/es-modules/Core/Axis/Stacking/StackItem.js +262 -0
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +468 -0
- package/es-modules/Core/Axis/Tick.js +22 -18
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +732 -0
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +313 -0
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Axis/ZAxis.js +76 -71
- package/es-modules/Core/Chart/Chart.js +42 -9
- package/es-modules/Core/Chart/Chart3D.js +2 -2
- package/es-modules/Core/Chart/ChartDefaults.js +165 -5
- package/es-modules/Core/Chart/GanttChart.js +3 -1
- package/es-modules/Core/Chart/MapChart.js +3 -1
- package/es-modules/Core/Chart/StockChart.js +12 -8
- package/es-modules/Core/Color/Color.js +1 -1
- package/es-modules/Core/DefaultOptions.js +19 -16
- package/es-modules/Core/Geometry/CircleUtilities.js +4 -4
- package/es-modules/Core/Globals.js +2 -1
- package/es-modules/Core/HttpUtilities.js +39 -37
- package/es-modules/Core/Legend/Legend.js +4 -4
- package/es-modules/Core/MSPointer.js +3 -1
- package/es-modules/{Extensions → Core}/Math3D.js +48 -43
- package/es-modules/Core/Navigator.js +31 -14
- package/es-modules/Core/Pointer.js +8 -10
- package/es-modules/Core/Renderer/HTML/AST.js +13 -7
- 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 +132 -192
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +32 -28
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +50 -45
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +5 -3
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +5 -3
- package/es-modules/Core/Scrollbar.js +12 -6
- package/es-modules/Core/ScrollbarDefaults.js +8 -8
- package/es-modules/Core/Series/DataLabel.js +63 -40
- package/es-modules/Core/Series/Point.js +11 -2
- package/es-modules/Core/Series/Series.js +60 -43
- package/es-modules/Core/Series/Series3D.js +4 -2
- package/es-modules/Core/Series/SeriesDefaults.js +11 -6
- package/es-modules/Core/Series/SeriesRegistry.js +6 -29
- package/es-modules/Core/Time.js +6 -7
- package/es-modules/Core/Tooltip.js +17 -6
- package/es-modules/Core/Utilities.js +7 -9
- package/es-modules/Data/DataConverter.js +6 -1
- package/es-modules/Data/DataPromise.js +1 -1
- package/es-modules/Data/DataSeriesComposition.js +288 -0
- package/es-modules/Data/DataSeriesConverter.js +1 -1
- package/es-modules/Data/DataTable.js +14 -12
- package/es-modules/Data/Modifiers/ChainModifier.js +4 -2
- package/es-modules/Data/Modifiers/DataModifier.js +1 -1
- package/es-modules/Data/Modifiers/GroupModifier.js +4 -2
- package/es-modules/Data/Modifiers/InvertModifier.js +10 -8
- package/es-modules/Data/Modifiers/RangeModifier.js +4 -2
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +4 -2
- package/es-modules/Data/Modifiers/SortModifier.js +4 -2
- package/es-modules/Data/Parsers/CSVParser.js +3 -1
- package/es-modules/Data/Parsers/DataParser.js +2 -2
- 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/DataStore.js +1 -1
- package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
- package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
- package/es-modules/Extensions/Annotations/Annotation.js +652 -0
- package/es-modules/Extensions/Annotations/AnnotationChart.js +291 -0
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +624 -0
- package/es-modules/Extensions/Annotations/ControlPoint.js +89 -64
- package/es-modules/Extensions/Annotations/{Mixins/ControllableMixin.js → Controllables/Controllable.js} +300 -241
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +63 -50
- package/es-modules/Extensions/Annotations/Controllables/ControllableDefaults.js +95 -0
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +95 -63
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +50 -44
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +95 -78
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +167 -51
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +53 -52
- package/es-modules/Extensions/Annotations/{Mixins/EventEmitterMixin.js → EventEmitter.js} +136 -116
- package/es-modules/Extensions/Annotations/MockPoint.js +210 -145
- package/es-modules/Extensions/Annotations/NavigationBindings.js +272 -663
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +396 -0
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +98 -0
- package/es-modules/Extensions/Annotations/Popup/Popup.js +295 -0
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +177 -0
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +81 -0
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +609 -0
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +134 -0
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +23 -23
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +15 -21
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +14 -12
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +33 -23
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +67 -65
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +14 -21
- package/es-modules/Extensions/Annotations/Types/Measure.js +259 -251
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +15 -19
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +24 -19
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +17 -15
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +15 -17
- package/es-modules/Extensions/Boost/Boost.js +320 -15
- package/es-modules/Extensions/Boost/BoostChart.js +245 -0
- package/es-modules/Extensions/Boost/BoostSeries.js +927 -0
- package/es-modules/Extensions/Boost/BoostableMap.js +21 -5
- package/es-modules/Extensions/Boost/Boostables.js +13 -2
- package/es-modules/Extensions/Boost/NamedColors.js +15 -6
- package/es-modules/Extensions/Boost/WGLDrawMode.js +36 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +288 -295
- package/es-modules/Extensions/Boost/WGLShader.js +370 -376
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +192 -0
- package/es-modules/Extensions/BoostCanvas.js +70 -48
- package/es-modules/Extensions/Breadcrumbs.js +37 -9
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +638 -602
- package/es-modules/Extensions/DataGrouping.js +68 -28
- package/es-modules/Extensions/Debugger/Debugger.js +60 -22
- 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 +4 -3
- package/es-modules/Extensions/Drilldown.js +15 -14
- package/es-modules/Extensions/{ExportData.js → ExportData/ExportData.js} +358 -498
- package/es-modules/Extensions/ExportData/ExportDataDefaults.js +272 -0
- package/es-modules/Extensions/Exporting/Exporting.js +30 -17
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +10 -8
- package/es-modules/Extensions/Exporting/Fullscreen.js +352 -0
- package/es-modules/Extensions/GeoJSON.js +3 -4
- package/es-modules/Extensions/MarkerClusters.js +5 -3
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- 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 +12 -8
- package/es-modules/Extensions/PatternFill.js +14 -2
- package/es-modules/Extensions/RangeSelector.js +29 -18
- package/es-modules/Extensions/ScrollablePlotArea.js +4 -4
- package/es-modules/Extensions/{SeriesLabel.js → SeriesLabel/SeriesLabel.js} +264 -386
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +124 -0
- package/es-modules/Extensions/SeriesLabel/SeriesLabelUtilities.js +67 -0
- package/es-modules/Extensions/Sonification/ChartSonify.js +1 -1
- package/es-modules/Extensions/Sonification/Earcon.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +9 -9
- package/es-modules/Maps/MapNavigation.js +3 -7
- package/es-modules/Maps/MapPointer.js +1 -1
- package/es-modules/Maps/MapView.js +31 -19
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +1 -1
- package/es-modules/Maps/MapViewOptionsDefault.js +3 -1
- package/es-modules/Maps/Projection.js +13 -11
- package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +3 -1
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +12 -2
- package/es-modules/Series/Area/AreaSeries.js +21 -14
- package/es-modules/Series/{Area3DSeries.js → Area3D/Area3DSeries.js} +42 -20
- package/es-modules/Series/AreaRange/AreaRangePoint.js +24 -11
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +162 -149
- 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/BubbleLegendComposition.js +223 -231
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubbleLegendItem.js +46 -45
- package/es-modules/Series/Bubble/BubblePoint.js +3 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +96 -68
- 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 +8 -4
- package/es-modules/Series/Column3D/Column3DComposition.js +2 -2
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +4 -2
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +17 -13
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +60 -57
- package/es-modules/Series/Cylinder/CylinderComposition.js +1 -1
- package/es-modules/Series/Cylinder/CylinderPoint.js +3 -1
- package/es-modules/Series/Cylinder/CylinderSeries.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +27 -12
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +19 -3
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -1
- package/es-modules/Series/DragNodesComposition.js +166 -0
- 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 +4 -2
- package/es-modules/Series/Gantt/GanttPoint.js +3 -1
- package/es-modules/Series/Gantt/GanttSeries.js +4 -2
- package/es-modules/Series/Gauge/GaugePoint.js +3 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +196 -174
- package/es-modules/Series/GraphLayoutComposition.js +130 -0
- 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 +34 -34
- 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 +24 -12
- package/es-modules/Series/Lollipop/LollipopSeries.js +18 -11
- package/es-modules/Series/Map/MapPoint.js +8 -6
- package/es-modules/Series/Map/MapSeries.js +115 -28
- package/es-modules/Series/MapBubble/MapBubblePoint.js +18 -18
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +69 -21
- package/es-modules/Series/MapLine/MapLineSeries.js +18 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +4 -2
- package/es-modules/Series/MapPoint/MapPointSeries.js +14 -2
- package/es-modules/Series/Networkgraph/EulerIntegration.js +199 -0
- package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +290 -0
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +401 -0
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +545 -0
- package/es-modules/Series/Networkgraph/QuadTree.js +66 -272
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +271 -0
- package/es-modules/Series/Networkgraph/{Layouts.js → ReingoldFruchtermanLayout.js} +240 -259
- package/es-modules/Series/Networkgraph/VerletIntegration.js +193 -0
- package/es-modules/Series/NodesComposition.js +45 -40
- package/es-modules/Series/OHLC/OHLCPoint.js +3 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +3 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +3 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +14 -4
- package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +81 -0
- package/es-modules/Series/PackedBubble/{PackedBubbleComposition.js → PackedBubbleLayout.js} +114 -79
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +5 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +200 -571
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +394 -0
- 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 +3 -1
- package/es-modules/Series/Pie/PieSeries.js +54 -38
- package/es-modules/Series/Pie3D/Pie3DPoint.js +3 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +3 -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/SankeyPoint.js +3 -1
- package/es-modules/Series/Sankey/SankeySeries.js +38 -10
- package/es-modules/Series/Scatter/ScatterSeries.js +14 -6
- package/es-modules/Series/Scatter3D/Scatter3DPoint.js +3 -1
- package/es-modules/Series/Scatter3D/Scatter3DSeries.js +4 -2
- package/es-modules/Series/SeriesOnPointComposition.js +395 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +6 -4
- 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 +8 -9
- package/es-modules/Series/Sunburst/SunburstSeries.js +32 -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 +8 -4
- package/es-modules/Series/Treemap/TreemapPoint.js +8 -4
- package/es-modules/Series/Treemap/TreemapSeries.js +12 -10
- 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 +5 -5
- 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 +14 -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 +12 -9
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +1 -1
- package/es-modules/Series/XRange/XRangePoint.js +57 -46
- package/es-modules/Series/XRange/XRangeSeries.js +124 -274
- package/es-modules/Series/XRange/XRangeSeriesDefaults.js +211 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +13 -3
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +8 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +27 -14
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +9 -2
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +19 -4
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +18 -3
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +9 -3
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +11 -5
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +19 -4
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +23 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +18 -2
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +10 -3
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +28 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +18 -7
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +22 -9
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -1
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +13 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +37 -16
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +28 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +15 -2
- package/es-modules/Stock/Indicators/LinearRegression/{LinearRegression.js → LinearRegressionIndicator.js} +14 -2
- package/es-modules/Stock/Indicators/LinearRegressionAngle/{LinearRegressionAngle.js → LinearRegressionAngleIndicator.js} +15 -8
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/{LinearRegressionIntercept.js → LinearRegressionInterceptIndicator.js} +14 -2
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/{LinearRegressionSlopes.js → LinearRegressionSlopesIndicator.js} +14 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +47 -23
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +26 -11
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +33 -3
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +85 -95
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +19 -2
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +13 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +16 -9
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +17 -5
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +19 -4
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +19 -7
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +19 -13
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +28 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +18 -3
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +23 -3
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +4 -2
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +28 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +18 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +23 -7
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +28 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +17 -5
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +35 -4
- package/es-modules/Stock/Indicators/VBP/VBPPoint.js +9 -7
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +14 -2
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +33 -3
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +13 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +14 -2
- package/es-modules/Stock/StockToolbar.js +568 -0
- package/es-modules/Stock/StockTools.js +256 -0
- package/es-modules/Stock/StockToolsBindings.js +140 -647
- package/es-modules/Stock/StockToolsDefaults.js +1190 -0
- package/es-modules/Stock/StockToolsGui.js +150 -1771
- package/es-modules/Stock/StockToolsUtilities.js +423 -0
- package/es-modules/masters/highcharts-3d.src.js +5 -4
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +7 -6
- package/es-modules/masters/highcharts.src.js +5 -2
- 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 +5 -7
- 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 +5 -5
- 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 +6 -4
- package/es-modules/masters/modules/annotations.src.js +6 -4
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +6 -2
- 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 +5 -3
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +5 -2
- package/es-modules/masters/modules/exporting.src.js +1 -2
- package/es-modules/masters/modules/full-screen.src.js +6 -2
- 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 +3 -2
- 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 +2 -2
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +5 -2
- 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 +10 -3
- 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 +2 -2
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +5 -2
- 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 +98 -99
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +233 -212
- package/highcharts-gantt.js +809 -805
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +3817 -3470
- package/highcharts-more.d.ts +15 -8
- package/highcharts-more.js +201 -195
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +15 -8
- package/highcharts-more.src.js +7994 -7461
- package/highcharts.d.ts +11364 -1136
- package/highcharts.js +593 -591
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +11364 -1136
- package/highcharts.src.js +1408 -1117
- package/highmaps.js +762 -758
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2237 -1721
- package/highstock.js +796 -792
- package/highstock.js.map +1 -1
- package/highstock.src.js +1617 -1224
- package/indicators/acceleration-bands.d.ts +1 -17
- package/indicators/acceleration-bands.js +11 -12
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +1 -17
- package/indicators/acceleration-bands.src.js +99 -101
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +6 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +25 -16
- package/indicators/apo.js +1 -1
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +6 -1
- 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 +95 -101
- 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 +104 -101
- package/indicators/atr.js +1 -1
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +17 -4
- 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 +97 -103
- package/indicators/cci.js +1 -1
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +17 -4
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +13 -5
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +21 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +16 -2
- package/indicators/dema.js +1 -1
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +26 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +12 -12
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +104 -105
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +20 -9
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +35 -16
- package/indicators/indicators-all.d.ts +1 -17
- package/indicators/indicators-all.js +200 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +1 -17
- package/indicators/indicators-all.src.js +882 -284
- package/indicators/indicators.js +1 -1
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +12 -2
- package/indicators/keltner-channels.d.ts +1 -17
- package/indicators/keltner-channels.js +11 -12
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +1 -17
- package/indicators/keltner-channels.src.js +114 -99
- package/indicators/klinger.js +14 -14
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +101 -102
- package/indicators/macd.js +10 -9
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +46 -25
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +24 -11
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +31 -3
- package/indicators/natr.js +1 -1
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +17 -3
- package/indicators/obv.js +1 -1
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +32 -19
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +15 -5
- 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 +102 -107
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +26 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +17 -4
- package/indicators/regressions.js +12 -11
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +50 -15
- package/indicators/roc.js +1 -1
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +16 -3
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +21 -3
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +26 -1
- 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 +104 -99
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +21 -9
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +15 -5
- package/indicators/trix.js +1 -1
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +26 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +38 -10
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +12 -2
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +31 -3
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +12 -2
- package/modules/accessibility.js +246 -242
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +797 -664
- package/modules/annotations-advanced.d.ts +1 -1
- package/modules/annotations-advanced.js +193 -192
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +1 -1
- package/modules/annotations-advanced.src.js +9229 -8589
- package/modules/annotations.d.ts +1 -1
- package/modules/annotations.js +128 -126
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.d.ts +1 -1
- package/modules/annotations.src.js +6190 -5528
- package/modules/arc-diagram.js +7 -7
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.js +10 -2
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.d.ts +19 -0
- package/modules/boost-canvas.js +81 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.d.ts +19 -0
- package/modules/boost-canvas.src.js +3342 -52
- package/modules/boost.d.ts +8 -26
- package/modules/boost.js +88 -80
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +8 -26
- package/modules/boost.src.js +2435 -1889
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +2 -2
- package/modules/bullet.js +1 -1
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +2 -5
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +9 -5
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +2 -2
- package/modules/cylinder.js +9 -9
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +2 -2
- package/modules/data.d.ts +12 -12
- package/modules/data.js +33 -34
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +12 -12
- package/modules/data.src.js +862 -829
- package/modules/datagrouping.d.ts +22 -0
- package/modules/datagrouping.js +9 -9
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +22 -0
- package/modules/datagrouping.src.js +69 -29
- package/modules/debugger.js +8 -6
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +85 -40
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +41 -14
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +2 -2
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +5 -4
- package/modules/drilldown.d.ts +0 -10
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +0 -10
- package/modules/drilldown.src.js +59 -25
- 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 +24 -12
- package/modules/export-data.js +25 -22
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +641 -469
- 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 +442 -319
- package/modules/full-screen.js +8 -8
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +196 -78
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +3 -3
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +2 -2
- package/modules/gantt.js +219 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +2420 -2364
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +890 -891
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +137 -108
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +9 -9
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +6 -6
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +37 -22
- package/modules/map.d.ts +3 -3
- package/modules/map.js +171 -169
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +3 -3
- package/modules/map.src.js +830 -605
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +4 -6
- package/modules/networkgraph.d.ts +1 -17
- package/modules/networkgraph.js +55 -50
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +1 -17
- package/modules/networkgraph.src.js +2339 -2008
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +3 -3
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +5 -5
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +3 -3
- package/modules/organization.js +15 -15
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +12 -4
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +14 -9
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +15 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +15 -2
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.d.ts +1 -17
- package/modules/sankey.js +32 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +1 -17
- package/modules/sankey.src.js +102 -57
- package/modules/series-label.js +18 -18
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +474 -387
- package/modules/series-on-point.js +18 -0
- package/modules/series-on-point.js.map +1 -0
- package/modules/series-on-point.src.js +468 -0
- package/modules/solid-gauge.js +4 -4
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +6 -6
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +1 -1
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.d.ts +2 -2
- package/modules/sonification.src.js +4 -8
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.d.ts +1 -23
- package/modules/stock-tools.js +109 -179
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.d.ts +1 -23
- package/modules/stock-tools.src.js +2652 -6347
- package/modules/stock.d.ts +8 -0
- package/modules/stock.js +205 -204
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +8 -0
- package/modules/stock.src.js +208 -106
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +73 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +251 -193
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +1 -1
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +6 -4
- package/modules/treegrid.js +57 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +1908 -1901
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +217 -183
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +2 -2
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +3 -5
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +82 -111
- package/modules/windbarb.js +1 -1
- package/modules/windbarb.src.js +1 -1
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +84 -113
- package/modules/xrange.js +17 -17
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +411 -397
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/brand-dark.js +1 -1
- package/themes/brand-dark.src.js +1 -1
- package/themes/brand-light.js +1 -1
- package/themes/brand-light.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.src.js +11 -11
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.src.js +10 -10
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Core/Axis/StackingAxis.js +0 -216
- package/es-modules/Core/Axis/TreeGridAxis.js +0 -720
- package/es-modules/Core/Axis/TreeGridTick.js +0 -317
- package/es-modules/Extensions/Annotations/Annotations.js +0 -1449
- package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +0 -179
- package/es-modules/Extensions/Annotations/Popup.js +0 -1123
- package/es-modules/Extensions/Boost/BoostAttach.js +0 -150
- package/es-modules/Extensions/Boost/BoostInit.js +0 -323
- package/es-modules/Extensions/Boost/BoostOptions.js +0 -245
- package/es-modules/Extensions/Boost/BoostOverrides.js +0 -386
- package/es-modules/Extensions/Boost/BoostUtils.js +0 -255
- package/es-modules/Extensions/Boost/WGLVBuffer.js +0 -153
- package/es-modules/Extensions/FullScreen.js +0 -240
- package/es-modules/Extensions/Polar.js +0 -740
- package/es-modules/Extensions/Stacking.js +0 -517
- package/es-modules/Series/ColorMapMixin.js +0 -84
- package/es-modules/Series/DrawPointComposition.js +0 -114
- package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -132
- package/es-modules/Series/Networkgraph/Integrations.js +0 -348
- package/es-modules/Series/Networkgraph/Networkgraph.js +0 -1178
- package/es-modules/Series/XRange/XRangeComposition.js +0 -49
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highstock JS v10.
|
|
2
|
+
Highstock JS v10.2.1 (2022-08-29)
|
|
3
3
|
|
|
4
4
|
All technical indicators for Highcharts Stock
|
|
5
5
|
|
|
@@ -7,202 +7,203 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
(function(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
l.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var
|
|
14
|
-
|
|
15
|
-
function(){
|
|
16
|
-
this.options.params)||l:l;if(
|
|
17
|
-
w&&(this.xData=l.xData,this.yData=l.yData,this.options.data=l.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var
|
|
18
|
-
linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(
|
|
19
|
-
|
|
20
|
-
l+=
|
|
21
|
-
|
|
22
|
-
a);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
new l)}}();
|
|
26
|
-
function(
|
|
27
|
-
greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
a
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
else if(
|
|
62
|
-
nameComponents:["periods"]});f.registerSeriesType("chaikin",
|
|
63
|
-
(a.prototype=
|
|
64
|
-
1]-a[
|
|
65
|
-
|
|
66
|
-
arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(
|
|
67
|
-
b
|
|
68
|
-
function(
|
|
69
|
-
void 0;return a}g(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
b
|
|
73
|
-
return h}(
|
|
74
|
-
a.prototype,new
|
|
75
|
-
a,{index:l,period:
|
|
76
|
-
|
|
77
|
-
l.plotX-c.plotX;l=l.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+
|
|
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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),
|
|
79
|
-
typeof a[l]});return b?void 0:a};
|
|
80
|
-
fill:
|
|
81
|
-
!0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};
|
|
82
|
-
b.pointArrayMap[K],w(D[k])&&
|
|
83
|
-
b["graph"+c]=b.graph);
|
|
84
|
-
else D=l[0].plotY>k[0].plotY?0:1;
|
|
85
|
-
c;b.options=
|
|
86
|
-
b=b.periodSenkouSpanB;var
|
|
87
|
-
|
|
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
|
|
89
|
-
"period","periodTenkan"]});g.registerSeriesType("ikh",
|
|
90
|
-
|
|
91
|
-
a.prototype.getValues=function(a,
|
|
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}(
|
|
93
|
-
"bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});
|
|
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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),
|
|
95
|
-
l.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};l.prototype.isValidData=function(b){var c=this.chart,l=this.options,e=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(l.params.volumeSeriesID)))||
|
|
96
|
-
b,c,l,
|
|
97
|
-
-1:
|
|
98
|
-
|
|
99
|
-
return l}(
|
|
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,
|
|
101
|
-
void 0;a.graphsignal=void 0;a.macdZones=void 0;a.signalZones=void 0;return a}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
b
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
function(a,b){
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
b
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
e
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
a
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
d
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
t(
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
d
|
|
206
|
-
|
|
207
|
-
|
|
10
|
+
(function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){d(v);d.Highcharts=v;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function v(d,f,g,k){d.hasOwnProperty(f)||(d[f]=k.apply(null,g),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:f,module:d[f]}})))}
|
|
11
|
+
d=d?d._modules:{};v(d,"Stock/Indicators/SMA/SMAComposition.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){});v(d,"Stock/Indicators/SMA/SMAIndicator.js",[d["Core/Chart/Chart.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var b=function(a,c){b=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 b(a,
|
|
12
|
+
c)};return function(a,c){function l(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),p=f.seriesTypes.line,t=g.addEvent,n=g.error,h=g.extend,e=g.isArray,a=g.merge,c=g.pick,b=g.splat;g=function(l){function w(){var b=null!==l&&l.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}k(w,l);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(b){b()});
|
|
13
|
+
l.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var b=this.name,a=[];b||((this.nameComponents||[]).forEach(function(b,l){a.push(this.options.params[b]+c(this.nameSuffixes[l],""))},this),b=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return b};w.prototype.getValues=function(b,a){var c=a.period,l=b.xData;b=b.yData;var w=b.length,z=0,B=0,h=[],f=[],g=[],d=-1;if(!(l.length<c)){for(e(b[0])&&(d=a.index?a.index:0);z<c-1;)B+=0>d?b[z]:b[z][d],
|
|
14
|
+
z++;for(a=z;a<w;a++){B+=0>d?b[a]:b[a][d];var n=[l[a],B/c];h.push(n);f.push(n[0]);g.push(n[1]);B-=0>d?b[a-z]:b[a-z][d]}return{values:h,xData:f,yData:g}}};w.prototype.init=function(b,a){var c=this;l.prototype.init.call(c,b,a);a=t(d,"afterLinkSeries",function(){var a=!!c.dataEventsToUnbind.length;if(c.linkedParent)if(a||(c.dataEventsToUnbind.push(t(c.linkedParent,"updatedData",function(){c.recalculateValues()})),c.calculateOn.xAxis&&c.dataEventsToUnbind.push(t(c.linkedParent.xAxis,c.calculateOn.xAxis,
|
|
15
|
+
function(){c.recalculateValues()}))),"init"===c.calculateOn.chart)c.processedYData||c.recalculateValues();else{if(!a)var l=t(c.chart,c.calculateOn.chart,function(){c.recalculateValues();l()})}else return n("Series "+c.options.linkedTo+" not found! Check `linkedTo`.",!1,b)},{order:0});c.dataEventsToUnbind=[];c.eventsToUnbind.push(a)};w.prototype.recalculateValues=function(){var a=this.points||[],c=(this.xData||[]).length,l={values:[],xData:[],yData:[]},e=[],w=!0;l=this.linkedParent.options?this.getValues(this.linkedParent,
|
|
16
|
+
this.options.params)||l:l;if(c&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var q=this.xAxis.min;var h=this.xAxis.max}c=this.cropData(l.xData,l.yData,q,h);for(q=0;q<c.xData.length;q++)e.push([c.xData[q]].concat(b(c.yData[q])));c=l.xData.indexOf(this.xData[0]);q=l.xData.indexOf(this.xData[this.xData.length-1]);-1===c&&q===l.xData.length-2&&e[0][0]===a[0].x&&e.shift();this.updateData(e)}else l.xData.length!==c-1&&l.xData.length!==c+1&&(w=!1,this.updateData(l.values));
|
|
17
|
+
w&&(this.xData=l.xData,this.yData=l.yData,this.options.data=l.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var b=this.options.compareToMain,c=this.linkedParent;l.prototype.processData.apply(this,arguments);this.dataModify&&c&&c.dataModify&&c.dataModify.compareValue&&b&&(this.dataModify.compareValue=c.dataModify.compareValue)};w.defaultOptions=a(p.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},
|
|
18
|
+
linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(p);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});f.registerSeriesType("sma",g);"";return g});v(d,"Stock/Indicators/EMA/EMAIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.correctFloat,t=f.isArray,n=f.merge;f=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.accumulatePeriodPoints=function(a,c,b){for(var l=0,e=0,z;e<a;)z=0>c?b[e]:b[e][c],
|
|
20
|
+
l+=z,e++;return l};e.prototype.calculateEma=function(a,c,b,l,e,z,h){a=a[b-1];c=0>z?c[b-1]:c[b-1][z];l="undefined"===typeof e?h:p(c*l+e*(1-l));return[a,l]};e.prototype.getValues=function(a,c){var b=c.period,l=a.xData,e=(a=a.yData)?a.length:0,z=2/(b+1),h=[],f=[],g=[],m=-1;if(!(e<b)){t(a[0])&&(m=c.index?c.index:0);c=this.accumulatePeriodPoints(b,m,a);for(c/=b;b<e+1;b++){var q=this.calculateEma(l,a,b,z,q,m,c);h.push(q);f.push(q[0]);g.push(q[1]);q=q[1]}return{values:h,xData:f,yData:g}}};e.defaultOptions=
|
|
21
|
+
n(k.defaultOptions,{params:{index:3,period:9}});return e}(k);d.registerSeriesType("ema",f);"";return f});v(d,"Stock/Indicators/AD/ADIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,
|
|
22
|
+
a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.error,t=f.extend,n=f.merge;f=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.populateAverage=function(a,c,b,l,e){e=c[l][1];var w=c[l][2];c=c[l][3];b=b[l];return[a[l],c===e&&c===w||e===w?0:(2*c-w-e)/(e-w)*b]};e.prototype.getValues=function(a,c){var b=c.period,l=a.xData,w=a.yData,z=c.volumeSeriesID,h=a.chart.get(z);
|
|
23
|
+
c=h&&h.yData;var f=w?w.length:0,g=[],m=[],q=[];if(!(l.length<=b&&f&&4!==w[0].length)){if(h){for(z=b;z<f;z++)a=g.length,h=e.populateAverage(l,w,c,z,b),0<a&&(h[1]+=g[a-1][1]),g.push(h),m.push(h[0]),q.push(h[1]);return{values:g,xData:m,yData:q}}p("Series "+z+" not found! Check `volumeSeriesID`.",!0,a.chart)}};e.defaultOptions=n(k.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return e}(k);t(f.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});d.registerSeriesType("ad",
|
|
24
|
+
f);"";return f});v(d,"Stock/Indicators/AO/AOIndicator.js",[d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var a=function(b,c){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(b,c)};return function(b,c){function l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,
|
|
25
|
+
new l)}}();d=d.noop;var p=f.seriesTypes.sma,t=f.seriesTypes.column.prototype,n=g.extend,h=g.merge,e=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}k(b,c);b.prototype.drawGraph=function(){var b=this.options,a=this.points,c=b.greaterBarColor;b=b.lowerBarColor;var e=a[0];if(!this.userOptions.color&&e)for(e.color=c,e=1;e<a.length;e++)a[e].color=a[e].y>a[e-1].y?c:a[e].y<a[e-1].y?b:a[e-1].color};
|
|
26
|
+
b.prototype.getValues=function(b){var c=b.xData||[];b=b.yData||[];var l=b.length,h=[],f=[],g=[],m=0,q=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&&(m=e(m+r));q=e(q+r)}for(A=33;A<l;A++){r=(b[A][1]+b[A][2])/2;m=e(m+r);q=e(q+r);r=m/5;var u=q/34;r=e(r-u);h.push([c[A],r]);f.push(c[A]);g.push(r);r=A+1-5;u=A+1-34;m=e(m-(b[r][1]+b[r][2])/2);q=e(q-(b[u][1]+b[u][2])/2)}return{values:h,xData:f,yData:g}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,
|
|
27
|
+
period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return b}(p);n(g.prototype,{nameBase:"AO",nameComponents:!1,markerAttribs:d,getColumnMetrics:t.getColumnMetrics,crispCol:t.crispCol,translate:t.translate,drawPoints:t.drawPoints});f.registerSeriesType("ao",g);"";return g});v(d,"Stock/Indicators/MultipleLinesComposition.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=
|
|
28
|
+
d.seriesTypes.sma.prototype,k=f.defined,p=f.error,t=f.merge,n;(function(h){function e(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(e(b))});return c}function c(){var b=this,c=b.linesApiNames,l=b.areaLinesNames,w=b.points,h=b.options,z=b.graph,f={options:{gapSize:h.gapSize}},B=[],x=a(b,b.pointValKey),d=w.length,N;x.forEach(function(b,a){for(B[a]=[];d--;)N=w[d],B[a].push({x:N.x,plotX:N.plotX,plotY:N[b],isNull:!k(N[b])});
|
|
29
|
+
d=w.length});if(b.userOptions.fillColor&&l.length){var n=x.indexOf(e(l[0]));n=B[n];l=1===l.length?w:B[x.indexOf(e(l[1]))];x=b.color;b.points=l;b.nextPoints=n;b.color=b.userOptions.fillColor;b.options=t(w,f);b.graph=b.area;b.fillGraph=!0;g.drawGraph.call(b);b.area=b.graph;delete b.nextPoints;delete b.fillGraph;b.color=x}c.forEach(function(a,c){B[c]?(b.points=B[c],h[a]?b.options=t(h[a].styles,f):p('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):p('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});b.points=w;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 l=a.length-1;0<=l;l--)c.push(a[l])}}else c=g.getGraphPath.apply(this,
|
|
31
|
+
arguments);return c}function l(b){var a=[];(this.pointArrayMap||[]).forEach(function(c){a.push(b[c])});return a}function w(){var b=this,c=this.pointArrayMap,l=[],e;l=a(this);g.translate.apply(this,arguments);this.points.forEach(function(a){c.forEach(function(c,w){e=a[c];b.dataModify&&(e=b.dataModify.modifyValue(e));null!==e&&(a[l[w]]=b.yAxis.toPixels(e,!0))})})}var z=[],f=["bottomLine"],x=["top","bottom"],d=["top"];h.compose=function(a){if(-1===z.indexOf(a)){z.push(a);var e=a.prototype;e.linesApiNames=
|
|
32
|
+
e.linesApiNames||f.slice();e.pointArrayMap=e.pointArrayMap||x.slice();e.pointValKey=e.pointValKey||"top";e.areaLinesNames=e.areaLinesNames||d.slice();e.drawGraph=c;e.getGraphPath=b;e.toYData=l;e.translate=w}return a}})(n||(n={}));return n});v(d,"Stock/Indicators/Aroon/AroonIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){function k(a,c){var b=a[0],l=0,e;for(e=1;e<a.length;e++)if("max"===c&&a[e]>=b||"min"===
|
|
33
|
+
c&&a[e]<=b)b=a[e],l=e;return l}var p=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 l(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)}}(),t=f.seriesTypes.sma,n=g.extend,h=g.merge,e=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}p(c,a);c.prototype.getValues=function(b,a){a=a.period;var c=b.xData,l=(b=b.yData)?b.length:0,h=[],f=[],g=[],m;for(m=a-1;m<l;m++){var q=b.slice(m-a+1,m+2);var A=k(q.map(function(b){return e(b[2],b)}),"min");q=k(q.map(function(b){return e(b[1],b)}),"max");q=q/a*100;A=A/a*100;c[m+1]&&(h.push([c[m+1],q,A]),f.push(c[m+1]),g.push([q,A]))}return{values:h,xData:f,yData:g}};c.defaultOptions=h(t.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}(t);n(g.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});d.compose(g);f.registerSeriesType("aroon",g);"";return g});v(d,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",
|
|
36
|
+
[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),p=f.seriesTypes.aroon,
|
|
37
|
+
t=g.extend,n=g.merge;g=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(e,h);e.prototype.getValues=function(a,c){var b=[],l=[],e=[];a=h.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var z=a.yData[c][0];var f=a.yData[c][1];z-=f;b.push([a.xData[c],z]);l.push(a.xData[c]);e.push(z)}return{values:b,xData:l,yData:e}};e.defaultOptions=n(p.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});
|
|
38
|
+
return e}(p);t(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});d.compose(p);f.registerSeriesType("aroonoscillator",g);"";return g});v(d,"Stock/Indicators/ATR/ATRIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){function g(h,e){return Math.max(h[1]-h[2],"undefined"===typeof e?0:Math.abs(h[1]-e[3]),"undefined"===typeof e?0:Math.abs(h[2]-e[3]))}var k=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),p=d.seriesTypes.sma,t=f.isArray,n=f.merge;f=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}k(e,h);e.prototype.getValues=function(a,c){c=c.period;var b=
|
|
40
|
+
a.xData,l=(a=a.yData)?a.length:0,e=1,h=0,f=0,x=[],d=[],m=[],q;var A=[[b[0],a[0]]];if(!(b.length<=c)&&t(a[0])&&4===a[0].length){for(q=1;q<=l;q++)if(A.push([b[q],a[q]]),c<e){var r=c;var u=b[q-1],n=g(a[q-1],a[q-2]);r=[u,(h*(r-1)+n)/r];h=r[1];x.push(r);d.push(r[0]);m.push(r[1])}else c===e?(h=f/(q-1),x.push([b[q-1],h]),d.push(b[q-1]),m.push(h)):f+=g(a[q-1],a[q-2]),e++;return{values:x,xData:d,yData:m}}};e.defaultOptions=n(p.defaultOptions,{params:{index:void 0}});return e}(p);d.registerSeriesType("atr",
|
|
41
|
+
f);"";return f});v(d,"Stock/Indicators/BB/BBIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var e=function(a,c){e=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 e(a,c)};return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):
|
|
42
|
+
(b.prototype=c.prototype,new b)}}(),p=f.seriesTypes.sma,t=g.extend,n=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.init=function(){f.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,e=b.standardDeviation,h=a.xData,
|
|
43
|
+
B=(a=a.yData)?a.length:0,x=[],g=[],m=[],q;if(!(h.length<c)){var A=n(a[0]);for(q=c;q<=B;q++){var r=h.slice(q-c,q);var u=a.slice(q-c,q);var d=f.seriesTypes.sma.prototype.getValues.call(this,{xData:r,yData:u},b);r=d.xData[0];d=d.yData[0];for(var k=0,p=u.length,t=0;t<p;t++){var y=(A?u[t][b.index]:u[t])-d;k+=y*y}y=Math.sqrt(k/(p-1));u=d+e*y;y=d-e*y;x.push([r,u,d,y]);g.push(r);m.push([u,d,y])}return{values:x,xData:g,yData:m}}};a.defaultOptions=h(p.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}(p);t(g.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","standardDeviation"],pointArrayMap:["top","middle",
|
|
45
|
+
"bottom"],pointValKey:"middle"});d.compose(g);f.registerSeriesType("bb",g);"";return g});v(d,"Stock/Indicators/CCI/CCIIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){function g(h){return h.reduce(function(e,a){return e+a},0)}var k=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,
|
|
46
|
+
a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),p=d.seriesTypes.sma,t=f.isArray,n=f.merge;f=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}k(e,h);e.prototype.getValues=function(a,c){c=c.period;var b=a.xData,l=(a=a.yData)?a.length:0,e=[],h=1,f=[],x=[],d=[];if(!(b.length<=c)&&t(a[0])&&4===a[0].length){for(;h<c;){var m=a[h-1];e.push((m[1]+m[2]+m[3])/3);h++}for(h=
|
|
47
|
+
c;h<=l;h++){m=a[h-1];m=(m[1]+m[2]+m[3])/3;var q=e.push(m);var A=e.slice(q-c);q=g(A)/c;var r,u=A.length,n=0;for(r=0;r<u;r++)n+=Math.abs(q-A[r]);A=n/c;m=(m-q)/(.015*A);f.push([b[h-1],m]);x.push(b[h-1]);d.push(m)}return{values:f,xData:x,yData:d}}};e.defaultOptions=n(p.defaultOptions,{params:{index:void 0}});return e}(p);d.registerSeriesType("cci",f);"";return f});v(d,"Stock/Indicators/CMF/CMFIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||
|
|
48
|
+
function(){var f=function(d,h){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var c in a)a.hasOwnProperty(c)&&(e[c]=a[c])};return f(d,h)};return function(d,h){function e(){this.constructor=d}f(d,h);d.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),k=d.seriesTypes.sma,p=f.merge;f=function(f){function d(){var h=null!==f&&f.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(d,f);d.prototype.isValid=function(){var h=this.chart,e=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(e.params.volumeSeriesID));var c=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=e.params.period&&h.xData&&h.xData.length>=e.params.period&&c)};d.prototype.getValues=function(h,e){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,
|
|
50
|
+
e.period)};d.prototype.getMoneyFlow=function(h,e,a,c){function b(b,a){var c=b[1],l=b[2];b=b[3];return null!==a&&null!==c&&null!==l&&null!==b&&c!==l?(b-l-(c-b))/(c-l)*a:(A=q,null)}var l=e.length,w=[],f=0,B=0,x=[],d=[],m=[],q,A=-1;if(0<c&&c<=l){for(q=0;q<c;q++)w[q]=b(e[q],a[q]),f+=a[q],B+=w[q];x.push(h[q-1]);d.push(q-A>=c&&0!==f?B/f:null);for(m.push([x[0],d[0]]);q<l;q++){w[q]=b(e[q],a[q]);f-=a[q-c];f+=a[q];B-=w[q-c];B+=w[q];var r=[h[q],q-A>=c?B/f:null];x.push(r[0]);d.push(r[1]);m.push([r[0],r[1]])}}return{values:m,
|
|
51
|
+
xData:x,yData:d}};d.defaultOptions=p(k.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return d}(k);d.registerSeriesType("cmf",f);"";return f});v(d,"Stock/Indicators/DMI/DMIIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){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)&&
|
|
52
|
+
(b[c]=a[c])};return a(c,b)};return function(c,b){function l(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)}}(),p=f.seriesTypes.sma,t=g.correctFloat,n=g.extend,h=g.isArray,e=g.merge;g=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;return b}k(c,a);c.prototype.calculateDM=function(b,a,c){var l=b[a][1],e=b[a][2],w=b[a-1][1];b=b[a-1][2];return t(l-w>b-e?c?Math.max(l-w,0):0:c?0:Math.max(b-e,0))};c.prototype.calculateDI=
|
|
53
|
+
function(b,a){return b/a*100};c.prototype.calculateDX=function(b,a){return t(Math.abs(b-a)/Math.abs(b+a)*100)};c.prototype.smoothValues=function(b,a,c){return t(b-b/c+a)};c.prototype.getTR=function(a,c){return t(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,l=(a=a.yData)?a.length:0,e=[],f=[],d=[];if(!(b.length<=c)&&h(a[0])&&4===a[0].length){var m=0,q=0,A=0,r;for(r=1;r<l;r++)if(r<=c){var u=this.calculateDM(a,r,!0);
|
|
54
|
+
var g=this.calculateDM(a,r);var n=this.getTR(a[r],a[r-1]);m+=u;q+=g;A+=n;r===c&&(n=this.calculateDI(m,A),g=this.calculateDI(q,A),u=this.calculateDX(m,q),e.push([b[r],u,n,g]),f.push(b[r]),d.push([u,n,g]))}else u=this.calculateDM(a,r,!0),g=this.calculateDM(a,r),n=this.getTR(a[r],a[r-1]),m=this.smoothValues(m,u,c),q=this.smoothValues(q,g,c),A=this.smoothValues(A,n,c),n=this.calculateDI(m,A),g=this.calculateDI(q,A),u=this.calculateDX(m,q),e.push([b[r],u,n,g]),f.push(b[r]),d.push([u,n,g]);return{values:e,
|
|
55
|
+
xData:f,yData:d}}};c.defaultOptions=e(p.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}(p);n(g.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});d.compose(g);f.registerSeriesType("dmi",g);"";return g});v(d,"Stock/Indicators/DPO/DPOIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){function g(a,c,b,l,w){c=e(c[b][l],
|
|
57
|
+
c[b]);return w?h(a-c):h(a+c)}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 l(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)}}(),p=d.seriesTypes.sma,t=f.extend,n=f.merge,h=f.correctFloat,e=f.pick;f=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}k(c,a);c.prototype.getValues=function(a,c){var b=c.period;c=c.index;var l=b+Math.floor(b/2+1),h=a.xData||[];a=a.yData||[];var f=a.length,d=[],m=[],q=[],A=0,r,u;if(!(h.length<=l)){for(r=0;r<b-1;r++)A=g(A,a,r,c);for(u=0;u<=f-l;u++){var n=u+b-1;r=u+l-1;A=g(A,a,n,c);n=e(a[r][c],a[r]);n-=A/b;A=g(A,a,u,c,!0);d.push([h[r],n]);m.push(h[r]);q.push(n)}return{values:d,xData:m,yData:q}}};c.defaultOptions=n(p.defaultOptions,{params:{index:0,
|
|
59
|
+
period:21}});return c}(p);t(f.prototype,{nameBase:"DPO"});d.registerSeriesType("dpo",f);"";return f});v(d,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[d["Stock/Indicators/AD/ADIndicator.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){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,
|
|
60
|
+
b){function l(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(l.prototype=b.prototype,new l)}}(),p=f.seriesTypes.ema,t=g.correctFloat,n=g.extend,h=g.merge,e=g.error;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;return b}k(c,a);c.prototype.getValues=function(a,c){var b=c.periods,l=c.period,h=[],f=[],g=[],m;if(2!==b.length||b[1]<=b[0])e('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
|
|
61
|
+
else if(c=d.prototype.getValues.call(this,a,{volumeSeriesID:c.volumeSeriesID,period:l}))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(m=0;m<c.yData.length;m++)l=t(a.yData[m+b]-c.yData[m]),h.push([c.xData[m],l]),f.push(c.xData[m]),g.push(l);return{values:h,xData:f,yData:g}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return c}(p);n(g.prototype,{nameBase:"Chaikin Osc",
|
|
62
|
+
nameComponents:["periods"]});f.registerSeriesType("chaikin",g);"";return g});v(d,"Stock/Indicators/CMO/CMOIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var f=function(h,e){f=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 f(h,e)};return function(h,e){function a(){this.constructor=h}f(h,e);h.prototype=null===e?Object.create(e):
|
|
63
|
+
(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.sma,p=f.isNumber,t=f.merge;f=function(f){function h(){var e=null!==f&&f.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,f);h.prototype.getValues=function(e,a){var c=a.period,b=e.xData,l=e.yData;e=l?l.length:0;var h=[],f=[],d=[],x,g=a.index;if(!(b.length<c)){p(l[0])?a=l:(g=Math.min(g,l[0].length-1),a=l.map(function(a){return a[g]}));var m=0,q=l=0;for(x=c;0<x;x--)a[x]>a[x-1]?l+=a[x]-a[x-1]:a[x]<a[x-1]&&(q+=a[x-
|
|
64
|
+
1]-a[x]);m=0<l+q?100*(l-q)/(l+q):0;f.push(b[c]);d.push(m);h.push([b[c],m]);for(x=c+1;x<e;x++)m=Math.abs(a[x-c-1]-a[x-c]),a[x]>a[x-1]?l+=a[x]-a[x-1]:a[x]<a[x-1]&&(q+=a[x-1]-a[x]),a[x-c]>a[x-c-1]?l-=m:q-=m,m=0<l+q?100*(l-q)/(l+q):0,f.push(b[x]),d.push(m),h.push([b[x],m]);return{values:h,xData:f,yData:d}}};h.defaultOptions=t(k.defaultOptions,{params:{period:20,index:3}});return h}(k);d.registerSeriesType("cmo",f);"";return f});v(d,"Stock/Indicators/DEMA/DEMAIndicator.js",[d["Core/Series/SeriesRegistry.js"],
|
|
65
|
+
d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.ema,p=f.correctFloat,t=f.isArray,n=f.merge;f=function(h){function e(){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(e,h);e.prototype.getEMA=function(a,c,b,l,e,h){return k.prototype.calculateEma(h||[],a,"undefined"===typeof e?1:e,this.EMApercent,c,"undefined"===typeof l?-1:l,b)};e.prototype.getValues=function(a,c){var b=c.period,l=2*b,e=a.xData,h=(a=a.yData)?a.length:0,f=-1,d=[],g=[],m=[],q=0,A=[],r;this.EMApercent=2/(b+1);if(!(h<2*b-1)){t(a[0])&&(f=c.index?c.index:0);c=k.prototype.accumulatePeriodPoints(b,f,a);var u=
|
|
67
|
+
c/b;c=0;for(r=b;r<h+2;r++){r<h+1&&(q=this.getEMA(a,n,u,f,r)[1],A.push(q));var n=q;if(r<l)c+=q;else{r===l&&(u=c/b);q=A[r-b-1];var J=this.getEMA([q],J,u)[1];var y=[e[r-2],p(2*q-J)];d.push(y);g.push(y[0]);m.push(y[1])}}return{values:d,xData:g,yData:m}}};e.defaultOptions=n(k.defaultOptions);return e}(k);d.registerSeriesType("dema",f);"";return f});v(d,"Stock/Indicators/TEMA/TEMAIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var h=
|
|
68
|
+
function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.ema,p=f.correctFloat,t=f.isArray,n=f.merge;f=function(h){function e(){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(e,h);e.prototype.getEMA=function(a,c,b,l,e,h){return k.prototype.calculateEma(h||[],a,"undefined"===typeof e?1:e,this.EMApercent,c,"undefined"===typeof l?-1:l,b)};e.prototype.getTemaPoint=function(a,c,b,l){return[a[l-3],p(3*b.level1-3*b.level2+b.level3)]};e.prototype.getValues=function(a,c){var b=c.period,l=2*b,e=3*b,h=a.xData,f=(a=a.yData)?a.length:0,d=-1,g=[],m=[],q=[],A=[],r=[],u,n,p={};this.EMApercent=2/(b+1);if(!(f<3*b-2)){t(a[0])&&(d=c.index?c.index:0);c=k.prototype.accumulatePeriodPoints(b,
|
|
70
|
+
d,a);var y=c/b;c=0;for(u=b;u<f+3;u++){u<f+1&&(p.level1=this.getEMA(a,F,y,d,u)[1],A.push(p.level1));var F=p.level1;if(u<l)c+=p.level1;else{u===l&&(y=c/b,c=0);p.level1=A[u-b-1];p.level2=this.getEMA([p.level1],P,y)[1];r.push(p.level2);var P=p.level2;if(u<e)c+=p.level2;else{u===e&&(y=c/b);u===f+1&&(p.level1=A[u-b-1],p.level2=this.getEMA([p.level1],P,y)[1],r.push(p.level2));p.level1=A[u-b-2];p.level2=r[u-2*b-1];p.level3=this.getEMA([p.level2],p.prevLevel3,y)[1];if(n=this.getTemaPoint(h,e,p,u))g.push(n),
|
|
71
|
+
m.push(n[0]),q.push(n[1]);p.prevLevel3=p.level3}}}return{values:g,xData:m,yData:q}}};e.defaultOptions=n(k.defaultOptions);return e}(k);d.registerSeriesType("tema",f);"";return f});v(d,"Stock/Indicators/TRIX/TRIXIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var f=function(h,e){f=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 f(h,e)};return function(h,e){function a(){this.constructor=h}f(h,e);h.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.tema,p=f.correctFloat,t=f.merge;f=function(f){function h(){var e=null!==f&&f.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,f);h.prototype.getTemaPoint=function(e,a,c,b){if(b>a)return[e[b-3],0!==c.prevLevel3?p(c.level3-c.prevLevel3)/c.prevLevel3*100:null]};h.defaultOptions=t(k.defaultOptions);
|
|
73
|
+
return h}(k);d.registerSeriesType("trix",f);"";return f});v(d,"Stock/Indicators/APO/APOIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var h=function(e,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(e,a)};return function(e,a){function c(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(c.prototype=
|
|
74
|
+
a.prototype,new c)}}(),k=d.seriesTypes.ema,p=f.extend,t=f.merge,n=f.error;f=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.getValues=function(a,c){var b=c.periods,l=c.index;c=[];var e=[],h=[],f;if(2!==b.length||b[1]<=b[0])n('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var d=k.prototype.getValues.call(this,a,{index:l,period:b[0]});a=k.prototype.getValues.call(this,
|
|
75
|
+
a,{index:l,period:b[1]});if(d&&a){b=b[1]-b[0];for(f=0;f<a.yData.length;f++)l=d.yData[f+b]-a.yData[f],c.push([a.xData[f],l]),e.push(a.xData[f]),h.push(l);return{values:c,xData:e,yData:h}}}};e.defaultOptions=t(k.defaultOptions,{params:{period:void 0,periods:[10,20]}});return e}(k);p(f.prototype,{nameBase:"APO",nameComponents:["periods"]});d.registerSeriesType("apo",f);"";return f});v(d,"Stock/Indicators/IKH/IKHIndicator.js",[d["Core/Color/Color.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],
|
|
76
|
+
d["Core/Utilities.js"]],function(d,f,g,k){function p(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function t(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function n(a){return{high:p(a),low:t(a)}}function h(a){var b,c,l,e,f;a.series.forEach(function(a){if(a.xData)for(e=a.xData,f=c=a.xIncrement?1:e.length-1;0<f;f--)if(l=e[f]-e[f-1],"undefined"===typeof b||l<b)b=l});return b}function e(a,b,c,l){if(a&&b&&c&&l){var e=b.plotX-a.plotX;b=b.plotY-a.plotY;var f=
|
|
77
|
+
l.plotX-c.plotX;l=l.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+e*w)/(-f*b+e*l);f=(f*w-l*h)/(-f*b+e*l);if(0<=c&&1>=c&&0<=f&&1>=f)return{plotX:a.plotX+f*e,plotY:a.plotY+f*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=x(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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),b=d.parse,l=g.seriesTypes.sma,w=k.defined;d=k.extend;var z=k.isArray,B=k.isNumber,x=k.merge,N=k.objectEach;f.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,l){a.push(f.approximations.average(c));b=!b&&"undefined"===
|
|
79
|
+
typeof a[l]});return b?void 0:a};k=function(f){function d(){var a=null!==f&&f.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(d,f);d.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=x({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)};d.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};d.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var l=b[c];B(l)&&(b["plot"+c]=a.yAxis.toPixels(l,
|
|
81
|
+
!0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};d.prototype.drawGraph=function(){var b=this,c=b.points,l=c.length,f=b.options,h=b.graph,d=b.color,z={options:{gapSize:f.gapSize}},q=b.pointArrayMap.length,B=[[],[],[],[],[],[]],m={tenkanLine:B[0],kijunLine:B[1],chikouLine:B[2],senkouSpanA:B[3],senkouSpanB:B[4],senkouSpan:B[5]},n=[],k=b.options.senkouSpan,p=k.color||k.styles.fill,t=k.negativeColor,y=[[],[]],v=[[],[]],Q=0,K,R,O;for(b.ikhMap=m;l--;){var D=c[l];for(K=0;K<q;K++)k=
|
|
82
|
+
b.pointArrayMap[K],w(D[k])&&B[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});t&&l!==c.length-1&&(k=m.senkouSpanB.length-1,D=e(m.senkouSpanA[k-1],m.senkouSpanA[k],m.senkouSpanB[k-1],m.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(m.senkouSpanA.splice(k,0,K),m.senkouSpanB.splice(k,0,K),n.push(k)))}N(m,function(a,c){f[c]&&"senkouSpan"!==c&&(b.points=B[Q],b.options=x(f[c].styles,z),b.graph=b["graph"+c],b.fillGraph=!1,b.color=d,g.seriesTypes.sma.prototype.drawGraph.call(b),
|
|
83
|
+
b["graph"+c]=b.graph);Q++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(t&&m.senkouSpanA[0]&&m.senkouSpanB[0]){n.unshift(0);n.push(m.senkouSpanA.length-1);for(q=0;q<n.length-1;q++){k=n[q];D=n[q+1];l=m.senkouSpanB.slice(k,D+1);k=m.senkouSpanA.slice(k,D+1);if(1<=Math.floor(l.length/2))if(D=Math.floor(l.length/2),l[D].plotY===k[D].plotY){for(O=K=D=0;O<l.length;O++)D+=l[O].plotY,K+=k[O].plotY;D=D>K?0:1}else D=l[D].plotY>k[D].plotY?0:1;
|
|
84
|
+
else D=l[0].plotY>k[0].plotY?0:1;y[D]=y[D].concat(l);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,l){y[l].length&&v[l].length&&(R=0===l?p:t,a({indicator:b,points:y[l],nextPoints:v[l],color:R,options:f,gap:z,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:m.senkouSpanB,nextPoints:m.senkouSpanA,color:p,options:f,gap:z,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
|
|
85
|
+
c;b.options=f;b.graph=h;b.color=d};d.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 l=c.length-1;0<=l;l--)b.push(c[l])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};d.prototype.getValues=function(a,b){var c=b.period,l=b.periodTenkan;
|
|
86
|
+
b=b.periodSenkouSpanB;var e=a.xData,f=a.yData,w=f&&f.length||0;a=h(a.xAxis);var d=[],g=[],m;if(!(e.length<=c)&&z(f[0])&&4===f[0].length){var q=e[0]-c*a;for(m=0;m<c;m++)g.push(q+m*a);for(m=0;m<w;m++){if(m>=l){var B=f.slice(m-l,m);B=n(B);B=(B.high+B.low)/2}if(m>=c){var x=f.slice(m-c,m);x=n(x);x=(x.high+x.low)/2;var r=(B+x)/2}if(m>=b){var k=f.slice(m-b,m);k=n(k);k=(k.high+k.low)/2}q=f[m][3];var A=e[m];"undefined"===typeof d[m]&&(d[m]=[]);"undefined"===typeof d[m+c]&&(d[m+c]=[]);d[m+c][0]=B;d[m+c][1]=
|
|
87
|
+
x;d[m+c][2]=void 0;d[m][2]=q;m<=c&&(d[m+c][3]=void 0,d[m+c][4]=void 0);"undefined"===typeof d[m+2*c]&&(d[m+2*c]=[]);d[m+2*c][3]=r;d[m+2*c][4]=k;g.push(A)}for(m=1;m<=c;m++)g.push(A+m*a);return{values:d,xData:g,yData:d}}};d.defaultOptions=x(l.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 d}(l);d(k.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
|
|
89
|
+
"period","periodTenkan"]});g.registerSeriesType("ikh",k);"";return k});v(d,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var e=function(a,c){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(a,c)};return function(a,
|
|
90
|
+
c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),p=f.seriesTypes.sma,t=g.correctFloat,n=g.extend,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.init=function(){f.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,e=b.periodATR,h=b.multiplierATR,d=a.yData;d=d?d.length:0;var g=[];b=f.seriesTypes.ema.prototype.getValues(a,{period:c,index:b.index});var k=f.seriesTypes.atr.prototype.getValues(a,{period:e}),m=[],q=[],n;if(!(d<c)){for(n=c;n<=d;n++){var r=b.values[n-c];var u=k.values[n-e];var p=r[0];a=t(r[1]+h*u[1]);u=t(r[1]-h*u[1]);r=r[1];g.push([p,a,r,u]);m.push(p);q.push([a,r,u])}return{values:g,xData:m,yData:q}}};a.defaultOptions=h(p.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}(p);n(g.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top",
|
|
93
|
+
"bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});d.compose(g);f.registerSeriesType("keltnerchannels",g);"";return g});v(d,"Stock/Indicators/Klinger/KlingerIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),p=f.seriesTypes.ema,t=f.seriesTypes.sma,n=g.correctFloat,h=g.error,e=g.extend,a=g.isArray,c=g.merge;g=function(b){function l(){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}k(l,
|
|
95
|
+
b);l.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};l.prototype.isValidData=function(b){var c=this.chart,l=this.options,e=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(l.params.volumeSeriesID)))||h("Series "+l.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);return!(![e,c].every(function(a){return a&&a.xData&&a.xData.length>=l.params.slowAvgPeriod})||!b)};l.prototype.getCM=function(a,
|
|
96
|
+
b,c,l,e){return n(b+(c===l?a:e))};l.prototype.getDM=function(a,b){return n(a-b)};l.prototype.getVolumeForce=function(a){var b=[],c=1;var l=0;var e=a[0][1]-a[0][2];var f=0;for(c;c<a.length;c++){var h=this.calculateTrend(a,c);var d=this.getDM(a[c][1],a[c][2]);l=this.getCM(l,d,h,f,e);f=this.volumeSeries.yData[c]*h*Math.abs(2*(d/l-1))*100;b.push([f]);f=h;e=d}return b};l.prototype.getEMA=function(a,b,c,l,e,f,h){return p.prototype.calculateEma(h||[],a,"undefined"===typeof f?1:f,l,b,"undefined"===typeof e?
|
|
97
|
+
-1:e,c)};l.prototype.getSMA=function(a,b,c){return p.prototype.accumulatePeriodPoints(a,b,c)/a};l.prototype.getValues=function(a,b){var c=[],l=a.xData;a=a.yData;var e=[],f=[],h=[],d,w=0,g=0,z=void 0,k=void 0,p=null;if(this.isValidData(a[0])){var t=this.getVolumeForce(a),y=this.getSMA(b.fastAvgPeriod,0,t),C=this.getSMA(b.slowAvgPeriod,0,t),M=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(w;w<a.length;w++)w>=b.fastAvgPeriod&&(z=g=this.getEMA(t,z,y,M,0,w,l)[1]),w>=b.slowAvgPeriod&&(k=d=this.getEMA(t,
|
|
98
|
+
k,C,v,0,w,l)[1],d=n(g-d),h.push(d),h.length>=b.signalPeriod&&(p=h.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([l[w],d,p]),e.push(l[w]),f.push([d,p]));return{values:c,xData:e,yData:f}}};l.defaultOptions=c(t.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 l}(t);e(g.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});d.compose(g);f.registerSeriesType("klinger",g);"";return g});v(d,"Stock/Indicators/MACD/MACDIndicator.js",[d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=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 l(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),p=d.noop,t=f.seriesTypes.sma,n=g.extend,h=g.correctFloat,e=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}k(b,c);b.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,arguments);var a=this.color,b=this.userOptions._colorIndex;this.options&&(e(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"];d.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(l,e){null!==l&&(c[b[e]]=a.yAxis.toPixels(l,!0))})})};b.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();f.seriesTypes.sma.prototype.destroy.apply(this,arguments)};
|
|
104
|
+
b.prototype.drawGraph=function(){for(var b=this,c=b.points,h=c.length,d=b.options,g=b.zones,k={options:{gapSize:d.gapSize}},m=[[],[]],q;h--;)q=c[h],e(q.plotMACD)&&m[0].push({plotX:q.plotX,plotY:q.plotMACD,isNull:!e(q.plotMACD)}),e(q.plotSignal)&&m[1].push({plotX:q.plotX,plotY:q.plotSignal,isNull:!e(q.plotMACD)});["macd","signal"].forEach(function(c,e){b.points=m[e];b.options=a(d[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;f.seriesTypes.sma.prototype.drawGraph.call(b);
|
|
105
|
+
b["graph"+c]=b.graph});b.points=c;b.options=d;b.zones=g;b.currentLineZone=null};b.prototype.getZonesGraphs=function(a){var b=c.prototype.getZonesGraphs.call(this,a),e=b;this.currentLineZone&&(e=b.splice(this[this.currentLineZone].startIndex+1),e.length?e.splice(0,0,a[0]):e=[a[0]]);return e};b.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;f.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,l=0,d=[],g=[],m=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var w=f.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var k=f.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});w=w.values;k=k.values;for(a=0;a<=w.length;a++)e(k[a])&&e(k[a][1])&&e(w[a+c])&&e(w[a+c][0])&&d.push([w[a+c][0],0,null,w[a+c][1]-k[a][1]]);for(a=0;a<d.length;a++)g.push(d[a][0]),m.push([0,
|
|
107
|
+
null,d[a][3]]);b=f.seriesTypes.ema.prototype.getValues({xData:g,yData:m},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<d.length;a++)d[a][0]>=b[0][0]&&(d[a][2]=b[l][1],m[a]=[0,b[l][1],d[a][3]],null===d[a][3]?(d[a][1]=0,m[a][0]=0):(d[a][1]=h(d[a][3]-b[l][1]),m[a][0]=h(d[a][3]-b[l][1])),l++);return{values:d,xData:g,yData:m}}};b.defaultOptions=a(t.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}(t);n(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
|
|
109
|
+
"signal","MACD"],pointValKey:"y",markerAttribs:p,getColumnMetrics:d.seriesTypes.column.prototype.getColumnMetrics,crispCol:d.seriesTypes.column.prototype.crispCol,drawPoints:d.seriesTypes.column.prototype.drawPoints});f.registerSeriesType("macd",g);"";return g});v(d,"Stock/Indicators/MFI/MFIIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){function g(a){return a.reduce(function(a,c){return a+c})}function k(a){return(a[1]+a[2]+a[3])/3}var p=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),t=d.seriesTypes.sma,n=f.extend,h=f.merge,e=f.error,a=f.isArray;f=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}p(b,c);b.prototype.getValues=function(b,c){var l=c.period,f=b.xData,h=b.yData,d=h?h.length:0,m=c.decimals,q=1,w=b.chart.get(c.volumeSeriesID),r=w&&w.yData,n=[],p=[],t=[],y=[],F=[];if(!w)e("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(f.length<=l)&&a(h[0])&&4===h[0].length&&r){for(b=k(h[q]);q<l+1;)c=b,b=k(h[q]),c=b>=c,w=b*r[q],y.push(c?w:0),F.push(c?0:w),q++;for(l=q-1;l<d;l++)l>q-1&&(y.shift(),F.shift(),c=b,b=k(h[l]),c=b>c,w=b*r[l],y.push(c?
|
|
112
|
+
w:0),F.push(c?0:w)),c=g(F),w=g(y),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(m)),n.push([f[l],c]),p.push(f[l]),t.push(c);return{values:n,xData:p,yData:t}}};b.defaultOptions=h(t.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return b}(t);n(f.prototype,{nameBase:"Money Flow Index"});d.registerSeriesType("mfi",f);"";return f});v(d,"Stock/Indicators/Momentum/MomentumIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||
|
|
113
|
+
function(){var f=function(e,a){f=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 f(e,a)};return function(e,a){function c(){this.constructor=e}f(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.extend,t=f.isArray,n=f.merge;f=function(f){function e(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
|
|
114
|
+
return a}g(e,f);e.prototype.getValues=function(a,c){var b=c.period;c=c.index;var e=a.xData,f=(a=a.yData)?a.length:0,h=[],d=[],g=[],k;if(!(e.length<=b)&&t(a[0])){for(k=b+1;k<f;k++){var m=[e[k-1],a[k-1][c]-a[k-b-1][c]];h.push(m);d.push(m[0]);g.push(m[1])}m=[e[k-1],a[k-1][c]-a[k-b-1][c]];h.push(m);d.push(m[0]);g.push(m[1]);return{values:h,xData:d,yData:g}}};e.defaultOptions=n(k.defaultOptions,{params:{index:3}});return e}(k);p(f.prototype,{nameBase:"Momentum"});d.registerSeriesType("momentum",f);"";
|
|
115
|
+
return f});v(d,"Stock/Indicators/NATR/NATRIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var f=function(d,h){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var c in a)a.hasOwnProperty(c)&&(e[c]=a[c])};return f(d,h)};return function(d,h){function e(){this.constructor=d}f(d,h);d.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),k=d.seriesTypes.atr,
|
|
116
|
+
p=f.merge;f=function(f){function d(){var d=null!==f&&f.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}g(d,f);d.prototype.getValues=function(f,e){var a=k.prototype.getValues.apply(this,arguments),c=a.values.length,b=e.period-1,l=f.yData,d=0;if(a){for(;d<c;d++)a.yData[d]=a.values[d][1]/l[b][3]*100,a.values[d][1]=a.yData[d],b++;return a}};d.defaultOptions=p(k.defaultOptions,{tooltip:{valueSuffix:"%"}});return d}(k);d.registerSeriesType("natr",f);"";return f});v(d,
|
|
117
|
+
"Stock/Indicators/OBV/OBVIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var e=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=d.seriesTypes.sma,p=f.isNumber,
|
|
118
|
+
t=f.error,n=f.extend,h=f.merge;f=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,e);a.prototype.getValues=function(a,b){var c=a.chart.get(b.volumeSeriesID),e=a.xData,f=a.yData,d=[],h=[],g=[],m=!p(f[0]),q=1,k=0;if(c){c=c.yData;a=[e[0],k];var r=m?f[0][3]:f[0];d.push(a);h.push(e[0]);g.push(a[1]);for(q;q<f.length;q++)b=m?f[q][3]:f[q],k=b>r?k+c[q]:b===r?k:k-c[q],a=[e[q],k],r=b,d.push(a),h.push(e[q]),g.push(a[1]);return{values:d,
|
|
119
|
+
xData:h,yData:g}}t("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(k.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(k);n(f.prototype,{nameComponents:void 0});d.registerSeriesType("obv",f);"";return f});v(d,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[d["Core/Series/SeriesRegistry.js"]],function(d){function f(f,g){var k=f.series.pointArrayMap,n=k.length;for(d.seriesTypes.sma.prototype.pointClass.prototype[g].call(f);n--;)g=
|
|
120
|
+
"dataLabel"+k[n],f[g]&&f[g].element&&f[g].destroy(),f[g]=null}var g=this&&this.__extends||function(){var f=function(d,g){f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var e in d)d.hasOwnProperty(e)&&(f[e]=d[e])};return f(d,g)};return function(d,g){function k(){this.constructor=d}f(d,g);d.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(d){function k(){var f=null!==d&&d.apply(this,arguments)||this;f.P=
|
|
121
|
+
void 0;f.pivotLine=void 0;f.series=void 0;return f}g(k,d);k.prototype.destroyElements=function(){f(this,"destroyElements")};k.prototype.destroy=function(){f(this,"destroyElements")};return k}(d.seriesTypes.sma.prototype.pointClass)});v(d,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[d["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),p=f.seriesTypes.sma,t=g.merge,n=g.extend,h=g.defined,e=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
|
+
k(c,a);c.prototype.toYData=function(a){return[a.P]};c.prototype.translate=function(){var a=this;f.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,e=[[],[],[],[],[],[],[],[],[]],d=[],g=b.plotEndPoint,k=b.pointArrayMap.length,m,q,n;c--;){q=a[c];for(n=0;n<k;n++)m=b.pointArrayMap[n],
|
|
124
|
+
h(q[m])&&e[n].push({plotX:q.plotX,plotY:q["plot"+m],isNull:!1},{plotX:g,plotY:q["plot"+m],isNull:!1},{plotX:g,plotY:null,isNull:!0});g=q.plotX}e.forEach(function(a){d=d.concat(f.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return d};c.prototype.drawDataLabels=function(){var a=this,c=a.pointArrayMap,e,d,h;if(a.options.dataLabels.enabled){var g=a.points.length;c.concat([!1]).forEach(function(b,l){for(h=g;h--;)d=a.points[h],b?(d.y=d[b],d.pivotLine=b,d.plotY=d["plot"+b],e=d["dataLabel"+b],l&&(d["dataLabel"+
|
|
125
|
+
c[l-1]]=d.dataLabel),d.dataLabels||(d.dataLabels=[]),d.dataLabels[0]=d.dataLabel=e=e&&e.element?e:null):d["dataLabel"+c[l-1]]=d.dataLabel;f.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};c.prototype.getValues=function(a,c){var b=c.period,l=a.xData,f=(a=a.yData)?a.length:0;c=this[c.algorithm+"Placement"];var d=[],h=[],g=[],k;if(!(l.length<b)&&e(a[0])&&4===a[0].length){for(k=b+1;k<=f+b;k+=b){var n=l.slice(k-b-1,k);var r=a.slice(k-b-1,k);var u=n.length;var p=n[u-1];r=this.getPivotAndHLC(r);
|
|
126
|
+
r=c(r);r=d.push([p].concat(r));h.push(p);g.push(d[r-1].slice(1))}this.endPoint=n[0]+(p-n[0])/u*b;return{values:d,xData:h,yData:g}}};c.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,e=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+e)/3,b,c,e]};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=t(p.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}(p);n(g.prototype,
|
|
128
|
+
{nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:d});f.registerSeriesType("pivotpoints",g);"";return g});v(d,"Stock/Indicators/PPO/PPOIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var e=function(a,c){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(a,c)};
|
|
129
|
+
return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),k=d.seriesTypes.ema,p=f.correctFloat,t=f.extend,n=f.merge,h=f.error;f=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(a,e);a.prototype.getValues=function(a,b){var c=b.periods,e=b.index;b=[];var f=[],d=[],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 n=k.prototype.getValues.call(this,a,{index:e,period:c[0]});a=k.prototype.getValues.call(this,a,{index:e,period:c[1]});if(n&&a){c=c[1]-c[0];for(g=0;g<a.yData.length;g++)e=p((n.yData[g+c]-a.yData[g])/a.yData[g]*100),b.push([a.xData[g],e]),f.push(a.xData[g]),d.push(e);return{values:b,xData:f,yData:d}}}};a.defaultOptions=n(k.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(k);t(f.prototype,{nameBase:"PPO",nameComponents:["periods"]});d.registerSeriesType("ppo",f);"";return f});
|
|
131
|
+
v(d,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(d,f,g){return d.reduce(function(d,p){return[Math.min(d[0],p[f]),Math.max(d[1],p[g])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(d,"Stock/Indicators/PC/PCIndicator.js",[d["Stock/Indicators/ArrayUtilities.js"],d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Color/Palettes.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g,k,p){var t=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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),n=k.seriesTypes.sma,h=p.merge;p=p.extend;var 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}t(c,a);c.prototype.getValues=
|
|
133
|
+
function(a,c){c=c.period;var b=a.xData,e=(a=a.yData)?a.length:0,f=[],l=[],h=[],g;if(!(e<c)){for(g=c;g<=e;g++){var k=b[g-1];var n=a.slice(g-c,g);var r=d.getArrayExtremes(n,2,1);n=r[1];var u=r[0];r=(n+u)/2;f.push([k,n,r,u]);l.push(k);h.push([n,r,u])}return{values:f,xData:l,yData:h}}};c.defaultOptions=h(n.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}(n);p(e.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(e);k.registerSeriesType("pc",e);"";return e});v(d,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(e,a){d=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 d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.extend,t=f.isArray,n=f.merge;f=function(f){function e(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,f);e.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,
|
|
136
|
+
arguments);this.options=n({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};e.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};e.prototype.translate=function(){var a=this,c=["plotTop","plotMiddle","plotBottom"];d.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){[b.top,b.middle,b.bottom].forEach(function(e,d){null!==e&&(b[c[d]]=a.yAxis.toPixels(e,!0))})})};e.prototype.drawGraph=function(){for(var a=this,c=a.points,
|
|
137
|
+
b=c.length,e=a.options,f=a.graph,h={options:{gapSize:e.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=n(e[b].styles,h);a.graph=a["graph"+b];d.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=c;a.options=e;a.graph=f;d.seriesTypes.sma.prototype.drawGraph.call(a)};e.prototype.getValues=function(a,
|
|
138
|
+
c){var b=c.period,e=c.topBand,f=c.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],n=[],m=[],q;if(!(h.length<b)&&t(a[0])&&4===a[0].length){for(q=b;q<=g;q++){var p=h.slice(q-b,q);var r=a.slice(q-b,q);r=d.seriesTypes.sma.prototype.getValues.call(this,{xData:p,yData:r},c);p=r.xData[0];r=r.yData[0];var u=r*(1+e);var y=r*(1-f);k.push([p,u,r,y]);n.push(p);m.push([u,r,y])}return{values:k,xData:n,yData:m}}};e.defaultOptions=n(k.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 e}(k);p(f.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});d.registerSeriesType("priceenvelopes",f);"";return f});v(d,"Stock/Indicators/PSAR/PSARIndicator.js",[d["Core/Series/SeriesRegistry.js"],
|
|
140
|
+
d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.sma,p=f.merge;f=f.extend;var t=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||
|
|
141
|
+
this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var c=e.xData;e=e.yData;var b=e[0][1],d=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=e[0][2],k=a.decimals,n=a.index,m=[],q=[],p=[],r=1,u;if(!(n>=e.length)){for(u=0;u<n;u++)b=Math.max(e[u][1],b),g=Math.min(e[u][2],parseFloat(g.toFixed(k)));var t=e[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(b-g);m.push([c[n],g]);q.push(c[n]);p.push(parseFloat(g.toFixed(k)));for(u=
|
|
142
|
+
n+1;u<e.length;u++){n=e[u-1][2];var y=e[u-2][2];var F=e[u-1][1];var v=e[u-2][1];var C=e[u][1];var M=e[u][2];null!==y&&null!==v&&null!==n&&null!==F&&null!==C&&null!==M&&(g=t===r?1===t?g+J<Math.min(y,n)?g+J:Math.min(y,n):g+J>Math.max(v,F)?g+J:Math.max(v,F):b,n=1===t?C>b?C:b:M<b?M:b,C=1===r&&M>g||-1===r&&C>g?1:-1,r=C,J=n,M=f,y=d,F=h,a=r===t?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=n-g,J=a*b,m.push([c[u],parseFloat(g.toFixed(k))]),q.push(c[u]),
|
|
143
|
+
p.push(parseFloat(g.toFixed(k))),r=t,t=C,b=n)}return{values:m,xData:q,yData:p}}};f.defaultOptions=p(k.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}(k);f(t.prototype,{nameComponents:void 0});d.registerSeriesType("psar",t);"";return t});v(d,"Stock/Indicators/ROC/ROCIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,
|
|
144
|
+
f){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.isArray,t=f.merge;f=f.extend;var n=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;
|
|
145
|
+
a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,c){var b=c.period,e=a.xData,d=(a=a.yData)?a.length:0,f=[],h=[],g=[],k=-1;if(!(e.length<=b)){p(a[0])&&(k=c.index);for(c=b;c<d;c++){var m=0>k?(m=a[c-b])?(a[c]-m)/m*100:null:(m=a[c-b][k])?(a[c][k]-m)/m*100:null;m=[e[c],m];f.push(m);h.push(m[0]);g.push(m[1])}return{values:f,xData:h,yData:g}}};e.defaultOptions=t(k.defaultOptions,{params:{index:3,period:9}});return e}(k);f(n.prototype,{nameBase:"Rate of Change"});d.registerSeriesType("roc",
|
|
146
|
+
n);"";return n});v(d,"Stock/Indicators/RSI/RSIIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.sma,
|
|
147
|
+
p=f.isNumber,t=f.merge;f=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var c=a.period,b=e.xData,d=e.yData;e=d?d.length:0;var f=a.decimals,h=1,g=[],k=[],n=[],m=a.index,q=a=0,t;if(!(b.length<c)){if(p(d[0]))var r=d;else m=Math.min(m,d[0].length-1),r=d.map(function(a){return a[m]});for(;h<c;){var u=parseFloat((r[h]-r[h-1]).toFixed(f));0<u?a+=u:q+=Math.abs(u);h++}d=parseFloat((a/
|
|
148
|
+
(c-1)).toFixed(f));for(t=parseFloat((q/(c-1)).toFixed(f));h<e;h++)u=parseFloat((r[h]-r[h-1]).toFixed(f)),0<u?(a=u,q=0):(a=0,q=Math.abs(u)),d=parseFloat(((d*(c-1)+a)/c).toFixed(f)),t=parseFloat(((t*(c-1)+q)/c).toFixed(f)),a=0===t?100:0===d?0:parseFloat((100-100/(1+d/t)).toFixed(f)),g.push([b[h],a]),k.push(b[h]),n.push(a);return{values:g,xData:k,yData:n}}};f.defaultOptions=t(k.defaultOptions,{params:{decimals:4,index:3}});return f}(k);d.registerSeriesType("rsi",f);"";return f});v(d,"Stock/Indicators/Stochastic/StochasticIndicator.js",
|
|
149
|
+
[d["Stock/Indicators/ArrayUtilities.js"],d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g,k){var p=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 e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=
|
|
150
|
+
b.prototype,new e)}}(),t=g.seriesTypes.sma,n=k.extend,h=k.isArray,e=k.merge;k=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.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=e({smoothedLine:{styles:{lineColor:this.color}}},this.options)};c.prototype.getValues=function(a,c){var b=c.periods[0];c=c.periods[1];var e=a.xData,f=(a=a.yData)?a.length:0,l=[],k=[],m=[],q=null,
|
|
151
|
+
n;if(!(f<b)&&h(a[0])&&4===a[0].length){for(n=b-1;n<f;n++){var r=a.slice(n-b+1,n+1);var u=d.getArrayExtremes(r,2,1);var p=u[0];r=a[n][3]-p;p=u[1]-p;r=r/p*100;k.push(e[n]);m.push([r,null]);n>=b-1+(c-1)&&(q=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-c),yData:m.slice(-c)},{period:c}),q=q.yData[0]);l.push([e[n],r,q]);m[m.length-1][1]=q}return{values:l,xData:k,yData:m}}};c.defaultOptions=e(t.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}(t);n(k.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});f.compose(k);g.registerSeriesType("stochastic",k);"";return k});v(d,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,
|
|
153
|
+
f){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.stochastic,p=d.seriesTypes,t=f.extend,n=f.merge;f=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
|
|
154
|
+
void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,c){var b=c.periods,e=p.stochastic.prototype.getValues.call(this,a,c);a={values:[],xData:[],yData:[]};c=0;if(e){a.xData=e.xData.slice(b[1]-1);e=e.yData.slice(b[1]-1);var d=p.sma.prototype.getValues.call(this,{xData:a.xData,yData:e},{index:1,period:b[2]});if(d){for(var f=a.xData.length;c<f;c++)a.yData[c]=[e[c][1],d.yData[c-b[2]+1]||null],a.values[c]=[a.xData[c],e[c][1],d.yData[c-b[2]+1]||null];return a}}};e.defaultOptions=
|
|
155
|
+
n(k.defaultOptions,{params:{periods:[14,3,3]}});return e}(k);t(f.prototype,{nameBase:"Slow Stochastic"});d.registerSeriesType("slowstochastic",f);"";return f});v(d,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"],d["Core/Chart/StockChart.js"]],function(d,f,g){function k(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var p=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),t=d.seriesTypes.atr,n=d.seriesTypes.sma,h=f.addEvent,e=f.correctFloat,a=f.isArray,c=f.extend,b=f.merge,l=f.objectEach;f=function(c){function d(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;
|
|
157
|
+
return a}p(d,c);d.prototype.init=function(){var a;n.prototype.init.apply(this,arguments);var b=this,c=h(g,"afterLinkSeries",function(){if(b.options){var e=b.options;a=b.linkedParent.options;e.cropThreshold=a.cropThreshold-(e.params.period-1)}c()},{order:1})};d.prototype.drawGraph=function(){var a=this,c=a.options,e=a.linkedParent,d=e?e.points:[],f=a.points,h=a.graph,g=f.length,u=d.length-g;u=0<u?u:0;for(var p={options:{gapSize:c.gapSize}},t={top:[],bottom:[],intersect:[]},w={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;g--;)z=f[g],y=f[g-1],C=d[g-1+u],v=d[g-2+u],E=d[g+u],G=d[g+u+1],H=z.options.color,I={x:z.x,plotX:z.plotX,plotY:z.plotY,isNull:!1},!v&&C&&e.yData[C.index-1]&&(v=k(e,C.index-1,3)),!G&&E&&e.yData[E.index+1]&&(G=k(e,E.index+1,3)),!C&&v&&e.yData[v.index+1]?C=k(e,v.index+1,3):!C&&E&&e.yData[E.index-
|
|
159
|
+
1]&&(C=k(e,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:e.yData[C.index-1][3],x:e.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,t.top.push(I)):z.y<C.close&&y.y<v.close?(z.color=H||c.risingTrendColor||c.color,t.bottom.push(I)):(t.intersect.push(I),t.intersect.push(E),t.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,t.top.push(I),t.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,t.bottom.push(I),t.bottom.push(b(E,{isNull:!0}))))):C&&(z.y>=C.close?(z.color=H||c.fallingTrendColor||c.color,t.top.push(I)):(z.color=H||c.risingTrendColor||c.color,t.bottom.push(I)));l(t,function(c,e){a.points=c;a.options=b(w[e].styles,p);a.graph=a["graph"+e+"Line"];n.prototype.drawGraph.call(a);a["graph"+
|
|
161
|
+
e+"Line"]=a.graph});a.points=f;a.options=c;a.graph=h};d.prototype.getValues=function(b,c){var d=c.period;c=c.multiplier;var f=b.xData,l=b.yData,h=[],g=[],k=[],n=0===d?0:d-1,p=[],w=[],x;if(!(f.length<=d||!a(l[0])||4!==l[0].length||0>d)){b=t.prototype.getValues.call(this,b,{period:d}).yData;for(x=0;x<b.length;x++){var z=l[n+x];var B=l[n+x-1]||[];var y=p[x-1];var v=w[x-1];var G=k[x-1];0===x&&(y=v=G=0);d=e((z[1]+z[2])/2+c*b[x]);var H=e((z[1]+z[2])/2-c*b[x]);p[x]=d<y||B[3]>y?d:y;w[x]=H>v||B[3]<v?H:v;if(G===
|
|
162
|
+
y&&z[3]<p[x]||G===v&&z[3]<w[x])var I=p[x];else if(G===y&&z[3]>p[x]||G===v&&z[3]>w[x])I=w[x];h.push([f[n+x],I]);g.push(f[n+x]);k.push(I)}return{values:h,xData:g,yData:k}}};d.defaultOptions=b(n.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return d}(n);c(f.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});d.registerSeriesType("supertrend",
|
|
163
|
+
f);"";return f});v(d,"Stock/Indicators/VBP/VBPPoint.js",[d["Core/Series/SeriesRegistry.js"]],function(d){var f=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(d){function g(){return null!==
|
|
164
|
+
d&&d.apply(this,arguments)||this}f(g,d);g.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return d.prototype.destroy.apply(this,arguments)};return g}(d.seriesTypes.sma.prototype.pointClass)});v(d,"Stock/Indicators/VBP/VBPIndicator.js",[d["Stock/Indicators/VBP/VBPPoint.js"],d["Core/Animation/AnimationUtilities.js"],d["Core/Globals.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"],d["Core/Chart/StockChart.js"]],function(d,f,g,k,p,
|
|
165
|
+
t){var n=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),h=f.animObject;f=g.noop;var e=k.seriesTypes.sma,a=k.seriesTypes.column.prototype,c=p.addEvent,b=p.arrayMax,l=p.arrayMin,w=p.correctFloat,z=p.defined,
|
|
166
|
+
B=p.error,x=p.extend,y=p.isArray,m=p.merge,q=Math.abs;p=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}n(f,d);f.prototype.init=function(a){var b=this,e,d,f;g.seriesTypes.sma.prototype.init.apply(b,arguments);var l=c(t,"afterLinkSeries",function(){b.options&&(e=b.options.params,
|
|
167
|
+
d=b.linkedParent,f=a.get(e.volumeSeriesID),b.addCustomEvents(d,f));l()},{order:1});return b};f.prototype.addCustomEvents=function(a,b){function e(){d.chart.redraw();d.setData([]);d.zoneStarts=[];d.zoneLinesSVG&&(d.zoneLinesSVG=d.zoneLinesSVG.destroy())}var d=this;d.dataEventsToUnbind.push(c(a,"remove",function(){e()}));b&&d.dataEventsToUnbind.push(c(b,"remove",function(){e()}));return d};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,e=b.group,d={};!a&&e&&(a=c?b.yAxis.top:b.xAxis.left,
|
|
168
|
+
c?(e["forceAnimate:translateY"]=!0,d.translateY=a):(e["forceAnimate:translateX"]=!0,d.translateX=a),e.animate(d,x(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),a.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));a.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],e=this.options.volumeDivision,
|
|
169
|
+
d=this.points.length,f=[],l=[],h=0,g;a?(this.posWidths=f,this.negWidths=l):(f=this.posWidths,l=this.negWidths);for(;h<d;h++){var k=this.points[h];k[c[0]+"Graphic"]=k.graphic;k.graphic=k[c[1]+"Graphic"];if(a){var m=k.shapeArgs.width;var n=this.priceZones[h];(g=n.wholeVolumeData)?(f.push(m/g*n.positiveVolumeData),l.push(m/g*n.negativeVolumeData)):(f.push(0),l.push(0))}k.color=b?e.styles.positiveColor:e.styles.negativeColor;k.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];k.shapeArgs.x=b?k.shapeArgs.x:
|
|
170
|
+
this.posWidths[h]}};f.prototype.translate=function(){var c=this,e=c.options,d=c.chart,f=c.yAxis,l=f.min,h=c.options.zoneLines,g=c.priceZones,k=0,m,n,p;a.translate.apply(c);var r=c.points;if(r.length){var t=.5>e.pointPadding?e.pointPadding:.1;e=c.volumeDataArray;var x=b(e);var z=d.plotWidth/2;var B=d.plotTop;var A=q(f.toPixels(l)-f.toPixels(l+c.rangeStep));var y=q(f.toPixels(l)-f.toPixels(l+c.rangeStep));t&&(l=q(A*(1-2*t)),k=q((A-l)/2),A=q(l));r.forEach(function(a,b){n=a.barX=a.plotX=0;p=a.plotY=f.toPixels(g[b].start)-
|
|
171
|
+
B-(f.reversed?A-y:A)-k;m=w(z*g[b].wholeVolumeData/x);a.pointWidth=m;a.shapeArgs=c.crispCol.apply(c,[n,p,m,A]);a.volumeNeg=g[b].negativeVolumeData;a.volumePos=g[b].positiveVolumeData;a.volumeAll=g[b].wholeVolumeData});h.enabled&&c.drawZones(d,f,c.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,e=a.processedYData,d=this.chart,f=b.ranges,l=[],h=[],g=[],k;if(a.chart)if(k=d.get(b.volumeSeriesID))if((b=y(e[0]))&&4!==e[0].length)B("Type of "+a.name+" series is different than line, OHLC or candlestick.",
|
|
172
|
+
!0,d);else return(this.priceZones=this.specifyZones(b,c,e,f,k)).forEach(function(a,b){l.push([a.x,a.end]);h.push(l[b][0]);g.push(l[b][1])}),{values:l,xData:h,yData:g};else B("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d);else B("Base series not found! In case it has been removed, add a new one.",!0,d)};f.prototype.specifyZones=function(a,c,e,d,f){if(a){var h=e.length;for(var g=e[0][3],k=g,m=1,n;m<h;m++)n=e[m][3],n<g&&(g=n),n>k&&(k=n);h={min:g,max:k}}else h=!1;h=(g=h)?g.min:
|
|
173
|
+
l(e);n=g?g.max:b(e);g=this.zoneStarts=[];k=[];var q=0;m=1;var p=this.linkedParent;!this.options.compareToMain&&p.dataModify&&(h=p.dataModify.modifyValue(h),n=p.dataModify.modifyValue(n));if(!z(h)||!z(n))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];p=this.rangeStep=w(n-h)/d;for(g.push(h);q<d-1;q++)g.push(w(g[q]+p));g.push(n);for(d=g.length;m<d;m++)k.push({index:m-1,x:c[0],start:g[m-1],end:g[m]});return this.volumePerZone(a,
|
|
174
|
+
k,f,c,e)};f.prototype.volumePerZone=function(a,b,c,e,d){var f=this,l=c.processedXData,h=c.processedYData,g=b.length-1,k=d.length;c=h.length;var m,n,p,r,t;q(k-c)&&(e[0]!==l[0]&&h.unshift(0),e[k-1]!==l[c-1]&&h.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(t=b.negativeVolumeData=0;t<k;t++){p=n=!1;r=a?d[t][3]:d[t];m=t?a?d[t-1][3]:d[t-1]:r;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(r=c.dataModify.modifyValue(r),m=c.dataModify.modifyValue(m));
|
|
175
|
+
r<=b.start&&0===b.index&&(n=!0);r>=b.end&&b.index===g&&(p=!0);(r>b.start||n)&&(r<b.end||p)&&(b.wholeVolumeData+=h[t],m>r?b.negativeVolumeData+=h[t]:b.positiveVolumeData+=h[t])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,e){var d=a.renderer,f=this.zoneLinesSVG,l=[],h=a.plotWidth,g=a.plotTop,k;c.forEach(function(c){k=b.toPixels(c)-g;l=l.concat(a.renderer.crispLine([["M",0,k],["L",h,k]],e.lineWidth))});f?f.animate({d:l}):f=this.zoneLinesSVG=d.path(l).attr({"stroke-width":e.lineWidth,
|
|
176
|
+
stroke:e.color,dashstyle:e.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=m(e.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1E3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0,
|
|
177
|
+
enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(e);x(p.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:d,markerAttribs:f,drawGraph:f,getColumnMetrics:a.getColumnMetrics,crispCol:a.crispCol});k.registerSeriesType("vbp",p);"";return p});v(d,"Stock/Indicators/VWAP/VWAPIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],
|
|
178
|
+
function(d,f){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.error,t=f.isArray,n=f.merge;f=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
|
|
179
|
+
void 0;a.points=void 0;a.options=void 0;return a}g(e,d);e.prototype.getValues=function(a,c){var b=a.chart,e=a.xData;a=a.yData;var d=c.period,f=!0,h;if(h=b.get(c.volumeSeriesID))return t(a[0])||(f=!1),this.calculateVWAPValues(f,e,a,h,d);p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b)};e.prototype.calculateVWAPValues=function(a,c,b,e,d){var f=e.yData,h=e.xData.length,l=c.length;e=[];var g=[],k=[],n=[],p=[],r;h=l<=h?l:h;for(r=l=0;l<h;l++){var t=a?(b[l][1]+b[l][2]+b[l][3])/3:
|
|
180
|
+
b[l];t*=f[l];t=r?e[l-1]+t:t;var w=r?g[l-1]+f[l]:f[l];e.push(t);g.push(w);p.push([c[l],t/w]);k.push(p[l][0]);n.push(p[l][1]);r++;r===d&&(r=0)}return{values:p,xData:k,yData:n}};e.defaultOptions=n(k.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return e}(k);d.registerSeriesType("vwap",f);"";return f});v(d,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[d["Stock/Indicators/ArrayUtilities.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=
|
|
181
|
+
this&&this.__extends||function(){var e=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),p=f.seriesTypes.sma,t=g.extend,n=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=
|
|
182
|
+
void 0;a.points=void 0;return a}k(a,e);a.prototype.getValues=function(a,b){b=b.period;var c=a.xData,e=(a=a.yData)?a.length:0,f=[],h=[],g=[],k;if(!(c.length<b)&&n(a[0])&&4===a[0].length){for(k=b-1;k<e;k++){var m=a.slice(k-b+1,k+1);var q=d.getArrayExtremes(m,2,1);m=q[0];q=q[1];var p=a[k][3];m=(q-p)/(q-m)*-100;c[k]&&(f.push([c[k],m]),h.push(c[k]),g.push(m))}return{values:f,xData:h,yData:g}}};a.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:14}});return a}(p);t(g.prototype,{nameBase:"Williams %R"});
|
|
183
|
+
f.registerSeriesType("williamsr",g);"";return g});v(d,"Stock/Indicators/WMA/WMAIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){function g(e,a){a*=(a+1)/2;return e.reduce(function(a,b,e){return[null,a[1]+b[1]*(e+1)]})[1]/a}function k(e,a,c,b){c=g(e,e.length);a=a[b-1];e.shift();return[a,c]}var p=this&&this.__extends||function(){var e=function(a,c){e=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 e(a,c)};return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),t=d.seriesTypes.sma,n=f.isArray,h=f.merge;f=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}p(a,e);a.prototype.getValues=function(a,b){var c=b.period,e=a.xData,d=(a=a.yData)?a.length:0,f=1,h=e[0],g=a[0],m=[],q=[],p=[],r=-1;if(!(e.length<c)){n(a[0])&&(r=b.index,
|
|
185
|
+
g=a[0][r]);for(b=[[h,g]];f!==c;)b.push([e[f],0>r?a[f]:a[f][r]]),f++;for(c=f;c<d;c++)f=k(b,e,a,c),m.push(f),q.push(f[0]),p.push(f[1]),b.push([e[c],0>r?a[c]:a[c][r]]);f=k(b,e,a,c);m.push(f);q.push(f[0]);p.push(f[1]);return{values:m,xData:q,yData:p}}};a.defaultOptions=h(t.defaultOptions,{params:{index:3,period:9}});return a}(t);d.registerSeriesType("wma",f);"";return f});v(d,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&
|
|
186
|
+
this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.sma,p=f.merge;f=f.extend;var t=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=
|
|
187
|
+
void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var c=a.lowIndex,b=a.highIndex,d=a.deviation/100;a=1+d;var f=1-d;d=e.xData;var h=e.yData;e=h?h.length:0;var g=[],k=[],n=[],m,q,p=!1,r=!1;if(!(!d||1>=d.length||e&&("undefined"===typeof h[0][c]||"undefined"===typeof h[0][b]))){var t=h[0][c];var v=h[0][b];for(m=1;m<e;m++){if(h[m][c]<=v*f){g.push([d[0],v]);var y=[d[m],h[m][c]];p=q=!0}else h[m][b]>=t*a&&(g.push([d[0],t]),y=[d[m],h[m][b]],q=!1,p=!0);if(p){k.push(g[0][0]);n.push(g[0][1]);var L=m++;
|
|
188
|
+
m=e}}for(m=L;m<e;m++)q?(h[m][c]<=y[1]&&(y=[d[m],h[m][c]]),h[m][b]>=y[1]*a&&(r=b)):(h[m][b]>=y[1]&&(y=[d[m],h[m][b]]),h[m][c]<=y[1]*f&&(r=c)),!1!==r&&(g.push(y),k.push(y[0]),n.push(y[1]),y=[d[m],h[m][r]],q=!q,r=!1);c=g.length;0!==c&&g[c-1][0]<d[e-1]&&(g.push(y),k.push(y[0]),n.push(y[1]));return{values:g,xData:k,yData:n}}};f.defaultOptions=p(k.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(k);f(t.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
|
|
189
|
+
nameBase:"Zig Zag"});d.registerSeriesType("zigzag",t);"";return t});v(d,"Stock/Indicators/LinearRegression/LinearRegressionIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=
|
|
190
|
+
null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.isArray,t=f.extend,n=f.merge;f=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getRegressionLineParameters=function(a,c){var b=this.options.params.index,e=function(a,b){return p(a)?a[b]:a},d=a.reduce(function(a,b){return b+a},0),f=c.reduce(function(a,c){return e(c,b)+a},0);d/=a.length;f/=c.length;var h=0,g=0,k;for(k=
|
|
191
|
+
0;k<a.length;k++){var m=a[k]-d;var n=e(c[k],b)-f;h+=m*n;g+=Math.pow(m,2)}a=g?h/g:0;return{slope:a,intercept:f-a*d}};e.prototype.getEndPointY=function(a,c){return a.slope*c+a.intercept};e.prototype.transformXData=function(a,c){var b=a[0];return a.map(function(a){return(a-b)/c})};e.prototype.findClosestDistance=function(a){var c,b;for(b=1;b<a.length-1;b++){var e=a[b]-a[b-1];0<e&&("undefined"===typeof c||e<c)&&(c=e)}return c};e.prototype.getValues=function(a,c){var b=a.xData;a=a.yData;c=c.period;var e,
|
|
192
|
+
d={xData:[],yData:[],values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(b);for(e=c-1;e<=b.length-1;e++){var h=e-c+1;var g=e+1;var k=b[e];var m=b.slice(h,g);h=a.slice(h,g);g=this.transformXData(m,f);m=this.getRegressionLineParameters(g,h);h=this.getEndPointY(m,g[g.length-1]);d.values.push({regressionLineParameters:m,x:k,y:h});d.xData.push(k);d.yData.push(h)}return d};e.defaultOptions=n(k.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return e}(k);t(f.prototype,
|
|
193
|
+
{nameBase:"Linear Regression Indicator"});d.registerSeriesType("linearRegression",f);"";return f});v(d,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=
|
|
194
|
+
f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.linearRegression,p=f.extend,t=f.merge;f=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(e){return e.slope};f.defaultOptions=t(k.defaultOptions);return f}(k);p(f.prototype,{nameBase:"Linear Regression Slope Indicator"});d.registerSeriesType("linearRegressionSlope",f);"";return f});v(d,
|
|
195
|
+
"Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,
|
|
196
|
+
new a)}}(),k=d.seriesTypes.linearRegression,p=f.extend,t=f.merge;f=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(e){return e.intercept};f.defaultOptions=t(k.defaultOptions);return f}(k);p(f.prototype,{nameBase:"Linear Regression Intercept Indicator"});d.registerSeriesType("linearRegressionIntercept",f);"";return f});v(d,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js",
|
|
197
|
+
[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){var g=this&&this.__extends||function(){var d=function(f,e){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(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),k=d.seriesTypes.linearRegression,p=f.extend,t=f.merge;f=function(d){function f(){var e=
|
|
198
|
+
null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.slopeToAngle=function(e){return 180/Math.PI*Math.atan(e)};f.prototype.getEndPointY=function(e){return this.slopeToAngle(e.slope)};f.defaultOptions=t(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(k);p(f.prototype,{nameBase:"Linear Regression Angle Indicator"});d.registerSeriesType("linearRegressionAngle",
|
|
199
|
+
f);"";return f});v(d,"Stock/Indicators/ABands/ABandsIndicator.js",[d["Stock/Indicators/MultipleLinesComposition.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f,g){var k=this&&this.__extends||function(){var e=function(a,c){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(a,c)};return function(a,c){function b(){this.constructor=a}e(a,c);a.prototype=null===c?Object.create(c):
|
|
200
|
+
(b.prototype=c.prototype,new b)}}(),p=f.seriesTypes.sma,t=g.correctFloat,n=g.extend,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.getValues=function(a,b){var c=b.period,d=b.factor;b=b.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],k=[],m=[],n=[],p=[],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=d;u=t(v-u)/(t(v+u)/2)*1E3*y;h.push(a[r][1]*t(1+2*u));k.push(a[r][2]*
|
|
201
|
+
t(1-2*u))}if(r>=c){u=f.slice(r-c,r);var L=a.slice(r-c,r);y=e.prototype.getValues.call(this,{xData:u,yData:h.slice(r-c,r)},{period:c});v=e.prototype.getValues.call(this,{xData:u,yData:k.slice(r-c,r)},{period:c});L=e.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];m.push([u,y,L,v]);n.push(u);p.push([y,L,v])}}return{values:m,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,
|
|
202
|
+
topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(p);n(g.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});d.compose(g);f.registerSeriesType("abands",g);"";return g});v(d,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],
|
|
203
|
+
function(d,f){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(e,a)};return function(e,a){function c(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),k=d.seriesTypes.sma,p=f.extend,t=f.merge,n=f.isArray;f=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
|
|
204
|
+
void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,c){var b=a.xData,d=a.yData;a=[];var e=[],f=[],g=0,h=0,k=0,m=0,p=b.length,t=c.index;for(c=0;c<p;c++){var r=b[c];var u=n(d[c])?d[c][t]:d[c];g+=r;h+=u;k+=r*u;m+=r*r}d=(p*k-g*h)/(p*m-g*g);isNaN(d)&&(d=0);g=(h-d*g)/p;for(c=0;c<p;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}};e.defaultOptions=t(k.defaultOptions,{params:{period:void 0,index:3}});return e}(k);p(f.prototype,{nameBase:"Trendline",
|
|
205
|
+
nameComponents:!1});d.registerSeriesType("trendline",f);"";return f});v(d,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,f){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=
|
|
206
|
+
null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),k=d.seriesTypes.sma,p=f.correctFloat,t=f.defined,n=f.extend,h=f.isArray,e=f.merge;f=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=d.seriesTypes[c&&c.average?c.average:void 0]||k;this.averageIndicator.prototype.init.apply(this,a)};c.prototype.calculateDisparityIndex=
|
|
207
|
+
function(a,c){return p(a-c)/c*100};c.prototype.getValues=function(a,c){var b=c.index,d=a.xData,e=a.yData,f=e?e.length:0,g=[],k=[],l=[],n=this.averageIndicator,p=h(e[0]);c=n.prototype.getValues(a,c);a=c.yData;c=d.indexOf(c.xData[0]);if(a&&0!==a.length&&t(b)&&!(e.length<=c)){for(n=c;n<f;n++){var u=this.calculateDisparityIndex(p?e[n][b]:e[n],a[n-c]);g.push([d[n],u]);k.push(d[n]);l.push(u)}return{values:g,xData:k,yData:l}}};c.defaultOptions=e(k.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},
|
|
208
|
+
dataGrouping:{approximation:"averages"}});return c}(k);n(f.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});d.registerSeriesType("disparityindex",f);"";return f});v(d,"masters/indicators/indicators-all.src.js",[],function(){})});
|
|
208
209
|
//# sourceMappingURL=indicators-all.js.map
|