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
|
-
* @license Highstock JS v10.
|
|
2
|
+
* @license Highstock JS v10.2.1 (2022-08-29)
|
|
3
3
|
*
|
|
4
4
|
* All technical indicators for Highcharts Stock
|
|
5
5
|
*
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
* @requires stock/indicators/indicators
|
|
459
459
|
* @apioption series.sma
|
|
460
460
|
*/
|
|
461
|
-
''; // adds doclet above to the transpiled file
|
|
461
|
+
(''); // adds doclet above to the transpiled file
|
|
462
462
|
|
|
463
463
|
return SMAIndicator;
|
|
464
464
|
});
|
|
@@ -507,6 +507,11 @@
|
|
|
507
507
|
var EMAIndicator = /** @class */ (function (_super) {
|
|
508
508
|
__extends(EMAIndicator, _super);
|
|
509
509
|
function EMAIndicator() {
|
|
510
|
+
/* *
|
|
511
|
+
*
|
|
512
|
+
* Static Properties
|
|
513
|
+
*
|
|
514
|
+
* */
|
|
510
515
|
var _this = _super !== null && _super.apply(this,
|
|
511
516
|
arguments) || this;
|
|
512
517
|
/* *
|
|
@@ -624,6 +629,11 @@
|
|
|
624
629
|
* Default Export
|
|
625
630
|
*
|
|
626
631
|
* */
|
|
632
|
+
/* *
|
|
633
|
+
*
|
|
634
|
+
* API Options
|
|
635
|
+
*
|
|
636
|
+
* */
|
|
627
637
|
/**
|
|
628
638
|
* A `EMA` series. If the [type](#series.ema.type) option is not
|
|
629
639
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -666,6 +676,11 @@
|
|
|
666
676
|
var error = U.error,
|
|
667
677
|
extend = U.extend,
|
|
668
678
|
merge = U.merge;
|
|
679
|
+
/* *
|
|
680
|
+
*
|
|
681
|
+
* Class
|
|
682
|
+
*
|
|
683
|
+
* */
|
|
669
684
|
/**
|
|
670
685
|
* The AD series type.
|
|
671
686
|
*
|
|
@@ -847,9 +862,8 @@
|
|
|
847
862
|
};
|
|
848
863
|
})();
|
|
849
864
|
var noop = H.noop;
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
ColumnSeries = _a.column;
|
|
865
|
+
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
866
|
+
var columnProto = SeriesRegistry.seriesTypes.column.prototype;
|
|
853
867
|
var extend = U.extend,
|
|
854
868
|
merge = U.merge,
|
|
855
869
|
correctFloat = U.correctFloat,
|
|
@@ -871,23 +885,28 @@
|
|
|
871
885
|
var AOIndicator = /** @class */ (function (_super) {
|
|
872
886
|
__extends(AOIndicator, _super);
|
|
873
887
|
function AOIndicator() {
|
|
888
|
+
/* *
|
|
889
|
+
*
|
|
890
|
+
* Static Properties
|
|
891
|
+
*
|
|
892
|
+
* */
|
|
874
893
|
var _this = _super !== null && _super.apply(this,
|
|
875
894
|
arguments) || this;
|
|
876
|
-
|
|
895
|
+
/* *
|
|
877
896
|
*
|
|
878
|
-
*
|
|
897
|
+
* Properties
|
|
879
898
|
*
|
|
880
|
-
*/
|
|
899
|
+
* */
|
|
881
900
|
_this.data = void 0;
|
|
882
901
|
_this.options = void 0;
|
|
883
902
|
_this.points = void 0;
|
|
884
903
|
return _this;
|
|
885
904
|
}
|
|
886
|
-
|
|
905
|
+
/* *
|
|
887
906
|
*
|
|
888
|
-
*
|
|
907
|
+
* Functions
|
|
889
908
|
*
|
|
890
|
-
*/
|
|
909
|
+
* */
|
|
891
910
|
AOIndicator.prototype.drawGraph = function () {
|
|
892
911
|
var indicator = this,
|
|
893
912
|
options = indicator.options,
|
|
@@ -1004,7 +1023,7 @@
|
|
|
1004
1023
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1005
1024
|
* @since 7.0.0
|
|
1006
1025
|
*/
|
|
1007
|
-
greaterBarColor: "#06b535" /* positiveColor */,
|
|
1026
|
+
greaterBarColor: "#06b535" /* Palette.positiveColor */,
|
|
1008
1027
|
/**
|
|
1009
1028
|
* Color of the Awesome oscillator series bar that is lower than the
|
|
1010
1029
|
* previous one. Note that if a `color` is defined, the `color`
|
|
@@ -1016,7 +1035,7 @@
|
|
|
1016
1035
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
1017
1036
|
* @since 7.0.0
|
|
1018
1037
|
*/
|
|
1019
|
-
lowerBarColor: "#f21313" /* negativeColor */,
|
|
1038
|
+
lowerBarColor: "#f21313" /* Palette.negativeColor */,
|
|
1020
1039
|
threshold: 0,
|
|
1021
1040
|
groupPadding: 0.2,
|
|
1022
1041
|
pointPadding: 0.2,
|
|
@@ -1036,10 +1055,10 @@
|
|
|
1036
1055
|
nameComponents: false,
|
|
1037
1056
|
// Columns support:
|
|
1038
1057
|
markerAttribs: noop,
|
|
1039
|
-
getColumnMetrics:
|
|
1040
|
-
crispCol:
|
|
1041
|
-
translate:
|
|
1042
|
-
drawPoints:
|
|
1058
|
+
getColumnMetrics: columnProto.getColumnMetrics,
|
|
1059
|
+
crispCol: columnProto.crispCol,
|
|
1060
|
+
translate: columnProto.translate,
|
|
1061
|
+
drawPoints: columnProto.drawPoints
|
|
1043
1062
|
});
|
|
1044
1063
|
SeriesRegistry.registerSeriesType('ao', AOIndicator);
|
|
1045
1064
|
/* *
|
|
@@ -1047,6 +1066,11 @@
|
|
|
1047
1066
|
* Default Export
|
|
1048
1067
|
*
|
|
1049
1068
|
* */
|
|
1069
|
+
/* *
|
|
1070
|
+
*
|
|
1071
|
+
* API Options
|
|
1072
|
+
*
|
|
1073
|
+
* */
|
|
1050
1074
|
/**
|
|
1051
1075
|
* An `AO` series. If the [type](#series.ao.type)
|
|
1052
1076
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -1075,7 +1099,7 @@
|
|
|
1075
1099
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
1076
1100
|
*
|
|
1077
1101
|
* */
|
|
1078
|
-
var
|
|
1102
|
+
var smaProto = SeriesRegistry.seriesTypes.sma.prototype;
|
|
1079
1103
|
var defined = U.defined,
|
|
1080
1104
|
error = U.error,
|
|
1081
1105
|
merge = U.merge;
|
|
@@ -1084,16 +1108,6 @@
|
|
|
1084
1108
|
* Composition
|
|
1085
1109
|
*
|
|
1086
1110
|
* */
|
|
1087
|
-
/**
|
|
1088
|
-
* Composition useful for all indicators that have more than one line. Compose
|
|
1089
|
-
* it with your implementation where you will provide the `getValues` method
|
|
1090
|
-
* appropriate to your indicator and `pointArrayMap`, `pointValKey`,
|
|
1091
|
-
* `linesApiNames` properties. Notice that `pointArrayMap` should be consistent
|
|
1092
|
-
* with the amount of lines calculated in the `getValues` method.
|
|
1093
|
-
*
|
|
1094
|
-
* @private
|
|
1095
|
-
* @mixin multipleLinesMixin
|
|
1096
|
-
*/
|
|
1097
1111
|
var MultipleLinesComposition;
|
|
1098
1112
|
(function (MultipleLinesComposition) {
|
|
1099
1113
|
/* *
|
|
@@ -1102,10 +1116,10 @@
|
|
|
1102
1116
|
*
|
|
1103
1117
|
* */
|
|
1104
1118
|
/* *
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1119
|
+
*
|
|
1120
|
+
* Constants
|
|
1121
|
+
*
|
|
1122
|
+
* */
|
|
1109
1123
|
var composedClasses = [];
|
|
1110
1124
|
/**
|
|
1111
1125
|
* Additional lines DOCS names. Elements of linesApiNames array should
|
|
@@ -1114,7 +1128,6 @@
|
|
|
1114
1128
|
* relative to pointArrayMap (without pointValKey).
|
|
1115
1129
|
*
|
|
1116
1130
|
* @private
|
|
1117
|
-
* @name multipleLinesMixin.linesApiNames
|
|
1118
1131
|
* @type {Array<string>}
|
|
1119
1132
|
*/
|
|
1120
1133
|
var linesApiNames = ['bottomLine'];
|
|
@@ -1126,7 +1139,6 @@
|
|
|
1126
1139
|
* getValues method from your implementation.
|
|
1127
1140
|
*
|
|
1128
1141
|
* @private
|
|
1129
|
-
* @name multipleLinesMixin.pointArrayMap
|
|
1130
1142
|
* @type {Array<string>}
|
|
1131
1143
|
*/
|
|
1132
1144
|
var pointArrayMap = ['top', 'bottom'];
|
|
@@ -1135,8 +1147,8 @@
|
|
|
1135
1147
|
* If the drawing of the area should
|
|
1136
1148
|
* be disabled for some indicators, leave this option as an empty array.
|
|
1137
1149
|
* Names should be the same as the names in the pointArrayMap.
|
|
1150
|
+
*
|
|
1138
1151
|
* @private
|
|
1139
|
-
* @name multipleLinesMixin.areaLinesNames
|
|
1140
1152
|
* @type {Array<string>}
|
|
1141
1153
|
*/
|
|
1142
1154
|
var areaLinesNames = ['top'];
|
|
@@ -1144,17 +1156,22 @@
|
|
|
1144
1156
|
* Main line id.
|
|
1145
1157
|
*
|
|
1146
1158
|
* @private
|
|
1147
|
-
* @name multipleLinesMixin.pointValKey
|
|
1148
1159
|
* @type {string}
|
|
1149
1160
|
*/
|
|
1150
1161
|
var pointValKey = 'top';
|
|
1151
1162
|
/* *
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
/* eslint-disable valid-jsdoc */
|
|
1163
|
+
*
|
|
1164
|
+
* Functions
|
|
1165
|
+
*
|
|
1166
|
+
* */
|
|
1157
1167
|
/**
|
|
1168
|
+
* Composition useful for all indicators that have more than one line.
|
|
1169
|
+
* Compose it with your implementation where you will provide the
|
|
1170
|
+
* `getValues` method appropriate to your indicator and `pointArrayMap`,
|
|
1171
|
+
* `pointValKey`, `linesApiNames` properties. Notice that `pointArrayMap`
|
|
1172
|
+
* should be consistent with the amount of lines calculated in the
|
|
1173
|
+
* `getValues` method.
|
|
1174
|
+
*
|
|
1158
1175
|
* @private
|
|
1159
1176
|
*/
|
|
1160
1177
|
function compose(IndicatorClass) {
|
|
@@ -1169,52 +1186,49 @@
|
|
|
1169
1186
|
pointValKey);
|
|
1170
1187
|
proto.areaLinesNames = (proto.areaLinesNames ||
|
|
1171
1188
|
areaLinesNames.slice());
|
|
1172
|
-
proto.drawGraph =
|
|
1173
|
-
proto.getGraphPath =
|
|
1174
|
-
proto.toYData =
|
|
1175
|
-
proto.translate =
|
|
1176
|
-
proto.getTranslatedLinesNames = getTranslatedLinesNames;
|
|
1189
|
+
proto.drawGraph = indicatorDrawGraph;
|
|
1190
|
+
proto.getGraphPath = indicatorGetGraphPath;
|
|
1191
|
+
proto.toYData = indicatorToYData;
|
|
1192
|
+
proto.translate = indicatorTranslate;
|
|
1177
1193
|
}
|
|
1178
1194
|
return IndicatorClass;
|
|
1179
1195
|
}
|
|
1180
1196
|
MultipleLinesComposition.compose = compose;
|
|
1181
1197
|
/**
|
|
1182
|
-
*
|
|
1183
|
-
* If indicator.nextPoints option is defined, create the areaFill.
|
|
1198
|
+
* Generate the API name of the line
|
|
1184
1199
|
*
|
|
1185
|
-
* @
|
|
1200
|
+
* @private
|
|
1201
|
+
* @param propertyName name of the line
|
|
1186
1202
|
*/
|
|
1187
|
-
function
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1203
|
+
function getLineName(propertyName) {
|
|
1204
|
+
return ('plot' +
|
|
1205
|
+
propertyName.charAt(0).toUpperCase() +
|
|
1206
|
+
propertyName.slice(1));
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Create translatedLines Collection based on pointArrayMap.
|
|
1210
|
+
*
|
|
1211
|
+
* @private
|
|
1212
|
+
* @param {string} [excludedValue]
|
|
1213
|
+
* Main line id
|
|
1214
|
+
* @return {Array<string>}
|
|
1215
|
+
* Returns translated lines names without excluded value.
|
|
1216
|
+
*/
|
|
1217
|
+
function getTranslatedLinesNames(indicator, excludedValue) {
|
|
1218
|
+
var translatedLines = [];
|
|
1219
|
+
(indicator.pointArrayMap || []).forEach(function (propertyName) {
|
|
1220
|
+
if (propertyName !== excludedValue) {
|
|
1221
|
+
translatedLines.push(getLineName(propertyName));
|
|
1204
1222
|
}
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
path = SMAIndicator.prototype.getGraphPath.apply(indicator, arguments);
|
|
1208
|
-
}
|
|
1209
|
-
return path;
|
|
1223
|
+
});
|
|
1224
|
+
return translatedLines;
|
|
1210
1225
|
}
|
|
1211
1226
|
/**
|
|
1212
1227
|
* Draw main and additional lines.
|
|
1213
1228
|
*
|
|
1214
1229
|
* @private
|
|
1215
|
-
* @function multipleLinesMixin.drawGraph
|
|
1216
1230
|
*/
|
|
1217
|
-
function
|
|
1231
|
+
function indicatorDrawGraph() {
|
|
1218
1232
|
var indicator = this,
|
|
1219
1233
|
pointValKey = indicator.pointValKey,
|
|
1220
1234
|
linesApiNames = indicator.linesApiNames,
|
|
@@ -1229,7 +1243,8 @@
|
|
|
1229
1243
|
},
|
|
1230
1244
|
// additional lines point place holders:
|
|
1231
1245
|
secondaryLines = [],
|
|
1232
|
-
secondaryLinesNames =
|
|
1246
|
+
secondaryLinesNames = getTranslatedLinesNames(indicator,
|
|
1247
|
+
pointValKey);
|
|
1233
1248
|
var pointsLength = mainLinePoints.length,
|
|
1234
1249
|
point;
|
|
1235
1250
|
// Generate points for additional lines:
|
|
@@ -1248,7 +1263,7 @@
|
|
|
1248
1263
|
pointsLength = mainLinePoints.length;
|
|
1249
1264
|
});
|
|
1250
1265
|
// Modify options and generate area fill:
|
|
1251
|
-
if (
|
|
1266
|
+
if (indicator.userOptions.fillColor && areaLinesNames.length) {
|
|
1252
1267
|
var index = secondaryLinesNames.indexOf(getLineName(areaLinesNames[0])),
|
|
1253
1268
|
secondLinePoints = secondaryLines[index],
|
|
1254
1269
|
firstLinePoints = areaLinesNames.length === 1 ?
|
|
@@ -1257,11 +1272,11 @@
|
|
|
1257
1272
|
originalColor = indicator.color;
|
|
1258
1273
|
indicator.points = firstLinePoints;
|
|
1259
1274
|
indicator.nextPoints = secondLinePoints;
|
|
1260
|
-
indicator.color =
|
|
1275
|
+
indicator.color = indicator.userOptions.fillColor;
|
|
1261
1276
|
indicator.options = merge(mainLinePoints, gappedExtend);
|
|
1262
1277
|
indicator.graph = indicator.area;
|
|
1263
1278
|
indicator.fillGraph = true;
|
|
1264
|
-
|
|
1279
|
+
smaProto.drawGraph.call(indicator);
|
|
1265
1280
|
indicator.area = indicator.graph;
|
|
1266
1281
|
// Clean temporary properties:
|
|
1267
1282
|
delete indicator.nextPoints;
|
|
@@ -1278,11 +1293,10 @@
|
|
|
1278
1293
|
else {
|
|
1279
1294
|
error('Error: "There is no ' + lineName +
|
|
1280
1295
|
' in DOCS options declared. Check if linesApiNames' +
|
|
1281
|
-
' are consistent with your DOCS line names."'
|
|
1282
|
-
' at mixin/multiple-line.js:34');
|
|
1296
|
+
' are consistent with your DOCS line names."');
|
|
1283
1297
|
}
|
|
1284
1298
|
indicator.graph = indicator['graph' + lineName];
|
|
1285
|
-
|
|
1299
|
+
smaProto.drawGraph.call(indicator);
|
|
1286
1300
|
// Now save lines:
|
|
1287
1301
|
indicator['graph' + lineName] = indicator.graph;
|
|
1288
1302
|
}
|
|
@@ -1296,45 +1310,46 @@
|
|
|
1296
1310
|
indicator.points = mainLinePoints;
|
|
1297
1311
|
indicator.options = mainLineOptions;
|
|
1298
1312
|
indicator.graph = mainLinePath;
|
|
1299
|
-
|
|
1313
|
+
smaProto.drawGraph.call(indicator);
|
|
1300
1314
|
}
|
|
1301
1315
|
/**
|
|
1302
|
-
* Create
|
|
1316
|
+
* Create the path based on points provided as argument.
|
|
1317
|
+
* If indicator.nextPoints option is defined, create the areaFill.
|
|
1303
1318
|
*
|
|
1304
1319
|
* @private
|
|
1305
|
-
* @
|
|
1306
|
-
* @param {string} [excludedValue]
|
|
1307
|
-
* Main line id
|
|
1308
|
-
* @return {Array<string>}
|
|
1309
|
-
* Returns translated lines names without excluded value.
|
|
1320
|
+
* @param points Points on which the path should be created
|
|
1310
1321
|
*/
|
|
1311
|
-
function
|
|
1312
|
-
var
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1322
|
+
function indicatorGetGraphPath(points) {
|
|
1323
|
+
var areaPath,
|
|
1324
|
+
path = [],
|
|
1325
|
+
higherAreaPath = [];
|
|
1326
|
+
points = points || this.points;
|
|
1327
|
+
// Render Span
|
|
1328
|
+
if (this.fillGraph && this.nextPoints) {
|
|
1329
|
+
areaPath = smaProto.getGraphPath.call(this, this.nextPoints);
|
|
1330
|
+
if (areaPath && areaPath.length) {
|
|
1331
|
+
areaPath[0][0] = 'L';
|
|
1332
|
+
path = smaProto.getGraphPath.call(this, points);
|
|
1333
|
+
higherAreaPath = areaPath.slice(0, path.length);
|
|
1334
|
+
// Reverse points, so that the areaFill will start from the end:
|
|
1335
|
+
for (var i = higherAreaPath.length - 1; i >= 0; i--) {
|
|
1336
|
+
path.push(higherAreaPath[i]);
|
|
1337
|
+
}
|
|
1316
1338
|
}
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
* @param propertyName name of the line
|
|
1323
|
-
*/
|
|
1324
|
-
function getLineName(propertyName) {
|
|
1325
|
-
return ('plot' +
|
|
1326
|
-
propertyName.charAt(0).toUpperCase() +
|
|
1327
|
-
propertyName.slice(1));
|
|
1339
|
+
}
|
|
1340
|
+
else {
|
|
1341
|
+
path = smaProto.getGraphPath.apply(this, arguments);
|
|
1342
|
+
}
|
|
1343
|
+
return path;
|
|
1328
1344
|
}
|
|
1329
1345
|
/**
|
|
1330
1346
|
* @private
|
|
1331
|
-
* @function multipleLinesMixin.toYData
|
|
1332
1347
|
* @param {Highcharts.Point} point
|
|
1333
1348
|
* Indicator point
|
|
1334
1349
|
* @return {Array<number>}
|
|
1335
1350
|
* Returns point Y value for all lines
|
|
1336
1351
|
*/
|
|
1337
|
-
function
|
|
1352
|
+
function indicatorToYData(point) {
|
|
1338
1353
|
var pointColl = [];
|
|
1339
1354
|
(this.pointArrayMap || []).forEach(function (propertyName) {
|
|
1340
1355
|
pointColl.push(point[propertyName]);
|
|
@@ -1345,25 +1360,24 @@
|
|
|
1345
1360
|
* Add lines plot pixel values.
|
|
1346
1361
|
*
|
|
1347
1362
|
* @private
|
|
1348
|
-
* @function multipleLinesMixin.translate
|
|
1349
1363
|
*/
|
|
1350
|
-
function
|
|
1351
|
-
var
|
|
1352
|
-
|
|
1364
|
+
function indicatorTranslate() {
|
|
1365
|
+
var _this = this;
|
|
1366
|
+
var pointArrayMap = this.pointArrayMap;
|
|
1353
1367
|
var LinesNames = [],
|
|
1354
1368
|
value;
|
|
1355
|
-
LinesNames =
|
|
1356
|
-
|
|
1357
|
-
|
|
1369
|
+
LinesNames = getTranslatedLinesNames(this);
|
|
1370
|
+
smaProto.translate.apply(this, arguments);
|
|
1371
|
+
this.points.forEach(function (point) {
|
|
1358
1372
|
pointArrayMap.forEach(function (propertyName, i) {
|
|
1359
1373
|
value = point[propertyName];
|
|
1360
1374
|
// If the modifier, like for example compare exists,
|
|
1361
1375
|
// modified the original value by that method, #15867.
|
|
1362
|
-
if (
|
|
1363
|
-
value =
|
|
1376
|
+
if (_this.dataModify) {
|
|
1377
|
+
value = _this.dataModify.modifyValue(value);
|
|
1364
1378
|
}
|
|
1365
1379
|
if (value !== null) {
|
|
1366
|
-
point[LinesNames[i]] =
|
|
1380
|
+
point[LinesNames[i]] = _this.yAxis.toPixels(value, true);
|
|
1367
1381
|
}
|
|
1368
1382
|
});
|
|
1369
1383
|
});
|
|
@@ -1405,7 +1419,11 @@
|
|
|
1405
1419
|
var extend = U.extend,
|
|
1406
1420
|
merge = U.merge,
|
|
1407
1421
|
pick = U.pick;
|
|
1408
|
-
/*
|
|
1422
|
+
/* *
|
|
1423
|
+
*
|
|
1424
|
+
* Functions
|
|
1425
|
+
*
|
|
1426
|
+
* */
|
|
1409
1427
|
// Utils
|
|
1410
1428
|
// Index of element with extreme value from array (min or max)
|
|
1411
1429
|
/**
|
|
@@ -1424,7 +1442,6 @@
|
|
|
1424
1442
|
}
|
|
1425
1443
|
return valueIndex;
|
|
1426
1444
|
}
|
|
1427
|
-
/* eslint-enable valid-jsdoc */
|
|
1428
1445
|
/* *
|
|
1429
1446
|
*
|
|
1430
1447
|
* Class
|
|
@@ -1442,6 +1459,11 @@
|
|
|
1442
1459
|
var AroonIndicator = /** @class */ (function (_super) {
|
|
1443
1460
|
__extends(AroonIndicator, _super);
|
|
1444
1461
|
function AroonIndicator() {
|
|
1462
|
+
/* *
|
|
1463
|
+
*
|
|
1464
|
+
* Static Properties
|
|
1465
|
+
*
|
|
1466
|
+
* */
|
|
1445
1467
|
var _this = _super !== null && _super.apply(this,
|
|
1446
1468
|
arguments) || this;
|
|
1447
1469
|
/* *
|
|
@@ -1576,6 +1598,11 @@
|
|
|
1576
1598
|
* Default Export
|
|
1577
1599
|
*
|
|
1578
1600
|
* */
|
|
1601
|
+
/* *
|
|
1602
|
+
*
|
|
1603
|
+
* API Options
|
|
1604
|
+
*
|
|
1605
|
+
* */
|
|
1579
1606
|
/**
|
|
1580
1607
|
* A Aroon indicator. If the [type](#series.aroon.type) option is not
|
|
1581
1608
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -1621,7 +1648,6 @@
|
|
|
1621
1648
|
var AroonIndicator = SeriesRegistry.seriesTypes.aroon;
|
|
1622
1649
|
var extend = U.extend,
|
|
1623
1650
|
merge = U.merge;
|
|
1624
|
-
var AROON = SeriesRegistry.seriesTypes.aroon;
|
|
1625
1651
|
/* *
|
|
1626
1652
|
*
|
|
1627
1653
|
* Class
|
|
@@ -1671,7 +1697,7 @@
|
|
|
1671
1697
|
aroonDown,
|
|
1672
1698
|
oscillator,
|
|
1673
1699
|
i;
|
|
1674
|
-
aroon =
|
|
1700
|
+
aroon = _super.prototype.getValues.call(this, series, params);
|
|
1675
1701
|
for (i = 0; i < aroon.yData.length; i++) {
|
|
1676
1702
|
aroonUp = aroon.yData[i][0];
|
|
1677
1703
|
aroonDown = aroon.yData[i][1];
|
|
@@ -1726,6 +1752,11 @@
|
|
|
1726
1752
|
* Default Export
|
|
1727
1753
|
*
|
|
1728
1754
|
* */
|
|
1755
|
+
/* *
|
|
1756
|
+
*
|
|
1757
|
+
* API Options
|
|
1758
|
+
*
|
|
1759
|
+
* */
|
|
1729
1760
|
/**
|
|
1730
1761
|
* An `Aroon Oscillator` series. If the [type](#series.aroonoscillator.type)
|
|
1731
1762
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -1773,7 +1804,11 @@
|
|
|
1773
1804
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
1774
1805
|
var isArray = U.isArray,
|
|
1775
1806
|
merge = U.merge;
|
|
1776
|
-
/*
|
|
1807
|
+
/* *
|
|
1808
|
+
*
|
|
1809
|
+
* Functions
|
|
1810
|
+
*
|
|
1811
|
+
* */
|
|
1777
1812
|
// Utils:
|
|
1778
1813
|
/**
|
|
1779
1814
|
* @private
|
|
@@ -1801,10 +1836,9 @@
|
|
|
1801
1836
|
y = (((prevATR * (period - 1)) + TR) / period);
|
|
1802
1837
|
return [x, y];
|
|
1803
1838
|
}
|
|
1804
|
-
/* eslint-enable valid-jsdoc */
|
|
1805
1839
|
/* *
|
|
1806
1840
|
*
|
|
1807
|
-
*
|
|
1841
|
+
* Class
|
|
1808
1842
|
*
|
|
1809
1843
|
* */
|
|
1810
1844
|
/**
|
|
@@ -1819,6 +1853,11 @@
|
|
|
1819
1853
|
var ATRIndicator = /** @class */ (function (_super) {
|
|
1820
1854
|
__extends(ATRIndicator, _super);
|
|
1821
1855
|
function ATRIndicator() {
|
|
1856
|
+
/* *
|
|
1857
|
+
*
|
|
1858
|
+
* Static Properties
|
|
1859
|
+
*
|
|
1860
|
+
* */
|
|
1822
1861
|
var _this = _super !== null && _super.apply(this,
|
|
1823
1862
|
arguments) || this;
|
|
1824
1863
|
/* *
|
|
@@ -1915,6 +1954,11 @@
|
|
|
1915
1954
|
* Default Export
|
|
1916
1955
|
*
|
|
1917
1956
|
* */
|
|
1957
|
+
/* *
|
|
1958
|
+
*
|
|
1959
|
+
* API Options
|
|
1960
|
+
*
|
|
1961
|
+
* */
|
|
1918
1962
|
/**
|
|
1919
1963
|
* A `ATR` series. If the [type](#series.atr.type) option is not specified, it
|
|
1920
1964
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -1964,7 +2008,6 @@
|
|
|
1964
2008
|
* Functions
|
|
1965
2009
|
*
|
|
1966
2010
|
* */
|
|
1967
|
-
/* eslint-disable valid-jsdoc */
|
|
1968
2011
|
// Utils:
|
|
1969
2012
|
/**
|
|
1970
2013
|
* @private
|
|
@@ -2168,10 +2211,10 @@
|
|
|
2168
2211
|
}(SMAIndicator));
|
|
2169
2212
|
extend(BBIndicator.prototype, {
|
|
2170
2213
|
areaLinesNames: ['top', 'bottom'],
|
|
2171
|
-
|
|
2172
|
-
pointValKey: 'middle',
|
|
2214
|
+
linesApiNames: ['topLine', 'bottomLine'],
|
|
2173
2215
|
nameComponents: ['period', 'standardDeviation'],
|
|
2174
|
-
|
|
2216
|
+
pointArrayMap: ['top', 'middle', 'bottom'],
|
|
2217
|
+
pointValKey: 'middle'
|
|
2175
2218
|
});
|
|
2176
2219
|
MultipleLinesComposition.compose(BBIndicator);
|
|
2177
2220
|
SeriesRegistry.registerSeriesType('bb', BBIndicator);
|
|
@@ -2180,6 +2223,11 @@
|
|
|
2180
2223
|
* Default Export
|
|
2181
2224
|
*
|
|
2182
2225
|
* */
|
|
2226
|
+
/* *
|
|
2227
|
+
*
|
|
2228
|
+
* API Options
|
|
2229
|
+
*
|
|
2230
|
+
* */
|
|
2183
2231
|
/**
|
|
2184
2232
|
* A bollinger bands indicator. If the [type](#series.bb.type) option is not
|
|
2185
2233
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -2222,7 +2270,11 @@
|
|
|
2222
2270
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
2223
2271
|
var isArray = U.isArray,
|
|
2224
2272
|
merge = U.merge;
|
|
2225
|
-
/*
|
|
2273
|
+
/* *
|
|
2274
|
+
*
|
|
2275
|
+
* Functions
|
|
2276
|
+
*
|
|
2277
|
+
* */
|
|
2226
2278
|
// Utils:
|
|
2227
2279
|
/**
|
|
2228
2280
|
* @private
|
|
@@ -2244,10 +2296,9 @@
|
|
|
2244
2296
|
}
|
|
2245
2297
|
return sum;
|
|
2246
2298
|
}
|
|
2247
|
-
/* eslint-enable valid-jsdoc */
|
|
2248
2299
|
/* *
|
|
2249
2300
|
*
|
|
2250
|
-
*
|
|
2301
|
+
* Class
|
|
2251
2302
|
*
|
|
2252
2303
|
* */
|
|
2253
2304
|
/**
|
|
@@ -2262,6 +2313,11 @@
|
|
|
2262
2313
|
var CCIIndicator = /** @class */ (function (_super) {
|
|
2263
2314
|
__extends(CCIIndicator, _super);
|
|
2264
2315
|
function CCIIndicator() {
|
|
2316
|
+
/* *
|
|
2317
|
+
*
|
|
2318
|
+
* Static Properties
|
|
2319
|
+
*
|
|
2320
|
+
* */
|
|
2265
2321
|
var _this = _super !== null && _super.apply(this,
|
|
2266
2322
|
arguments) || this;
|
|
2267
2323
|
/* *
|
|
@@ -2357,6 +2413,11 @@
|
|
|
2357
2413
|
* Default Export
|
|
2358
2414
|
*
|
|
2359
2415
|
* */
|
|
2416
|
+
/* *
|
|
2417
|
+
*
|
|
2418
|
+
* API Options
|
|
2419
|
+
*
|
|
2420
|
+
* */
|
|
2360
2421
|
/**
|
|
2361
2422
|
* A `CCI` series. If the [type](#series.cci.type) option is not
|
|
2362
2423
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -2405,6 +2466,11 @@
|
|
|
2405
2466
|
})();
|
|
2406
2467
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
2407
2468
|
var merge = U.merge;
|
|
2469
|
+
/* *
|
|
2470
|
+
*
|
|
2471
|
+
* Class
|
|
2472
|
+
*
|
|
2473
|
+
* */
|
|
2408
2474
|
/**
|
|
2409
2475
|
* The CMF series type.
|
|
2410
2476
|
*
|
|
@@ -2417,6 +2483,11 @@
|
|
|
2417
2483
|
var CMFIndicator = /** @class */ (function (_super) {
|
|
2418
2484
|
__extends(CMFIndicator, _super);
|
|
2419
2485
|
function CMFIndicator() {
|
|
2486
|
+
/* *
|
|
2487
|
+
*
|
|
2488
|
+
* Static Properties
|
|
2489
|
+
*
|
|
2490
|
+
* */
|
|
2420
2491
|
var _this = _super !== null && _super.apply(this,
|
|
2421
2492
|
arguments) || this;
|
|
2422
2493
|
/* *
|
|
@@ -2433,6 +2504,11 @@
|
|
|
2433
2504
|
_this.nameBase = 'Chaikin Money Flow';
|
|
2434
2505
|
return _this;
|
|
2435
2506
|
}
|
|
2507
|
+
/* *
|
|
2508
|
+
*
|
|
2509
|
+
* Functions
|
|
2510
|
+
*
|
|
2511
|
+
* */
|
|
2436
2512
|
/**
|
|
2437
2513
|
* Checks if the series and volumeSeries are accessible, number of
|
|
2438
2514
|
* points.x is longer than period, is series has OHLC data
|
|
@@ -2620,6 +2696,11 @@
|
|
|
2620
2696
|
* Default Export
|
|
2621
2697
|
*
|
|
2622
2698
|
* */
|
|
2699
|
+
/* *
|
|
2700
|
+
*
|
|
2701
|
+
* API Options
|
|
2702
|
+
*
|
|
2703
|
+
* */
|
|
2623
2704
|
/**
|
|
2624
2705
|
* A `CMF` series. If the [type](#series.cmf.type) option is not
|
|
2625
2706
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -2763,11 +2844,15 @@
|
|
|
2763
2844
|
var smoothedPlusDM = void 0,
|
|
2764
2845
|
smoothedMinusDM = void 0,
|
|
2765
2846
|
smoothedTR = void 0,
|
|
2766
|
-
plusDM =
|
|
2767
|
-
|
|
2847
|
+
plusDM = // +DM
|
|
2848
|
+
void 0, // +DM
|
|
2849
|
+
minusDM = // -DM
|
|
2850
|
+
void 0, // -DM
|
|
2768
2851
|
TR = void 0,
|
|
2769
|
-
plusDI =
|
|
2770
|
-
|
|
2852
|
+
plusDI = // +DI
|
|
2853
|
+
void 0, // +DI
|
|
2854
|
+
minusDI = // -DI
|
|
2855
|
+
void 0, // -DI
|
|
2771
2856
|
DX = void 0;
|
|
2772
2857
|
if (i <= period) {
|
|
2773
2858
|
plusDM = this.calculateDM(yVal, i, true);
|
|
@@ -2871,7 +2956,7 @@
|
|
|
2871
2956
|
*
|
|
2872
2957
|
* @type {Highcharts.ColorString}
|
|
2873
2958
|
*/
|
|
2874
|
-
lineColor: "#06b535" /* positiveColor */ // green-ish
|
|
2959
|
+
lineColor: "#06b535" /* Palette.positiveColor */ // green-ish
|
|
2875
2960
|
}
|
|
2876
2961
|
},
|
|
2877
2962
|
/**
|
|
@@ -2891,7 +2976,7 @@
|
|
|
2891
2976
|
*
|
|
2892
2977
|
* @type {Highcharts.ColorString}
|
|
2893
2978
|
*/
|
|
2894
|
-
lineColor: "#f21313" /* negativeColor */ // red-ish
|
|
2979
|
+
lineColor: "#f21313" /* Palette.negativeColor */ // red-ish
|
|
2895
2980
|
}
|
|
2896
2981
|
},
|
|
2897
2982
|
dataGrouping: {
|
|
@@ -2915,6 +3000,11 @@
|
|
|
2915
3000
|
* Default Export
|
|
2916
3001
|
*
|
|
2917
3002
|
* */
|
|
3003
|
+
/* *
|
|
3004
|
+
*
|
|
3005
|
+
* API Options
|
|
3006
|
+
*
|
|
3007
|
+
* */
|
|
2918
3008
|
/**
|
|
2919
3009
|
* The Directional Movement Index (DMI) indicator series.
|
|
2920
3010
|
* If the [type](#series.dmi.type) option is not
|
|
@@ -2963,7 +3053,11 @@
|
|
|
2963
3053
|
merge = U.merge,
|
|
2964
3054
|
correctFloat = U.correctFloat,
|
|
2965
3055
|
pick = U.pick;
|
|
2966
|
-
/*
|
|
3056
|
+
/* *
|
|
3057
|
+
*
|
|
3058
|
+
* Functions
|
|
3059
|
+
*
|
|
3060
|
+
* */
|
|
2967
3061
|
// Utils:
|
|
2968
3062
|
/**
|
|
2969
3063
|
* @private
|
|
@@ -2993,13 +3087,18 @@
|
|
|
2993
3087
|
var DPOIndicator = /** @class */ (function (_super) {
|
|
2994
3088
|
__extends(DPOIndicator, _super);
|
|
2995
3089
|
function DPOIndicator() {
|
|
3090
|
+
/* *
|
|
3091
|
+
*
|
|
3092
|
+
* Static Properties
|
|
3093
|
+
*
|
|
3094
|
+
* */
|
|
2996
3095
|
var _this = _super !== null && _super.apply(this,
|
|
2997
3096
|
arguments) || this;
|
|
2998
3097
|
/* *
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3098
|
+
*
|
|
3099
|
+
* Properties
|
|
3100
|
+
*
|
|
3101
|
+
* */
|
|
3003
3102
|
_this.options = void 0;
|
|
3004
3103
|
_this.data = void 0;
|
|
3005
3104
|
_this.points = void 0;
|
|
@@ -3010,9 +3109,6 @@
|
|
|
3010
3109
|
* Functions
|
|
3011
3110
|
*
|
|
3012
3111
|
* */
|
|
3013
|
-
/**
|
|
3014
|
-
* @lends Highcharts.Series#
|
|
3015
|
-
*/
|
|
3016
3112
|
DPOIndicator.prototype.getValues = function (series, params) {
|
|
3017
3113
|
var period = params.period,
|
|
3018
3114
|
index = params.index,
|
|
@@ -3102,6 +3198,11 @@
|
|
|
3102
3198
|
* Default Export
|
|
3103
3199
|
*
|
|
3104
3200
|
* */
|
|
3201
|
+
/* *
|
|
3202
|
+
*
|
|
3203
|
+
* API Options
|
|
3204
|
+
*
|
|
3205
|
+
* */
|
|
3105
3206
|
/**
|
|
3106
3207
|
* A Detrended Price Oscillator. If the [type](#series.dpo.type) option is not
|
|
3107
3208
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -3120,7 +3221,7 @@
|
|
|
3120
3221
|
|
|
3121
3222
|
return DPOIndicator;
|
|
3122
3223
|
});
|
|
3123
|
-
_registerModule(_modules, 'Stock/Indicators/Chaikin/ChaikinIndicator.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
|
|
3224
|
+
_registerModule(_modules, 'Stock/Indicators/Chaikin/ChaikinIndicator.js', [_modules['Stock/Indicators/AD/ADIndicator.js'], _modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (AD, SeriesRegistry, U) {
|
|
3124
3225
|
/* *
|
|
3125
3226
|
*
|
|
3126
3227
|
* License: www.highcharts.com/license
|
|
@@ -3144,9 +3245,7 @@
|
|
|
3144
3245
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3145
3246
|
};
|
|
3146
3247
|
})();
|
|
3147
|
-
var
|
|
3148
|
-
AD = _a.ad,
|
|
3149
|
-
EMAIndicator = _a.ema;
|
|
3248
|
+
var EMAIndicator = SeriesRegistry.seriesTypes.ema;
|
|
3150
3249
|
var correctFloat = U.correctFloat,
|
|
3151
3250
|
extend = U.extend,
|
|
3152
3251
|
merge = U.merge,
|
|
@@ -3303,6 +3402,11 @@
|
|
|
3303
3402
|
* Default Export
|
|
3304
3403
|
*
|
|
3305
3404
|
* */
|
|
3405
|
+
/* *
|
|
3406
|
+
*
|
|
3407
|
+
* API Options
|
|
3408
|
+
*
|
|
3409
|
+
* */
|
|
3306
3410
|
/**
|
|
3307
3411
|
* A `Chaikin Oscillator` series. If the [type](#series.chaikin.type)
|
|
3308
3412
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -3348,7 +3452,11 @@
|
|
|
3348
3452
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
3349
3453
|
var isNumber = U.isNumber,
|
|
3350
3454
|
merge = U.merge;
|
|
3351
|
-
/*
|
|
3455
|
+
/* *
|
|
3456
|
+
*
|
|
3457
|
+
* Class
|
|
3458
|
+
*
|
|
3459
|
+
* */
|
|
3352
3460
|
/**
|
|
3353
3461
|
* The CMO series type.
|
|
3354
3462
|
*
|
|
@@ -3361,6 +3469,11 @@
|
|
|
3361
3469
|
var CMOIndicator = /** @class */ (function (_super) {
|
|
3362
3470
|
__extends(CMOIndicator, _super);
|
|
3363
3471
|
function CMOIndicator() {
|
|
3472
|
+
/* *
|
|
3473
|
+
*
|
|
3474
|
+
* Static Properties
|
|
3475
|
+
*
|
|
3476
|
+
* */
|
|
3364
3477
|
var _this = _super !== null && _super.apply(this,
|
|
3365
3478
|
arguments) || this;
|
|
3366
3479
|
/* *
|
|
@@ -3487,6 +3600,11 @@
|
|
|
3487
3600
|
* Default Export
|
|
3488
3601
|
*
|
|
3489
3602
|
* */
|
|
3603
|
+
/* *
|
|
3604
|
+
*
|
|
3605
|
+
* API Options
|
|
3606
|
+
*
|
|
3607
|
+
* */
|
|
3490
3608
|
/**
|
|
3491
3609
|
* A `CMO` series. If the [type](#series.cmo.type) option is not
|
|
3492
3610
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -3531,6 +3649,11 @@
|
|
|
3531
3649
|
var correctFloat = U.correctFloat,
|
|
3532
3650
|
isArray = U.isArray,
|
|
3533
3651
|
merge = U.merge;
|
|
3652
|
+
/* *
|
|
3653
|
+
*
|
|
3654
|
+
* Class
|
|
3655
|
+
*
|
|
3656
|
+
* */
|
|
3534
3657
|
/**
|
|
3535
3658
|
* The DEMA series Type
|
|
3536
3659
|
*
|
|
@@ -3543,14 +3666,29 @@
|
|
|
3543
3666
|
var DEMAIndicator = /** @class */ (function (_super) {
|
|
3544
3667
|
__extends(DEMAIndicator, _super);
|
|
3545
3668
|
function DEMAIndicator() {
|
|
3669
|
+
/* *
|
|
3670
|
+
*
|
|
3671
|
+
* Static Properties
|
|
3672
|
+
*
|
|
3673
|
+
* */
|
|
3546
3674
|
var _this = _super !== null && _super.apply(this,
|
|
3547
3675
|
arguments) || this;
|
|
3676
|
+
/* *
|
|
3677
|
+
*
|
|
3678
|
+
* Properties
|
|
3679
|
+
*
|
|
3680
|
+
* */
|
|
3548
3681
|
_this.EMApercent = void 0;
|
|
3549
3682
|
_this.data = void 0;
|
|
3550
3683
|
_this.options = void 0;
|
|
3551
3684
|
_this.points = void 0;
|
|
3552
3685
|
return _this;
|
|
3553
3686
|
}
|
|
3687
|
+
/* *
|
|
3688
|
+
*
|
|
3689
|
+
* Functions
|
|
3690
|
+
*
|
|
3691
|
+
* */
|
|
3554
3692
|
DEMAIndicator.prototype.getEMA = function (yVal, prevEMA, SMA, index, i, xVal) {
|
|
3555
3693
|
return EMAIndicator.prototype.calculateEma(xVal || [], yVal, typeof i === 'undefined' ? 1 : i, this.EMApercent, prevEMA, typeof index === 'undefined' ? -1 : index, SMA);
|
|
3556
3694
|
};
|
|
@@ -3654,6 +3792,11 @@
|
|
|
3654
3792
|
* Default Export
|
|
3655
3793
|
*
|
|
3656
3794
|
* */
|
|
3795
|
+
/* *
|
|
3796
|
+
*
|
|
3797
|
+
* API Options
|
|
3798
|
+
*
|
|
3799
|
+
* */
|
|
3657
3800
|
/**
|
|
3658
3801
|
* A `DEMA` series. If the [type](#series.dema.type) option is not
|
|
3659
3802
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -3928,6 +4071,11 @@
|
|
|
3928
4071
|
var TEMAIndicator = SeriesRegistry.seriesTypes.tema;
|
|
3929
4072
|
var correctFloat = U.correctFloat,
|
|
3930
4073
|
merge = U.merge;
|
|
4074
|
+
/* *
|
|
4075
|
+
*
|
|
4076
|
+
* Class
|
|
4077
|
+
*
|
|
4078
|
+
* */
|
|
3931
4079
|
/**
|
|
3932
4080
|
* The TRIX series type.
|
|
3933
4081
|
*
|
|
@@ -3940,13 +4088,28 @@
|
|
|
3940
4088
|
var TRIXIndicator = /** @class */ (function (_super) {
|
|
3941
4089
|
__extends(TRIXIndicator, _super);
|
|
3942
4090
|
function TRIXIndicator() {
|
|
4091
|
+
/* *
|
|
4092
|
+
*
|
|
4093
|
+
* Static Properties
|
|
4094
|
+
*
|
|
4095
|
+
* */
|
|
3943
4096
|
var _this = _super !== null && _super.apply(this,
|
|
3944
4097
|
arguments) || this;
|
|
4098
|
+
/* *
|
|
4099
|
+
*
|
|
4100
|
+
* Properties
|
|
4101
|
+
*
|
|
4102
|
+
* */
|
|
3945
4103
|
_this.data = void 0;
|
|
3946
4104
|
_this.options = void 0;
|
|
3947
4105
|
_this.points = void 0;
|
|
3948
4106
|
return _this;
|
|
3949
4107
|
}
|
|
4108
|
+
/* *
|
|
4109
|
+
*
|
|
4110
|
+
* Functions
|
|
4111
|
+
*
|
|
4112
|
+
* */
|
|
3950
4113
|
// TRIX is calculated using TEMA so we just extend getTemaPoint method.
|
|
3951
4114
|
TRIXIndicator.prototype.getTemaPoint = function (xVal, tripledPeriod, EMAlevels, i) {
|
|
3952
4115
|
if (i > tripledPeriod) {
|
|
@@ -3986,6 +4149,11 @@
|
|
|
3986
4149
|
* Default Export
|
|
3987
4150
|
*
|
|
3988
4151
|
* */
|
|
4152
|
+
/* *
|
|
4153
|
+
*
|
|
4154
|
+
* API Options
|
|
4155
|
+
*
|
|
4156
|
+
* */
|
|
3989
4157
|
/**
|
|
3990
4158
|
* A `TRIX` series. If the [type](#series.trix.type) option is not specified, it
|
|
3991
4159
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -4165,6 +4333,11 @@
|
|
|
4165
4333
|
* Default Export
|
|
4166
4334
|
*
|
|
4167
4335
|
* */
|
|
4336
|
+
/* *
|
|
4337
|
+
*
|
|
4338
|
+
* API Options
|
|
4339
|
+
*
|
|
4340
|
+
* */
|
|
4168
4341
|
/**
|
|
4169
4342
|
* An `Absolute Price Oscillator` series. If the [type](#series.apo.type) option
|
|
4170
4343
|
* is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -4215,7 +4388,11 @@
|
|
|
4215
4388
|
isNumber = U.isNumber,
|
|
4216
4389
|
merge = U.merge,
|
|
4217
4390
|
objectEach = U.objectEach;
|
|
4218
|
-
/*
|
|
4391
|
+
/* *
|
|
4392
|
+
*
|
|
4393
|
+
* Functions
|
|
4394
|
+
*
|
|
4395
|
+
* */
|
|
4219
4396
|
// Utils:
|
|
4220
4397
|
function maxHigh(arr) {
|
|
4221
4398
|
return arr.reduce(function (max, res) {
|
|
@@ -4293,6 +4470,7 @@
|
|
|
4293
4470
|
// Data integrity in Ichimoku is different than default 'averages':
|
|
4294
4471
|
// Point: [undefined, value, value, ...] is correct
|
|
4295
4472
|
// Point: [undefined, undefined, undefined, ...] is incorrect
|
|
4473
|
+
// @todo compose
|
|
4296
4474
|
H.approximations['ichimoku-averages'] = function () {
|
|
4297
4475
|
var ret = [],
|
|
4298
4476
|
isEmptyRange;
|
|
@@ -4304,7 +4482,11 @@
|
|
|
4304
4482
|
// sum method handle null (#7377)
|
|
4305
4483
|
return isEmptyRange ? void 0 : ret;
|
|
4306
4484
|
};
|
|
4307
|
-
/*
|
|
4485
|
+
/* *
|
|
4486
|
+
*
|
|
4487
|
+
* Class
|
|
4488
|
+
*
|
|
4489
|
+
* */
|
|
4308
4490
|
/**
|
|
4309
4491
|
* The IKH series type.
|
|
4310
4492
|
*
|
|
@@ -4314,21 +4496,21 @@
|
|
|
4314
4496
|
*
|
|
4315
4497
|
* @augments Highcharts.Series
|
|
4316
4498
|
*/
|
|
4317
|
-
/* *
|
|
4318
|
-
*
|
|
4319
|
-
* Class
|
|
4320
|
-
*
|
|
4321
|
-
* */
|
|
4322
4499
|
var IKHIndicator = /** @class */ (function (_super) {
|
|
4323
4500
|
__extends(IKHIndicator, _super);
|
|
4324
4501
|
function IKHIndicator() {
|
|
4502
|
+
/* *
|
|
4503
|
+
*
|
|
4504
|
+
* Static Properties
|
|
4505
|
+
*
|
|
4506
|
+
* */
|
|
4325
4507
|
var _this = _super !== null && _super.apply(this,
|
|
4326
4508
|
arguments) || this;
|
|
4327
4509
|
/* *
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4510
|
+
*
|
|
4511
|
+
* Properties
|
|
4512
|
+
*
|
|
4513
|
+
* */
|
|
4332
4514
|
_this.data = void 0;
|
|
4333
4515
|
_this.options = void 0;
|
|
4334
4516
|
_this.points = void 0;
|
|
@@ -4339,10 +4521,10 @@
|
|
|
4339
4521
|
return _this;
|
|
4340
4522
|
}
|
|
4341
4523
|
/* *
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4524
|
+
*
|
|
4525
|
+
* Functions
|
|
4526
|
+
*
|
|
4527
|
+
* */
|
|
4346
4528
|
IKHIndicator.prototype.init = function () {
|
|
4347
4529
|
SeriesRegistry.seriesTypes.sma.prototype.init.apply(this, arguments);
|
|
4348
4530
|
// Set default color for lines:
|
|
@@ -4920,6 +5102,16 @@
|
|
|
4920
5102
|
nameComponents: ['periodSenkouSpanB', 'period', 'periodTenkan']
|
|
4921
5103
|
});
|
|
4922
5104
|
SeriesRegistry.registerSeriesType('ikh', IKHIndicator);
|
|
5105
|
+
/* *
|
|
5106
|
+
*
|
|
5107
|
+
* Default Export
|
|
5108
|
+
*
|
|
5109
|
+
* */
|
|
5110
|
+
/* *
|
|
5111
|
+
*
|
|
5112
|
+
* API Options
|
|
5113
|
+
*
|
|
5114
|
+
* */
|
|
4923
5115
|
/**
|
|
4924
5116
|
* A `IKH` series. If the [type](#series.ikh.type) option is not
|
|
4925
5117
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -4964,6 +5156,11 @@
|
|
|
4964
5156
|
var correctFloat = U.correctFloat,
|
|
4965
5157
|
extend = U.extend,
|
|
4966
5158
|
merge = U.merge;
|
|
5159
|
+
/* *
|
|
5160
|
+
*
|
|
5161
|
+
* Class
|
|
5162
|
+
*
|
|
5163
|
+
* */
|
|
4967
5164
|
/**
|
|
4968
5165
|
* The Keltner Channels series type.
|
|
4969
5166
|
*
|
|
@@ -4976,13 +5173,28 @@
|
|
|
4976
5173
|
var KeltnerChannelsIndicator = /** @class */ (function (_super) {
|
|
4977
5174
|
__extends(KeltnerChannelsIndicator, _super);
|
|
4978
5175
|
function KeltnerChannelsIndicator() {
|
|
5176
|
+
/* *
|
|
5177
|
+
*
|
|
5178
|
+
* Static Properties
|
|
5179
|
+
*
|
|
5180
|
+
* */
|
|
4979
5181
|
var _this = _super !== null && _super.apply(this,
|
|
4980
5182
|
arguments) || this;
|
|
5183
|
+
/* *
|
|
5184
|
+
*
|
|
5185
|
+
* Properties
|
|
5186
|
+
*
|
|
5187
|
+
* */
|
|
4981
5188
|
_this.data = void 0;
|
|
4982
5189
|
_this.options = void 0;
|
|
4983
5190
|
_this.points = void 0;
|
|
4984
5191
|
return _this;
|
|
4985
5192
|
}
|
|
5193
|
+
/* *
|
|
5194
|
+
*
|
|
5195
|
+
* Functions
|
|
5196
|
+
*
|
|
5197
|
+
* */
|
|
4986
5198
|
KeltnerChannelsIndicator.prototype.init = function () {
|
|
4987
5199
|
SeriesRegistry.seriesTypes.sma.prototype.init.apply(this, arguments);
|
|
4988
5200
|
// Set default color for lines:
|
|
@@ -5154,6 +5366,11 @@
|
|
|
5154
5366
|
* Default Export
|
|
5155
5367
|
*
|
|
5156
5368
|
* */
|
|
5369
|
+
/* *
|
|
5370
|
+
*
|
|
5371
|
+
* API Options
|
|
5372
|
+
*
|
|
5373
|
+
* */
|
|
5157
5374
|
/**
|
|
5158
5375
|
* A Keltner Channels indicator. If the [type](#series.keltnerchannels.type)
|
|
5159
5376
|
* option is not specified, it is inherited from[chart.type](#chart.type).
|
|
@@ -5197,14 +5414,18 @@
|
|
|
5197
5414
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
5198
5415
|
};
|
|
5199
5416
|
})();
|
|
5200
|
-
var
|
|
5201
|
-
|
|
5202
|
-
EMAIndicator = _a.ema;
|
|
5417
|
+
var EMAIndicator = SeriesRegistry.seriesTypes.ema;
|
|
5418
|
+
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
5203
5419
|
var correctFloat = U.correctFloat,
|
|
5204
5420
|
error = U.error,
|
|
5205
5421
|
extend = U.extend,
|
|
5206
5422
|
isArray = U.isArray,
|
|
5207
5423
|
merge = U.merge;
|
|
5424
|
+
/* *
|
|
5425
|
+
*
|
|
5426
|
+
* Class
|
|
5427
|
+
*
|
|
5428
|
+
* */
|
|
5208
5429
|
/**
|
|
5209
5430
|
* The Klinger oscillator series type.
|
|
5210
5431
|
*
|
|
@@ -5459,6 +5680,11 @@
|
|
|
5459
5680
|
* Default Export
|
|
5460
5681
|
*
|
|
5461
5682
|
* */
|
|
5683
|
+
/* *
|
|
5684
|
+
*
|
|
5685
|
+
* API Options
|
|
5686
|
+
*
|
|
5687
|
+
* */
|
|
5462
5688
|
/**
|
|
5463
5689
|
* A Klinger oscillator. If the [type](#series.klinger.type)
|
|
5464
5690
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -5499,18 +5725,17 @@
|
|
|
5499
5725
|
};
|
|
5500
5726
|
})();
|
|
5501
5727
|
var noop = H.noop;
|
|
5502
|
-
var
|
|
5503
|
-
|
|
5504
|
-
ColumnSeries = _a.column;
|
|
5728
|
+
var ColumnSeries = SeriesRegistry.seriesTypes.column;
|
|
5729
|
+
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
5505
5730
|
var extend = U.extend,
|
|
5506
5731
|
correctFloat = U.correctFloat,
|
|
5507
5732
|
defined = U.defined,
|
|
5508
5733
|
merge = U.merge;
|
|
5509
|
-
|
|
5734
|
+
/* *
|
|
5510
5735
|
*
|
|
5511
|
-
*
|
|
5736
|
+
* Class
|
|
5512
5737
|
*
|
|
5513
|
-
*/
|
|
5738
|
+
* */
|
|
5514
5739
|
/**
|
|
5515
5740
|
* The MACD series type.
|
|
5516
5741
|
*
|
|
@@ -5523,13 +5748,18 @@
|
|
|
5523
5748
|
var MACDIndicator = /** @class */ (function (_super) {
|
|
5524
5749
|
__extends(MACDIndicator, _super);
|
|
5525
5750
|
function MACDIndicator() {
|
|
5751
|
+
/* *
|
|
5752
|
+
*
|
|
5753
|
+
* Static Properties
|
|
5754
|
+
*
|
|
5755
|
+
* */
|
|
5526
5756
|
var _this = _super !== null && _super.apply(this,
|
|
5527
5757
|
arguments) || this;
|
|
5528
|
-
|
|
5758
|
+
/* *
|
|
5529
5759
|
*
|
|
5530
|
-
*
|
|
5760
|
+
* Properties
|
|
5531
5761
|
*
|
|
5532
|
-
*/
|
|
5762
|
+
* */
|
|
5533
5763
|
_this.data = void 0;
|
|
5534
5764
|
_this.options = void 0;
|
|
5535
5765
|
_this.points = void 0;
|
|
@@ -5540,29 +5770,38 @@
|
|
|
5540
5770
|
_this.signalZones = void 0;
|
|
5541
5771
|
return _this;
|
|
5542
5772
|
}
|
|
5543
|
-
|
|
5773
|
+
/* *
|
|
5544
5774
|
*
|
|
5545
|
-
*
|
|
5775
|
+
* Functions
|
|
5546
5776
|
*
|
|
5547
|
-
*/
|
|
5777
|
+
* */
|
|
5548
5778
|
MACDIndicator.prototype.init = function () {
|
|
5549
5779
|
SeriesRegistry.seriesTypes.sma.prototype.init.apply(this, arguments);
|
|
5780
|
+
var originalColor = this.color,
|
|
5781
|
+
originalColorIndex = this.userOptions._colorIndex;
|
|
5550
5782
|
// Check whether series is initialized. It may be not initialized,
|
|
5551
5783
|
// when any of required indicators is missing.
|
|
5552
5784
|
if (this.options) {
|
|
5553
|
-
//
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
styles
|
|
5562
|
-
|
|
5563
|
-
|
|
5785
|
+
// If the default colour doesn't set, get the next available from
|
|
5786
|
+
// the array and apply it #15608.
|
|
5787
|
+
if (defined(this.userOptions._colorIndex)) {
|
|
5788
|
+
if (this.options.signalLine &&
|
|
5789
|
+
this.options.signalLine.styles &&
|
|
5790
|
+
!this.options.signalLine.styles.lineColor) {
|
|
5791
|
+
this.userOptions._colorIndex++;
|
|
5792
|
+
this.getCyclic('color', void 0, this.chart.options.colors);
|
|
5793
|
+
this.options.signalLine.styles.lineColor =
|
|
5794
|
+
this.color;
|
|
5795
|
+
}
|
|
5796
|
+
if (this.options.macdLine &&
|
|
5797
|
+
this.options.macdLine.styles &&
|
|
5798
|
+
!this.options.macdLine.styles.lineColor) {
|
|
5799
|
+
this.userOptions._colorIndex++;
|
|
5800
|
+
this.getCyclic('color', void 0, this.chart.options.colors);
|
|
5801
|
+
this.options.macdLine.styles.lineColor =
|
|
5802
|
+
this.color;
|
|
5564
5803
|
}
|
|
5565
|
-
}
|
|
5804
|
+
}
|
|
5566
5805
|
// Zones have indexes automatically calculated, we need to
|
|
5567
5806
|
// translate them to support multiple lines within one indicator
|
|
5568
5807
|
this.macdZones = {
|
|
@@ -5575,6 +5814,9 @@
|
|
|
5575
5814
|
};
|
|
5576
5815
|
this.resetZones = true;
|
|
5577
5816
|
}
|
|
5817
|
+
// Reset color and index #15608.
|
|
5818
|
+
this.color = originalColor;
|
|
5819
|
+
this.userOptions._colorIndex = originalColorIndex;
|
|
5578
5820
|
};
|
|
5579
5821
|
MACDIndicator.prototype.toYData = function (point) {
|
|
5580
5822
|
return [point.y, point.signal, point.MACD];
|
|
@@ -5885,6 +6127,11 @@
|
|
|
5885
6127
|
* Default Export
|
|
5886
6128
|
*
|
|
5887
6129
|
* */
|
|
6130
|
+
/* *
|
|
6131
|
+
*
|
|
6132
|
+
* API Options
|
|
6133
|
+
*
|
|
6134
|
+
* */
|
|
5888
6135
|
/**
|
|
5889
6136
|
* A `MACD` series. If the [type](#series.macd.type) option is not
|
|
5890
6137
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -5934,7 +6181,11 @@
|
|
|
5934
6181
|
merge = U.merge,
|
|
5935
6182
|
error = U.error,
|
|
5936
6183
|
isArray = U.isArray;
|
|
5937
|
-
/*
|
|
6184
|
+
/* *
|
|
6185
|
+
*
|
|
6186
|
+
* Functions
|
|
6187
|
+
*
|
|
6188
|
+
* */
|
|
5938
6189
|
// Utils:
|
|
5939
6190
|
function sumArray(array) {
|
|
5940
6191
|
return array.reduce(function (prev, cur) {
|
|
@@ -5950,7 +6201,6 @@
|
|
|
5950
6201
|
function calculateRawMoneyFlow(typicalPrice, volume) {
|
|
5951
6202
|
return typicalPrice * volume;
|
|
5952
6203
|
}
|
|
5953
|
-
/* eslint-enable require-jsdoc */
|
|
5954
6204
|
/* *
|
|
5955
6205
|
*
|
|
5956
6206
|
* Class
|
|
@@ -5968,23 +6218,28 @@
|
|
|
5968
6218
|
var MFIIndicator = /** @class */ (function (_super) {
|
|
5969
6219
|
__extends(MFIIndicator, _super);
|
|
5970
6220
|
function MFIIndicator() {
|
|
6221
|
+
/* *
|
|
6222
|
+
*
|
|
6223
|
+
* Static Properties
|
|
6224
|
+
*
|
|
6225
|
+
* */
|
|
5971
6226
|
var _this = _super !== null && _super.apply(this,
|
|
5972
6227
|
arguments) || this;
|
|
5973
6228
|
/* *
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
6229
|
+
*
|
|
6230
|
+
* Properties
|
|
6231
|
+
*
|
|
6232
|
+
* */
|
|
5978
6233
|
_this.data = void 0;
|
|
5979
6234
|
_this.options = void 0;
|
|
5980
6235
|
_this.points = void 0;
|
|
5981
6236
|
return _this;
|
|
5982
6237
|
}
|
|
5983
6238
|
/* *
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
6239
|
+
*
|
|
6240
|
+
* Functions
|
|
6241
|
+
*
|
|
6242
|
+
* */
|
|
5988
6243
|
MFIIndicator.prototype.getValues = function (series, params) {
|
|
5989
6244
|
var period = params.period,
|
|
5990
6245
|
xVal = series.xData,
|
|
@@ -6110,6 +6365,11 @@
|
|
|
6110
6365
|
* Default Export
|
|
6111
6366
|
*
|
|
6112
6367
|
* */
|
|
6368
|
+
/* *
|
|
6369
|
+
*
|
|
6370
|
+
* API Options
|
|
6371
|
+
*
|
|
6372
|
+
* */
|
|
6113
6373
|
/**
|
|
6114
6374
|
* A `MFI` series. If the [type](#series.mfi.type) option is not specified, it
|
|
6115
6375
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -6154,13 +6414,21 @@
|
|
|
6154
6414
|
var extend = U.extend,
|
|
6155
6415
|
isArray = U.isArray,
|
|
6156
6416
|
merge = U.merge;
|
|
6157
|
-
/*
|
|
6417
|
+
/* *
|
|
6418
|
+
*
|
|
6419
|
+
* Functions
|
|
6420
|
+
*
|
|
6421
|
+
* */
|
|
6158
6422
|
function populateAverage(xVal, yVal, i, period, index) {
|
|
6159
6423
|
var mmY = yVal[i - 1][index] - yVal[i - period - 1][index],
|
|
6160
6424
|
mmX = xVal[i - 1];
|
|
6161
6425
|
return [mmX, mmY];
|
|
6162
6426
|
}
|
|
6163
|
-
/*
|
|
6427
|
+
/* *
|
|
6428
|
+
*
|
|
6429
|
+
* Class
|
|
6430
|
+
*
|
|
6431
|
+
* */
|
|
6164
6432
|
/**
|
|
6165
6433
|
* The Momentum series type.
|
|
6166
6434
|
*
|
|
@@ -6173,13 +6441,28 @@
|
|
|
6173
6441
|
var MomentumIndicator = /** @class */ (function (_super) {
|
|
6174
6442
|
__extends(MomentumIndicator, _super);
|
|
6175
6443
|
function MomentumIndicator() {
|
|
6444
|
+
/* *
|
|
6445
|
+
*
|
|
6446
|
+
* Static Properties
|
|
6447
|
+
*
|
|
6448
|
+
* */
|
|
6176
6449
|
var _this = _super !== null && _super.apply(this,
|
|
6177
6450
|
arguments) || this;
|
|
6451
|
+
/* *
|
|
6452
|
+
*
|
|
6453
|
+
* Properties
|
|
6454
|
+
*
|
|
6455
|
+
* */
|
|
6178
6456
|
_this.data = void 0;
|
|
6179
6457
|
_this.options = void 0;
|
|
6180
6458
|
_this.points = void 0;
|
|
6181
6459
|
return _this;
|
|
6182
6460
|
}
|
|
6461
|
+
/* *
|
|
6462
|
+
*
|
|
6463
|
+
* Functions
|
|
6464
|
+
*
|
|
6465
|
+
* */
|
|
6183
6466
|
MomentumIndicator.prototype.getValues = function (series, params) {
|
|
6184
6467
|
var period = params.period,
|
|
6185
6468
|
index = params.index,
|
|
@@ -6248,6 +6531,11 @@
|
|
|
6248
6531
|
* Default Export
|
|
6249
6532
|
*
|
|
6250
6533
|
* */
|
|
6534
|
+
/* *
|
|
6535
|
+
*
|
|
6536
|
+
* API Options
|
|
6537
|
+
*
|
|
6538
|
+
* */
|
|
6251
6539
|
/**
|
|
6252
6540
|
* A `Momentum` series. If the [type](#series.momentum.type) option is not
|
|
6253
6541
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -6289,8 +6577,12 @@
|
|
|
6289
6577
|
};
|
|
6290
6578
|
})();
|
|
6291
6579
|
var ATRIndicator = SeriesRegistry.seriesTypes.atr;
|
|
6292
|
-
var merge = U.merge
|
|
6293
|
-
|
|
6580
|
+
var merge = U.merge;
|
|
6581
|
+
/* *
|
|
6582
|
+
*
|
|
6583
|
+
* Class
|
|
6584
|
+
*
|
|
6585
|
+
* */
|
|
6294
6586
|
/**
|
|
6295
6587
|
* The NATR series type.
|
|
6296
6588
|
*
|
|
@@ -6303,6 +6595,11 @@
|
|
|
6303
6595
|
var NATRIndicator = /** @class */ (function (_super) {
|
|
6304
6596
|
__extends(NATRIndicator, _super);
|
|
6305
6597
|
function NATRIndicator() {
|
|
6598
|
+
/* *
|
|
6599
|
+
*
|
|
6600
|
+
* Static Properties
|
|
6601
|
+
*
|
|
6602
|
+
* */
|
|
6306
6603
|
var _this = _super !== null && _super.apply(this,
|
|
6307
6604
|
arguments) || this;
|
|
6308
6605
|
/**
|
|
@@ -6368,6 +6665,11 @@
|
|
|
6368
6665
|
* Default Export
|
|
6369
6666
|
*
|
|
6370
6667
|
* */
|
|
6668
|
+
/* *
|
|
6669
|
+
*
|
|
6670
|
+
* API Options
|
|
6671
|
+
*
|
|
6672
|
+
* */
|
|
6371
6673
|
/**
|
|
6372
6674
|
* A `NATR` series. If the [type](#series.natr.type) option is not specified, it
|
|
6373
6675
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -6431,6 +6733,11 @@
|
|
|
6431
6733
|
var OBVIndicator = /** @class */ (function (_super) {
|
|
6432
6734
|
__extends(OBVIndicator, _super);
|
|
6433
6735
|
function OBVIndicator() {
|
|
6736
|
+
/* *
|
|
6737
|
+
*
|
|
6738
|
+
* Static Properties
|
|
6739
|
+
*
|
|
6740
|
+
* */
|
|
6434
6741
|
var _this = _super !== null && _super.apply(this,
|
|
6435
6742
|
arguments) || this;
|
|
6436
6743
|
/* *
|
|
@@ -6558,6 +6865,11 @@
|
|
|
6558
6865
|
* Default Export
|
|
6559
6866
|
*
|
|
6560
6867
|
* */
|
|
6868
|
+
/* *
|
|
6869
|
+
*
|
|
6870
|
+
* API Options
|
|
6871
|
+
*
|
|
6872
|
+
* */
|
|
6561
6873
|
/**
|
|
6562
6874
|
* A `OBV` series. If the [type](#series.obv.type) option is not
|
|
6563
6875
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -6598,8 +6910,12 @@
|
|
|
6598
6910
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6599
6911
|
};
|
|
6600
6912
|
})();
|
|
6601
|
-
var
|
|
6602
|
-
/*
|
|
6913
|
+
var SMAPoint = SeriesRegistry.seriesTypes.sma.prototype.pointClass;
|
|
6914
|
+
/* *
|
|
6915
|
+
*
|
|
6916
|
+
* Functions
|
|
6917
|
+
*
|
|
6918
|
+
* */
|
|
6603
6919
|
/**
|
|
6604
6920
|
* @private
|
|
6605
6921
|
*/
|
|
@@ -6617,7 +6933,6 @@
|
|
|
6617
6933
|
point[prop] = null;
|
|
6618
6934
|
}
|
|
6619
6935
|
}
|
|
6620
|
-
/* eslint-enable valid-jsdoc */
|
|
6621
6936
|
/* *
|
|
6622
6937
|
*
|
|
6623
6938
|
* Class
|
|
@@ -6626,11 +6941,11 @@
|
|
|
6626
6941
|
var PivotPointsPoint = /** @class */ (function (_super) {
|
|
6627
6942
|
__extends(PivotPointsPoint, _super);
|
|
6628
6943
|
function PivotPointsPoint() {
|
|
6629
|
-
|
|
6944
|
+
/* *
|
|
6630
6945
|
*
|
|
6631
|
-
*
|
|
6946
|
+
* Properties
|
|
6632
6947
|
*
|
|
6633
|
-
*/
|
|
6948
|
+
* */
|
|
6634
6949
|
var _this = _super !== null && _super.apply(this,
|
|
6635
6950
|
arguments) || this;
|
|
6636
6951
|
_this.P = void 0;
|
|
@@ -6638,11 +6953,11 @@
|
|
|
6638
6953
|
_this.series = void 0;
|
|
6639
6954
|
return _this;
|
|
6640
6955
|
}
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6956
|
+
/* *
|
|
6957
|
+
*
|
|
6958
|
+
* Functions
|
|
6959
|
+
*
|
|
6960
|
+
* */
|
|
6646
6961
|
PivotPointsPoint.prototype.destroyElements = function () {
|
|
6647
6962
|
destroyExtraLabels(this, 'destroyElements');
|
|
6648
6963
|
};
|
|
@@ -6651,7 +6966,7 @@
|
|
|
6651
6966
|
destroyExtraLabels(this, 'destroyElements');
|
|
6652
6967
|
};
|
|
6653
6968
|
return PivotPointsPoint;
|
|
6654
|
-
}(
|
|
6969
|
+
}(SMAPoint));
|
|
6655
6970
|
/* *
|
|
6656
6971
|
*
|
|
6657
6972
|
* Default Export
|
|
@@ -6706,13 +7021,18 @@
|
|
|
6706
7021
|
var PivotPointsIndicator = /** @class */ (function (_super) {
|
|
6707
7022
|
__extends(PivotPointsIndicator, _super);
|
|
6708
7023
|
function PivotPointsIndicator() {
|
|
7024
|
+
/* *
|
|
7025
|
+
*
|
|
7026
|
+
* Static Properties
|
|
7027
|
+
*
|
|
7028
|
+
* */
|
|
6709
7029
|
var _this = _super !== null && _super.apply(this,
|
|
6710
7030
|
arguments) || this;
|
|
6711
|
-
|
|
7031
|
+
/* *
|
|
6712
7032
|
*
|
|
6713
|
-
*
|
|
7033
|
+
* Properties
|
|
6714
7034
|
*
|
|
6715
|
-
*/
|
|
7035
|
+
* */
|
|
6716
7036
|
_this.data = void 0;
|
|
6717
7037
|
_this.options = void 0;
|
|
6718
7038
|
_this.points = void 0;
|
|
@@ -6720,11 +7040,11 @@
|
|
|
6720
7040
|
_this.plotEndPoint = void 0;
|
|
6721
7041
|
return _this;
|
|
6722
7042
|
}
|
|
6723
|
-
|
|
7043
|
+
/* *
|
|
6724
7044
|
*
|
|
6725
|
-
*
|
|
7045
|
+
* Functions
|
|
6726
7046
|
*
|
|
6727
|
-
*/
|
|
7047
|
+
* */
|
|
6728
7048
|
PivotPointsIndicator.prototype.toYData = function (point) {
|
|
6729
7049
|
return [point.P]; // The rest should not affect extremes
|
|
6730
7050
|
};
|
|
@@ -7001,6 +7321,11 @@
|
|
|
7001
7321
|
* Default Export
|
|
7002
7322
|
*
|
|
7003
7323
|
* */
|
|
7324
|
+
/* *
|
|
7325
|
+
*
|
|
7326
|
+
* API Options
|
|
7327
|
+
*
|
|
7328
|
+
* */
|
|
7004
7329
|
/**
|
|
7005
7330
|
* A pivot points indicator. If the [type](#series.pivotpoints.type) option is
|
|
7006
7331
|
* not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -7063,13 +7388,18 @@
|
|
|
7063
7388
|
var PPOIndicator = /** @class */ (function (_super) {
|
|
7064
7389
|
__extends(PPOIndicator, _super);
|
|
7065
7390
|
function PPOIndicator() {
|
|
7391
|
+
/* *
|
|
7392
|
+
*
|
|
7393
|
+
* Static Properties
|
|
7394
|
+
*
|
|
7395
|
+
* */
|
|
7066
7396
|
var _this = _super !== null && _super.apply(this,
|
|
7067
7397
|
arguments) || this;
|
|
7068
7398
|
/* *
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7399
|
+
*
|
|
7400
|
+
* Properties
|
|
7401
|
+
*
|
|
7402
|
+
* */
|
|
7073
7403
|
_this.data = void 0;
|
|
7074
7404
|
_this.options = void 0;
|
|
7075
7405
|
_this.points = void 0;
|
|
@@ -7176,6 +7506,11 @@
|
|
|
7176
7506
|
* Default Export
|
|
7177
7507
|
*
|
|
7178
7508
|
* */
|
|
7509
|
+
/* *
|
|
7510
|
+
*
|
|
7511
|
+
* API Options
|
|
7512
|
+
*
|
|
7513
|
+
* */
|
|
7179
7514
|
/**
|
|
7180
7515
|
* A `Percentage Price Oscillator` series. If the [type](#series.ppo.type)
|
|
7181
7516
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -7295,20 +7630,20 @@
|
|
|
7295
7630
|
var _this = _super !== null && _super.apply(this,
|
|
7296
7631
|
arguments) || this;
|
|
7297
7632
|
/* *
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7633
|
+
*
|
|
7634
|
+
* Properties
|
|
7635
|
+
*
|
|
7636
|
+
* */
|
|
7302
7637
|
_this.data = void 0;
|
|
7303
7638
|
_this.options = void 0;
|
|
7304
7639
|
_this.points = void 0;
|
|
7305
7640
|
return _this;
|
|
7306
7641
|
}
|
|
7307
7642
|
/* *
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7643
|
+
*
|
|
7644
|
+
* Functions
|
|
7645
|
+
*
|
|
7646
|
+
* */
|
|
7312
7647
|
PCIndicator.prototype.getValues = function (series, params) {
|
|
7313
7648
|
var period = params.period,
|
|
7314
7649
|
xVal = series.xData,
|
|
@@ -7436,6 +7771,11 @@
|
|
|
7436
7771
|
* Default Export
|
|
7437
7772
|
*
|
|
7438
7773
|
* */
|
|
7774
|
+
/* *
|
|
7775
|
+
*
|
|
7776
|
+
* API Options
|
|
7777
|
+
*
|
|
7778
|
+
* */
|
|
7439
7779
|
/**
|
|
7440
7780
|
* A Price channel indicator. If the [type](#series.pc.type) option is not
|
|
7441
7781
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -7483,6 +7823,11 @@
|
|
|
7483
7823
|
var extend = U.extend,
|
|
7484
7824
|
isArray = U.isArray,
|
|
7485
7825
|
merge = U.merge;
|
|
7826
|
+
/* *
|
|
7827
|
+
*
|
|
7828
|
+
* Class
|
|
7829
|
+
*
|
|
7830
|
+
* */
|
|
7486
7831
|
/**
|
|
7487
7832
|
* The Price Envelopes series type.
|
|
7488
7833
|
*
|
|
@@ -7495,13 +7840,28 @@
|
|
|
7495
7840
|
var PriceEnvelopesIndicator = /** @class */ (function (_super) {
|
|
7496
7841
|
__extends(PriceEnvelopesIndicator, _super);
|
|
7497
7842
|
function PriceEnvelopesIndicator() {
|
|
7843
|
+
/* *
|
|
7844
|
+
*
|
|
7845
|
+
* Static Properties
|
|
7846
|
+
*
|
|
7847
|
+
* */
|
|
7498
7848
|
var _this = _super !== null && _super.apply(this,
|
|
7499
7849
|
arguments) || this;
|
|
7850
|
+
/* *
|
|
7851
|
+
*
|
|
7852
|
+
* Properties
|
|
7853
|
+
*
|
|
7854
|
+
* */
|
|
7500
7855
|
_this.data = void 0;
|
|
7501
7856
|
_this.options = void 0;
|
|
7502
7857
|
_this.points = void 0;
|
|
7503
7858
|
return _this;
|
|
7504
7859
|
}
|
|
7860
|
+
/* *
|
|
7861
|
+
*
|
|
7862
|
+
* Functions
|
|
7863
|
+
*
|
|
7864
|
+
* */
|
|
7505
7865
|
PriceEnvelopesIndicator.prototype.init = function () {
|
|
7506
7866
|
SeriesRegistry.seriesTypes.sma.prototype.init.apply(this, arguments);
|
|
7507
7867
|
// Set default color for lines:
|
|
@@ -7706,6 +8066,11 @@
|
|
|
7706
8066
|
* Default Export
|
|
7707
8067
|
*
|
|
7708
8068
|
* */
|
|
8069
|
+
/* *
|
|
8070
|
+
*
|
|
8071
|
+
* API Options
|
|
8072
|
+
*
|
|
8073
|
+
* */
|
|
7709
8074
|
/**
|
|
7710
8075
|
* A price envelopes indicator. If the [type](#series.priceenvelopes.type)
|
|
7711
8076
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -7753,7 +8118,11 @@
|
|
|
7753
8118
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
7754
8119
|
var merge = U.merge,
|
|
7755
8120
|
extend = U.extend;
|
|
7756
|
-
/*
|
|
8121
|
+
/* *
|
|
8122
|
+
*
|
|
8123
|
+
* Functions
|
|
8124
|
+
*
|
|
8125
|
+
* */
|
|
7757
8126
|
// Utils:
|
|
7758
8127
|
function toFixed(a, n) {
|
|
7759
8128
|
return parseFloat(a.toFixed(n));
|
|
@@ -7824,10 +8193,9 @@
|
|
|
7824
8193
|
}
|
|
7825
8194
|
return pEP;
|
|
7826
8195
|
}
|
|
7827
|
-
/* eslint-enable require-jsdoc */
|
|
7828
8196
|
/* *
|
|
7829
8197
|
*
|
|
7830
|
-
*
|
|
8198
|
+
* Class
|
|
7831
8199
|
*
|
|
7832
8200
|
* */
|
|
7833
8201
|
/**
|
|
@@ -7842,6 +8210,11 @@
|
|
|
7842
8210
|
var PSARIndicator = /** @class */ (function (_super) {
|
|
7843
8211
|
__extends(PSARIndicator, _super);
|
|
7844
8212
|
function PSARIndicator() {
|
|
8213
|
+
/* *
|
|
8214
|
+
*
|
|
8215
|
+
* Static Properties
|
|
8216
|
+
*
|
|
8217
|
+
* */
|
|
7845
8218
|
var _this = _super !== null && _super.apply(this,
|
|
7846
8219
|
arguments) || this;
|
|
7847
8220
|
/* *
|
|
@@ -8014,6 +8387,11 @@
|
|
|
8014
8387
|
* Default Export
|
|
8015
8388
|
*
|
|
8016
8389
|
* */
|
|
8390
|
+
/* *
|
|
8391
|
+
*
|
|
8392
|
+
* API Options
|
|
8393
|
+
*
|
|
8394
|
+
* */
|
|
8017
8395
|
/**
|
|
8018
8396
|
* A `PSAR` series. If the [type](#series.psar.type) option is not specified, it
|
|
8019
8397
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -8060,7 +8438,11 @@
|
|
|
8060
8438
|
var isArray = U.isArray,
|
|
8061
8439
|
merge = U.merge,
|
|
8062
8440
|
extend = U.extend;
|
|
8063
|
-
/*
|
|
8441
|
+
/* *
|
|
8442
|
+
*
|
|
8443
|
+
* Functions
|
|
8444
|
+
*
|
|
8445
|
+
* */
|
|
8064
8446
|
// Utils:
|
|
8065
8447
|
function populateAverage(xVal, yVal, i, period, index) {
|
|
8066
8448
|
/* Calculated as:
|
|
@@ -8087,7 +8469,6 @@
|
|
|
8087
8469
|
}
|
|
8088
8470
|
return [xVal[i], rocY];
|
|
8089
8471
|
}
|
|
8090
|
-
/* eslint-enable require-jsdoc */
|
|
8091
8472
|
/* *
|
|
8092
8473
|
*
|
|
8093
8474
|
* Class
|
|
@@ -8105,6 +8486,11 @@
|
|
|
8105
8486
|
var ROCIndicator = /** @class */ (function (_super) {
|
|
8106
8487
|
__extends(ROCIndicator, _super);
|
|
8107
8488
|
function ROCIndicator() {
|
|
8489
|
+
/* *
|
|
8490
|
+
*
|
|
8491
|
+
* Static Properties
|
|
8492
|
+
*
|
|
8493
|
+
* */
|
|
8108
8494
|
var _this = _super !== null && _super.apply(this,
|
|
8109
8495
|
arguments) || this;
|
|
8110
8496
|
/* *
|
|
@@ -8195,6 +8581,11 @@
|
|
|
8195
8581
|
* Default Export
|
|
8196
8582
|
*
|
|
8197
8583
|
* */
|
|
8584
|
+
/* *
|
|
8585
|
+
*
|
|
8586
|
+
* API Options
|
|
8587
|
+
*
|
|
8588
|
+
* */
|
|
8198
8589
|
/**
|
|
8199
8590
|
* A `ROC` series. If the [type](#series.wma.type) option is not
|
|
8200
8591
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -8249,12 +8640,20 @@
|
|
|
8249
8640
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
8250
8641
|
var isNumber = U.isNumber,
|
|
8251
8642
|
merge = U.merge;
|
|
8252
|
-
/*
|
|
8643
|
+
/* *
|
|
8644
|
+
*
|
|
8645
|
+
* Functions
|
|
8646
|
+
*
|
|
8647
|
+
* */
|
|
8253
8648
|
// Utils:
|
|
8254
8649
|
function toFixed(a, n) {
|
|
8255
8650
|
return parseFloat(a.toFixed(n));
|
|
8256
8651
|
}
|
|
8257
|
-
/*
|
|
8652
|
+
/* *
|
|
8653
|
+
*
|
|
8654
|
+
* Class
|
|
8655
|
+
*
|
|
8656
|
+
* */
|
|
8258
8657
|
/**
|
|
8259
8658
|
* The RSI series type.
|
|
8260
8659
|
*
|
|
@@ -8267,6 +8666,11 @@
|
|
|
8267
8666
|
var RSIIndicator = /** @class */ (function (_super) {
|
|
8268
8667
|
__extends(RSIIndicator, _super);
|
|
8269
8668
|
function RSIIndicator() {
|
|
8669
|
+
/* *
|
|
8670
|
+
*
|
|
8671
|
+
* Static Properties
|
|
8672
|
+
*
|
|
8673
|
+
* */
|
|
8270
8674
|
var _this = _super !== null && _super.apply(this,
|
|
8271
8675
|
arguments) || this;
|
|
8272
8676
|
/* *
|
|
@@ -8398,6 +8802,11 @@
|
|
|
8398
8802
|
* Default Export
|
|
8399
8803
|
*
|
|
8400
8804
|
* */
|
|
8805
|
+
/* *
|
|
8806
|
+
*
|
|
8807
|
+
* API Options
|
|
8808
|
+
*
|
|
8809
|
+
* */
|
|
8401
8810
|
/**
|
|
8402
8811
|
* A `RSI` series. If the [type](#series.rsi.type) option is not
|
|
8403
8812
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -8466,11 +8875,21 @@
|
|
|
8466
8875
|
* */
|
|
8467
8876
|
var _this = _super !== null && _super.apply(this,
|
|
8468
8877
|
arguments) || this;
|
|
8878
|
+
/* *
|
|
8879
|
+
*
|
|
8880
|
+
* Properties
|
|
8881
|
+
*
|
|
8882
|
+
* */
|
|
8469
8883
|
_this.data = void 0;
|
|
8470
8884
|
_this.options = void 0;
|
|
8471
8885
|
_this.points = void 0;
|
|
8472
8886
|
return _this;
|
|
8473
8887
|
}
|
|
8888
|
+
/* *
|
|
8889
|
+
*
|
|
8890
|
+
* Functions
|
|
8891
|
+
*
|
|
8892
|
+
* */
|
|
8474
8893
|
StochasticIndicator.prototype.init = function () {
|
|
8475
8894
|
SeriesRegistry.seriesTypes.sma.prototype.init.apply(this, arguments);
|
|
8476
8895
|
// Set default color for lines:
|
|
@@ -8626,6 +9045,11 @@
|
|
|
8626
9045
|
* Default Export
|
|
8627
9046
|
*
|
|
8628
9047
|
* */
|
|
9048
|
+
/* *
|
|
9049
|
+
*
|
|
9050
|
+
* API Options
|
|
9051
|
+
*
|
|
9052
|
+
* */
|
|
8629
9053
|
/**
|
|
8630
9054
|
* A Stochastic indicator. If the [type](#series.stochastic.type) option is not
|
|
8631
9055
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -8672,6 +9096,11 @@
|
|
|
8672
9096
|
var seriesTypes = SeriesRegistry.seriesTypes;
|
|
8673
9097
|
var extend = U.extend,
|
|
8674
9098
|
merge = U.merge;
|
|
9099
|
+
/* *
|
|
9100
|
+
*
|
|
9101
|
+
* Class
|
|
9102
|
+
*
|
|
9103
|
+
* */
|
|
8675
9104
|
/**
|
|
8676
9105
|
* The Slow Stochastic series type.
|
|
8677
9106
|
*
|
|
@@ -8684,13 +9113,28 @@
|
|
|
8684
9113
|
var SlowStochasticIndicator = /** @class */ (function (_super) {
|
|
8685
9114
|
__extends(SlowStochasticIndicator, _super);
|
|
8686
9115
|
function SlowStochasticIndicator() {
|
|
9116
|
+
/* *
|
|
9117
|
+
*
|
|
9118
|
+
* Static Properties
|
|
9119
|
+
*
|
|
9120
|
+
* */
|
|
8687
9121
|
var _this = _super !== null && _super.apply(this,
|
|
8688
9122
|
arguments) || this;
|
|
9123
|
+
/* *
|
|
9124
|
+
*
|
|
9125
|
+
* Properties
|
|
9126
|
+
*
|
|
9127
|
+
* */
|
|
8689
9128
|
_this.data = void 0;
|
|
8690
9129
|
_this.options = void 0;
|
|
8691
9130
|
_this.points = void 0;
|
|
8692
9131
|
return _this;
|
|
8693
9132
|
}
|
|
9133
|
+
/* *
|
|
9134
|
+
*
|
|
9135
|
+
* Functions
|
|
9136
|
+
*
|
|
9137
|
+
* */
|
|
8694
9138
|
SlowStochasticIndicator.prototype.getValues = function (series, params) {
|
|
8695
9139
|
var periods = params.periods,
|
|
8696
9140
|
fastValues = seriesTypes.stochastic.prototype.getValues.call(this,
|
|
@@ -8771,6 +9215,11 @@
|
|
|
8771
9215
|
* Default Export
|
|
8772
9216
|
*
|
|
8773
9217
|
* */
|
|
9218
|
+
/* *
|
|
9219
|
+
*
|
|
9220
|
+
* API Options
|
|
9221
|
+
*
|
|
9222
|
+
* */
|
|
8774
9223
|
/**
|
|
8775
9224
|
* A Slow Stochastic indicator. If the [type](#series.slowstochastic.type)
|
|
8776
9225
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -8811,16 +9260,19 @@
|
|
|
8811
9260
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8812
9261
|
};
|
|
8813
9262
|
})();
|
|
8814
|
-
var
|
|
8815
|
-
|
|
8816
|
-
SMAIndicator = _a.sma;
|
|
9263
|
+
var ATRIndicator = SeriesRegistry.seriesTypes.atr;
|
|
9264
|
+
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
8817
9265
|
var addEvent = U.addEvent,
|
|
8818
9266
|
correctFloat = U.correctFloat,
|
|
8819
9267
|
isArray = U.isArray,
|
|
8820
9268
|
extend = U.extend,
|
|
8821
9269
|
merge = U.merge,
|
|
8822
9270
|
objectEach = U.objectEach;
|
|
8823
|
-
/*
|
|
9271
|
+
/* *
|
|
9272
|
+
*
|
|
9273
|
+
* Functions
|
|
9274
|
+
*
|
|
9275
|
+
* */
|
|
8824
9276
|
// Utils:
|
|
8825
9277
|
function createPointObj(mainSeries, index, close) {
|
|
8826
9278
|
return {
|
|
@@ -8829,7 +9281,6 @@
|
|
|
8829
9281
|
x: mainSeries.xData[index]
|
|
8830
9282
|
};
|
|
8831
9283
|
}
|
|
8832
|
-
/* eslint-enable require-jsdoc */
|
|
8833
9284
|
/* *
|
|
8834
9285
|
*
|
|
8835
9286
|
* Class
|
|
@@ -8847,6 +9298,11 @@
|
|
|
8847
9298
|
var SupertrendIndicator = /** @class */ (function (_super) {
|
|
8848
9299
|
__extends(SupertrendIndicator, _super);
|
|
8849
9300
|
function SupertrendIndicator() {
|
|
9301
|
+
/* *
|
|
9302
|
+
*
|
|
9303
|
+
* Static Properties
|
|
9304
|
+
*
|
|
9305
|
+
* */
|
|
8850
9306
|
var _this = _super !== null && _super.apply(this,
|
|
8851
9307
|
arguments) || this;
|
|
8852
9308
|
/* *
|
|
@@ -9238,7 +9694,7 @@
|
|
|
9238
9694
|
*
|
|
9239
9695
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
9240
9696
|
*/
|
|
9241
|
-
risingTrendColor: "#06b535" /* positiveColor */,
|
|
9697
|
+
risingTrendColor: "#06b535" /* Palette.positiveColor */,
|
|
9242
9698
|
/**
|
|
9243
9699
|
* Color of the Supertrend series line that is above the main series.
|
|
9244
9700
|
*
|
|
@@ -9247,7 +9703,7 @@
|
|
|
9247
9703
|
*
|
|
9248
9704
|
* @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}
|
|
9249
9705
|
*/
|
|
9250
|
-
fallingTrendColor: "#f21313" /* negativeColor */,
|
|
9706
|
+
fallingTrendColor: "#f21313" /* Palette.negativeColor */,
|
|
9251
9707
|
/**
|
|
9252
9708
|
* The styles for the Supertrend line that intersect main series.
|
|
9253
9709
|
*
|
|
@@ -9265,7 +9721,7 @@
|
|
|
9265
9721
|
*
|
|
9266
9722
|
* @type {Highcharts.ColorString}
|
|
9267
9723
|
*/
|
|
9268
|
-
lineColor: "#333333" /* neutralColor80 */,
|
|
9724
|
+
lineColor: "#333333" /* Palette.neutralColor80 */,
|
|
9269
9725
|
/**
|
|
9270
9726
|
* The dash or dot style of the grid lines. For possible
|
|
9271
9727
|
* values, see
|
|
@@ -9295,6 +9751,11 @@
|
|
|
9295
9751
|
* Default Export
|
|
9296
9752
|
*
|
|
9297
9753
|
* */
|
|
9754
|
+
/* *
|
|
9755
|
+
*
|
|
9756
|
+
* API Options
|
|
9757
|
+
*
|
|
9758
|
+
* */
|
|
9298
9759
|
/**
|
|
9299
9760
|
* A `Supertrend indicator` series. If the [type](#series.supertrend.type)
|
|
9300
9761
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -9314,7 +9775,7 @@
|
|
|
9314
9775
|
|
|
9315
9776
|
return SupertrendIndicator;
|
|
9316
9777
|
});
|
|
9317
|
-
_registerModule(_modules, 'Stock/Indicators/VBP/VBPPoint.js', [_modules['Core/Series/
|
|
9778
|
+
_registerModule(_modules, 'Stock/Indicators/VBP/VBPPoint.js', [_modules['Core/Series/SeriesRegistry.js']], function (SeriesRegistry) {
|
|
9318
9779
|
/* *
|
|
9319
9780
|
*
|
|
9320
9781
|
* License: www.highcharts.com/license
|
|
@@ -9338,12 +9799,12 @@
|
|
|
9338
9799
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9339
9800
|
};
|
|
9340
9801
|
})();
|
|
9802
|
+
var SMAPoint = SeriesRegistry.seriesTypes.sma.prototype.pointClass;
|
|
9341
9803
|
/* *
|
|
9342
9804
|
*
|
|
9343
|
-
*
|
|
9805
|
+
* Class
|
|
9344
9806
|
*
|
|
9345
9807
|
* */
|
|
9346
|
-
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
9347
9808
|
var VBPPoint = /** @class */ (function (_super) {
|
|
9348
9809
|
__extends(VBPPoint, _super);
|
|
9349
9810
|
function VBPPoint() {
|
|
@@ -9355,10 +9816,10 @@
|
|
|
9355
9816
|
if (this.negativeGraphic) {
|
|
9356
9817
|
this.negativeGraphic = this.negativeGraphic.destroy();
|
|
9357
9818
|
}
|
|
9358
|
-
return
|
|
9819
|
+
return _super.prototype.destroy.apply(this, arguments);
|
|
9359
9820
|
};
|
|
9360
9821
|
return VBPPoint;
|
|
9361
|
-
}(
|
|
9822
|
+
}(SMAPoint));
|
|
9362
9823
|
/* *
|
|
9363
9824
|
*
|
|
9364
9825
|
* Default Export
|
|
@@ -9398,6 +9859,7 @@
|
|
|
9398
9859
|
var animObject = A.animObject;
|
|
9399
9860
|
var noop = H.noop;
|
|
9400
9861
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
9862
|
+
var columnPrototype = SeriesRegistry.seriesTypes.column.prototype;
|
|
9401
9863
|
var addEvent = U.addEvent,
|
|
9402
9864
|
arrayMax = U.arrayMax,
|
|
9403
9865
|
arrayMin = U.arrayMin,
|
|
@@ -9407,7 +9869,11 @@
|
|
|
9407
9869
|
extend = U.extend,
|
|
9408
9870
|
isArray = U.isArray,
|
|
9409
9871
|
merge = U.merge;
|
|
9410
|
-
/*
|
|
9872
|
+
/* *
|
|
9873
|
+
*
|
|
9874
|
+
* Functions
|
|
9875
|
+
*
|
|
9876
|
+
* */
|
|
9411
9877
|
// Utils
|
|
9412
9878
|
function arrayExtremesOHLC(data) {
|
|
9413
9879
|
var dataLength = data.length,
|
|
@@ -9429,9 +9895,12 @@
|
|
|
9429
9895
|
max: max
|
|
9430
9896
|
};
|
|
9431
9897
|
}
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9898
|
+
var abs = Math.abs;
|
|
9899
|
+
/* *
|
|
9900
|
+
*
|
|
9901
|
+
* Class
|
|
9902
|
+
*
|
|
9903
|
+
* */
|
|
9435
9904
|
/**
|
|
9436
9905
|
* The Volume By Price (VBP) series type.
|
|
9437
9906
|
*
|
|
@@ -9444,8 +9913,18 @@
|
|
|
9444
9913
|
var VBPIndicator = /** @class */ (function (_super) {
|
|
9445
9914
|
__extends(VBPIndicator, _super);
|
|
9446
9915
|
function VBPIndicator() {
|
|
9916
|
+
/* *
|
|
9917
|
+
*
|
|
9918
|
+
* Static Properties
|
|
9919
|
+
*
|
|
9920
|
+
* */
|
|
9447
9921
|
var _this = _super !== null && _super.apply(this,
|
|
9448
9922
|
arguments) || this;
|
|
9923
|
+
/* *
|
|
9924
|
+
*
|
|
9925
|
+
* Properties
|
|
9926
|
+
*
|
|
9927
|
+
* */
|
|
9449
9928
|
_this.data = void 0;
|
|
9450
9929
|
_this.negWidths = void 0;
|
|
9451
9930
|
_this.options = void 0;
|
|
@@ -9458,6 +9937,11 @@
|
|
|
9458
9937
|
_this.zoneLinesSVG = void 0;
|
|
9459
9938
|
return _this;
|
|
9460
9939
|
}
|
|
9940
|
+
/* *
|
|
9941
|
+
*
|
|
9942
|
+
* Functions
|
|
9943
|
+
*
|
|
9944
|
+
* */
|
|
9461
9945
|
VBPIndicator.prototype.init = function (chart) {
|
|
9462
9946
|
var indicator = this,
|
|
9463
9947
|
params,
|
|
@@ -9983,6 +10467,11 @@
|
|
|
9983
10467
|
* Default Export
|
|
9984
10468
|
*
|
|
9985
10469
|
* */
|
|
10470
|
+
/* *
|
|
10471
|
+
*
|
|
10472
|
+
* API Options
|
|
10473
|
+
*
|
|
10474
|
+
* */
|
|
9986
10475
|
/**
|
|
9987
10476
|
* A `Volume By Price (VBP)` series. If the [type](#series.vbp.type) option is
|
|
9988
10477
|
* not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -10033,7 +10522,7 @@
|
|
|
10033
10522
|
merge = U.merge;
|
|
10034
10523
|
/* *
|
|
10035
10524
|
*
|
|
10036
|
-
*
|
|
10525
|
+
* Class
|
|
10037
10526
|
*
|
|
10038
10527
|
* */
|
|
10039
10528
|
/**
|
|
@@ -10048,6 +10537,11 @@
|
|
|
10048
10537
|
var VWAPIndicator = /** @class */ (function (_super) {
|
|
10049
10538
|
__extends(VWAPIndicator, _super);
|
|
10050
10539
|
function VWAPIndicator() {
|
|
10540
|
+
/* *
|
|
10541
|
+
*
|
|
10542
|
+
* Static Properties
|
|
10543
|
+
*
|
|
10544
|
+
* */
|
|
10051
10545
|
var _this = _super !== null && _super.apply(this,
|
|
10052
10546
|
arguments) || this;
|
|
10053
10547
|
/* *
|
|
@@ -10200,6 +10694,11 @@
|
|
|
10200
10694
|
* Default Export
|
|
10201
10695
|
*
|
|
10202
10696
|
* */
|
|
10697
|
+
/* *
|
|
10698
|
+
*
|
|
10699
|
+
* API Options
|
|
10700
|
+
*
|
|
10701
|
+
* */
|
|
10203
10702
|
/**
|
|
10204
10703
|
* A `Volume Weighted Average Price (VWAP)` series. If the
|
|
10205
10704
|
* [type](#series.vwap.type) option is not specified, it is inherited from
|
|
@@ -10245,6 +10744,11 @@
|
|
|
10245
10744
|
var extend = U.extend,
|
|
10246
10745
|
isArray = U.isArray,
|
|
10247
10746
|
merge = U.merge;
|
|
10747
|
+
/* *
|
|
10748
|
+
*
|
|
10749
|
+
* Class
|
|
10750
|
+
*
|
|
10751
|
+
* */
|
|
10248
10752
|
/**
|
|
10249
10753
|
* The Williams %R series type.
|
|
10250
10754
|
*
|
|
@@ -10351,6 +10855,11 @@
|
|
|
10351
10855
|
* Default Export
|
|
10352
10856
|
*
|
|
10353
10857
|
* */
|
|
10858
|
+
/* *
|
|
10859
|
+
*
|
|
10860
|
+
* API Options
|
|
10861
|
+
*
|
|
10862
|
+
* */
|
|
10354
10863
|
/**
|
|
10355
10864
|
* A `Williams %R Oscillator` series. If the [type](#series.williamsr.type)
|
|
10356
10865
|
* option is not specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -10398,7 +10907,11 @@
|
|
|
10398
10907
|
var SMAIndicator = SeriesRegistry.seriesTypes.sma;
|
|
10399
10908
|
var isArray = U.isArray,
|
|
10400
10909
|
merge = U.merge;
|
|
10401
|
-
/*
|
|
10910
|
+
/* *
|
|
10911
|
+
*
|
|
10912
|
+
* Functions
|
|
10913
|
+
*
|
|
10914
|
+
* */
|
|
10402
10915
|
// Utils:
|
|
10403
10916
|
/**
|
|
10404
10917
|
* @private
|
|
@@ -10432,7 +10945,11 @@
|
|
|
10432
10945
|
points.shift(); // remove point until range < period
|
|
10433
10946
|
return [wmaX, wmaY];
|
|
10434
10947
|
}
|
|
10435
|
-
/*
|
|
10948
|
+
/* *
|
|
10949
|
+
*
|
|
10950
|
+
* Class
|
|
10951
|
+
*
|
|
10952
|
+
* */
|
|
10436
10953
|
/**
|
|
10437
10954
|
* The SMA series type.
|
|
10438
10955
|
*
|
|
@@ -10445,13 +10962,28 @@
|
|
|
10445
10962
|
var WMAIndicator = /** @class */ (function (_super) {
|
|
10446
10963
|
__extends(WMAIndicator, _super);
|
|
10447
10964
|
function WMAIndicator() {
|
|
10965
|
+
/* *
|
|
10966
|
+
*
|
|
10967
|
+
* Static Properties
|
|
10968
|
+
*
|
|
10969
|
+
* */
|
|
10448
10970
|
var _this = _super !== null && _super.apply(this,
|
|
10449
10971
|
arguments) || this;
|
|
10972
|
+
/* *
|
|
10973
|
+
*
|
|
10974
|
+
* Properties
|
|
10975
|
+
*
|
|
10976
|
+
* */
|
|
10450
10977
|
_this.data = void 0;
|
|
10451
10978
|
_this.options = void 0;
|
|
10452
10979
|
_this.points = void 0;
|
|
10453
10980
|
return _this;
|
|
10454
10981
|
}
|
|
10982
|
+
/* *
|
|
10983
|
+
*
|
|
10984
|
+
* Functions
|
|
10985
|
+
*
|
|
10986
|
+
* */
|
|
10455
10987
|
WMAIndicator.prototype.getValues = function (series, params) {
|
|
10456
10988
|
var period = params.period,
|
|
10457
10989
|
xVal = series.xData,
|
|
@@ -10528,6 +11060,11 @@
|
|
|
10528
11060
|
* Default Export
|
|
10529
11061
|
*
|
|
10530
11062
|
* */
|
|
11063
|
+
/* *
|
|
11064
|
+
*
|
|
11065
|
+
* API Options
|
|
11066
|
+
*
|
|
11067
|
+
* */
|
|
10531
11068
|
/**
|
|
10532
11069
|
* A `WMA` series. If the [type](#series.wma.type) option is not specified, it
|
|
10533
11070
|
* is inherited from [chart.type](#chart.type).
|
|
@@ -10575,7 +11112,7 @@
|
|
|
10575
11112
|
extend = U.extend;
|
|
10576
11113
|
/* *
|
|
10577
11114
|
*
|
|
10578
|
-
*
|
|
11115
|
+
* Class
|
|
10579
11116
|
*
|
|
10580
11117
|
* */
|
|
10581
11118
|
/**
|
|
@@ -10590,6 +11127,11 @@
|
|
|
10590
11127
|
var ZigzagIndicator = /** @class */ (function (_super) {
|
|
10591
11128
|
__extends(ZigzagIndicator, _super);
|
|
10592
11129
|
function ZigzagIndicator() {
|
|
11130
|
+
/* *
|
|
11131
|
+
*
|
|
11132
|
+
* Static Properties
|
|
11133
|
+
*
|
|
11134
|
+
* */
|
|
10593
11135
|
var _this = _super !== null && _super.apply(this,
|
|
10594
11136
|
arguments) || this;
|
|
10595
11137
|
/* *
|
|
@@ -10779,6 +11321,11 @@
|
|
|
10779
11321
|
* Default Export
|
|
10780
11322
|
*
|
|
10781
11323
|
* */
|
|
11324
|
+
/* *
|
|
11325
|
+
*
|
|
11326
|
+
* API Options
|
|
11327
|
+
*
|
|
11328
|
+
* */
|
|
10782
11329
|
/**
|
|
10783
11330
|
* A `Zig Zag` series. If the [type](#series.zigzag.type) option is not
|
|
10784
11331
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -10795,7 +11342,7 @@
|
|
|
10795
11342
|
|
|
10796
11343
|
return ZigzagIndicator;
|
|
10797
11344
|
});
|
|
10798
|
-
_registerModule(_modules, 'Stock/Indicators/LinearRegression/
|
|
11345
|
+
_registerModule(_modules, 'Stock/Indicators/LinearRegression/LinearRegressionIndicator.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
|
|
10799
11346
|
/**
|
|
10800
11347
|
*
|
|
10801
11348
|
* (c) 2010-2021 Kamil Kulig
|
|
@@ -10827,7 +11374,7 @@
|
|
|
10827
11374
|
merge = U.merge;
|
|
10828
11375
|
/* *
|
|
10829
11376
|
*
|
|
10830
|
-
*
|
|
11377
|
+
* Class
|
|
10831
11378
|
*
|
|
10832
11379
|
* */
|
|
10833
11380
|
/**
|
|
@@ -10842,6 +11389,11 @@
|
|
|
10842
11389
|
var LinearRegressionIndicator = /** @class */ (function (_super) {
|
|
10843
11390
|
__extends(LinearRegressionIndicator, _super);
|
|
10844
11391
|
function LinearRegressionIndicator() {
|
|
11392
|
+
/* *
|
|
11393
|
+
*
|
|
11394
|
+
* Static Properties
|
|
11395
|
+
*
|
|
11396
|
+
* */
|
|
10845
11397
|
var _this = _super !== null && _super.apply(this,
|
|
10846
11398
|
arguments) || this;
|
|
10847
11399
|
/* *
|
|
@@ -11082,6 +11634,11 @@
|
|
|
11082
11634
|
* Default Export
|
|
11083
11635
|
*
|
|
11084
11636
|
* */
|
|
11637
|
+
/* *
|
|
11638
|
+
*
|
|
11639
|
+
* API Options
|
|
11640
|
+
*
|
|
11641
|
+
* */
|
|
11085
11642
|
/**
|
|
11086
11643
|
* A linear regression series. If the
|
|
11087
11644
|
* [type](#series.linearregression.type) option is not specified, it is
|
|
@@ -11099,7 +11656,7 @@
|
|
|
11099
11656
|
|
|
11100
11657
|
return LinearRegressionIndicator;
|
|
11101
11658
|
});
|
|
11102
|
-
_registerModule(_modules, 'Stock/Indicators/LinearRegressionSlopes/
|
|
11659
|
+
_registerModule(_modules, 'Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
|
|
11103
11660
|
/**
|
|
11104
11661
|
*
|
|
11105
11662
|
* (c) 2010-2021 Kamil Kulig
|
|
@@ -11130,7 +11687,7 @@
|
|
|
11130
11687
|
merge = U.merge;
|
|
11131
11688
|
/* *
|
|
11132
11689
|
*
|
|
11133
|
-
*
|
|
11690
|
+
* Class
|
|
11134
11691
|
*
|
|
11135
11692
|
* */
|
|
11136
11693
|
/**
|
|
@@ -11145,6 +11702,11 @@
|
|
|
11145
11702
|
var LinearRegressionSlopesIndicator = /** @class */ (function (_super) {
|
|
11146
11703
|
__extends(LinearRegressionSlopesIndicator, _super);
|
|
11147
11704
|
function LinearRegressionSlopesIndicator() {
|
|
11705
|
+
/* *
|
|
11706
|
+
*
|
|
11707
|
+
* Static Properties
|
|
11708
|
+
*
|
|
11709
|
+
* */
|
|
11148
11710
|
var _this = _super !== null && _super.apply(this,
|
|
11149
11711
|
arguments) || this;
|
|
11150
11712
|
/* *
|
|
@@ -11191,6 +11753,11 @@
|
|
|
11191
11753
|
* Default Export
|
|
11192
11754
|
*
|
|
11193
11755
|
* */
|
|
11756
|
+
/* *
|
|
11757
|
+
*
|
|
11758
|
+
* API Options
|
|
11759
|
+
*
|
|
11760
|
+
* */
|
|
11194
11761
|
/**
|
|
11195
11762
|
* A linear regression intercept series. If the
|
|
11196
11763
|
* [type](#series.linearregressionslope.type) option is not specified, it is
|
|
@@ -11208,7 +11775,7 @@
|
|
|
11208
11775
|
|
|
11209
11776
|
return LinearRegressionSlopesIndicator;
|
|
11210
11777
|
});
|
|
11211
|
-
_registerModule(_modules, 'Stock/Indicators/LinearRegressionIntercept/
|
|
11778
|
+
_registerModule(_modules, 'Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
|
|
11212
11779
|
/**
|
|
11213
11780
|
*
|
|
11214
11781
|
* (c) 2010-2021 Kamil Kulig
|
|
@@ -11239,7 +11806,7 @@
|
|
|
11239
11806
|
merge = U.merge;
|
|
11240
11807
|
/* *
|
|
11241
11808
|
*
|
|
11242
|
-
*
|
|
11809
|
+
* Class
|
|
11243
11810
|
*
|
|
11244
11811
|
* */
|
|
11245
11812
|
/**
|
|
@@ -11254,6 +11821,11 @@
|
|
|
11254
11821
|
var LinearRegressionInterceptIndicator = /** @class */ (function (_super) {
|
|
11255
11822
|
__extends(LinearRegressionInterceptIndicator, _super);
|
|
11256
11823
|
function LinearRegressionInterceptIndicator() {
|
|
11824
|
+
/* *
|
|
11825
|
+
*
|
|
11826
|
+
* Static Properties
|
|
11827
|
+
*
|
|
11828
|
+
* */
|
|
11257
11829
|
var _this = _super !== null && _super.apply(this,
|
|
11258
11830
|
arguments) || this;
|
|
11259
11831
|
/* *
|
|
@@ -11300,6 +11872,11 @@
|
|
|
11300
11872
|
* Default Export
|
|
11301
11873
|
*
|
|
11302
11874
|
* */
|
|
11875
|
+
/* *
|
|
11876
|
+
*
|
|
11877
|
+
* API Options
|
|
11878
|
+
*
|
|
11879
|
+
* */
|
|
11303
11880
|
/**
|
|
11304
11881
|
* A linear regression intercept series. If the
|
|
11305
11882
|
* [type](#series.linearregressionintercept.type) option is not specified, it is
|
|
@@ -11317,7 +11894,7 @@
|
|
|
11317
11894
|
|
|
11318
11895
|
return LinearRegressionInterceptIndicator;
|
|
11319
11896
|
});
|
|
11320
|
-
_registerModule(_modules, 'Stock/Indicators/LinearRegressionAngle/
|
|
11897
|
+
_registerModule(_modules, 'Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js', [_modules['Core/Series/SeriesRegistry.js'], _modules['Core/Utilities.js']], function (SeriesRegistry, U) {
|
|
11321
11898
|
/**
|
|
11322
11899
|
*
|
|
11323
11900
|
* (c) 2010-2021 Kamil Kulig
|
|
@@ -11348,7 +11925,7 @@
|
|
|
11348
11925
|
merge = U.merge;
|
|
11349
11926
|
/* *
|
|
11350
11927
|
*
|
|
11351
|
-
*
|
|
11928
|
+
* Class
|
|
11352
11929
|
*
|
|
11353
11930
|
* */
|
|
11354
11931
|
/**
|
|
@@ -11363,6 +11940,11 @@
|
|
|
11363
11940
|
var LinearRegressionAngleIndicator = /** @class */ (function (_super) {
|
|
11364
11941
|
__extends(LinearRegressionAngleIndicator, _super);
|
|
11365
11942
|
function LinearRegressionAngleIndicator() {
|
|
11943
|
+
/* *
|
|
11944
|
+
*
|
|
11945
|
+
* Static Properties
|
|
11946
|
+
*
|
|
11947
|
+
* */
|
|
11366
11948
|
var _this = _super !== null && _super.apply(this,
|
|
11367
11949
|
arguments) || this;
|
|
11368
11950
|
/* *
|
|
@@ -11381,12 +11963,12 @@
|
|
|
11381
11963
|
*
|
|
11382
11964
|
* */
|
|
11383
11965
|
/**
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11966
|
+
* Convert a slope of a line to angle (in degrees) between
|
|
11967
|
+
* the line and x axis
|
|
11968
|
+
* @private
|
|
11969
|
+
* @param {number} slope of the straight line function
|
|
11970
|
+
* @return {number} angle in degrees
|
|
11971
|
+
*/
|
|
11390
11972
|
LinearRegressionAngleIndicator.prototype.slopeToAngle = function (slope) {
|
|
11391
11973
|
return Math.atan(slope) * (180 / Math.PI); // rad to deg
|
|
11392
11974
|
};
|
|
@@ -11469,7 +12051,11 @@
|
|
|
11469
12051
|
var correctFloat = U.correctFloat,
|
|
11470
12052
|
extend = U.extend,
|
|
11471
12053
|
merge = U.merge;
|
|
11472
|
-
/*
|
|
12054
|
+
/* *
|
|
12055
|
+
*
|
|
12056
|
+
* Functions
|
|
12057
|
+
*
|
|
12058
|
+
* */
|
|
11473
12059
|
/**
|
|
11474
12060
|
* @private
|
|
11475
12061
|
*/
|
|
@@ -11489,7 +12075,11 @@
|
|
|
11489
12075
|
function getPointLB(low, base) {
|
|
11490
12076
|
return low * (correctFloat(1 - 2 * base));
|
|
11491
12077
|
}
|
|
11492
|
-
/*
|
|
12078
|
+
/* *
|
|
12079
|
+
*
|
|
12080
|
+
* Class
|
|
12081
|
+
*
|
|
12082
|
+
* */
|
|
11493
12083
|
/**
|
|
11494
12084
|
* The ABands series type
|
|
11495
12085
|
*
|
|
@@ -11753,13 +12343,18 @@
|
|
|
11753
12343
|
var TrendLineIndicator = /** @class */ (function (_super) {
|
|
11754
12344
|
__extends(TrendLineIndicator, _super);
|
|
11755
12345
|
function TrendLineIndicator() {
|
|
12346
|
+
/* *
|
|
12347
|
+
*
|
|
12348
|
+
* Static Properties
|
|
12349
|
+
*
|
|
12350
|
+
* */
|
|
11756
12351
|
var _this = _super !== null && _super.apply(this,
|
|
11757
12352
|
arguments) || this;
|
|
11758
12353
|
/* *
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
12354
|
+
*
|
|
12355
|
+
* Properties
|
|
12356
|
+
*
|
|
12357
|
+
* */
|
|
11763
12358
|
_this.data = void 0;
|
|
11764
12359
|
_this.options = void 0;
|
|
11765
12360
|
_this.points = void 0;
|
|
@@ -11861,6 +12456,11 @@
|
|
|
11861
12456
|
* Default Export
|
|
11862
12457
|
*
|
|
11863
12458
|
* */
|
|
12459
|
+
/* *
|
|
12460
|
+
*
|
|
12461
|
+
* API Options
|
|
12462
|
+
*
|
|
12463
|
+
* */
|
|
11864
12464
|
/**
|
|
11865
12465
|
* A `TrendLine` series. If the [type](#series.trendline.type) option is not
|
|
11866
12466
|
* specified, it is inherited from [chart.type](#chart.type).
|
|
@@ -12078,8 +12678,6 @@
|
|
|
12078
12678
|
});
|
|
12079
12679
|
_registerModule(_modules, 'masters/indicators/indicators-all.src.js', [], function () {
|
|
12080
12680
|
|
|
12081
|
-
// eslint-disable-next-line max-len
|
|
12082
|
-
// eslint-disable-next-line max-len
|
|
12083
12681
|
|
|
12084
12682
|
});
|
|
12085
12683
|
}));
|