StockChartX namespace
Classes
- AbstractGeometricMarkerDrawing
- Animation
- ArrowDownDrawing
- ArrowDrawingBase
- ArrowLeftDrawing
- ArrowRightDrawing
- ArrowUpDrawing
- AutoDateScaleCalibrator
- AutoValueScaleCalibrator
- BarPriceStyle
- CandlePriceStyle
- Chart
- ChartComponent
- ChartEventsExtender
- ChartFrameControl
- ChartPanel
- ChartPanelObject
- ChartPanelsContainer
- ChartPanelSplitter
- ChartPanelValueScale
- ChartPoint
- CircleDrawing
- ClassRegistrar
- ClickGesture
- ColoredBarPriceStyle
- Component
- Control
- CrossHair
- CustomDateTimeFormat
- CustomNumberFormat
- DataManager
- DataSeries
- DateScale
- DateScaleCalibrator
- DateScalePanel
- DateTimeFormat
- DiamondDrawing
- DotDrawing
- DoubleClickGesture
- Drawing
- EllipseDrawing
- EventsDispatcher
- FibonacciArcsDrawing
- FibonacciDrawingBase
- FibonacciEllipsesDrawing
- FibonacciExtensionsDrawing
- FibonacciFanDrawing
- FibonacciRetracementsDrawing
- FibonacciTimeZonesDrawing
- FixedDateScaleCalibrator
- FixedValueScaleCalibrator
- FrameControl
- Gesture
- GestureArray
- HeikinAshiPriceStyle
- HistogramPlot
- HollowCandlePriceStyle
- HorizontalLineDrawing
- ImageDrawing
- Indicator
- IntervalValueScaleCalibrator
- IntlNumberFormat
- KagiPriceStyle
- KumoPlot
- LineBreakPriceStyle
- LinePlot
- LinePriceStyle
- LineSegmentDrawing
- MountainPriceStyle
- MouseHoverGesture
- MouseWheelGesture
- NumberFormat
- PanGesture
- Plot
- PointAndFigurePriceStyle
- PointPlot
- PriceStyle
- Projection
- Rect
- RectangleDrawing
- RenkoPriceStyle
- SelectionMarker
- SquareDrawing
- TAIndicator
- TextDrawing
- TimeIntervalDateTimeFormat
- TriangleDrawing
- ValueMarker
- ValueScale
- ValueScaleCalibrator
- ValueScalePanel
- VerticalLineDrawing
Namespaces
Members
-
<static, readonly> CrossHairType :string
-
Cross hair type enum values.
Type:
- string
Properties:
Name Type Default Description NONEstring none Cross hair is not shown. Use regular cursor. MARKERSstring markers Show date and value markers. Cross hair lines are hidden. CROSSstring cross Show cross hair lines and markers. -
<static, readonly> DataSeriesSuffix :string
-
The data series suffixes.
Type:
- string
Properties:
Name Type Default Description DATEstring .date Date data series suffix. OPENstring .open Open data series suffix. HIGHstring .high High data series suffix. LOWstring .low Low data series suffix. CLOSEstring .close Close data series suffix. VOLUMEstring .volume Volume data series suffix. HEIKIN_ASHIstring .heikin_ashi Heikin ashi data series. It is used in combination with OPEN, HIGH, LOW and CLOSE suffix. RENKOstring .renko Renko data series. It is used in combination with DATE, OPEN, HIGH, LOW, CLOSE, VOLUME suffixes. LINE_BREAKstring .line_break Line break data series. It is used in combination with DATE, OPEN, HIGH, LOW, CLOSE, VOLUME suffixes. POINT_AND_FIGUREstring .point_and_figure Point & Figure data series. It is used in combination with DATE, OPEN, HIGH, LOW, CLOSE, VOLUME suffixes. KAGIstring kagi Kagi data series. It is used in combination with DATE, OPEN, HIGH, LOW, CLOSE, VOLUME suffixes. -
<static, readonly> DateScaleScrollKind :string
-
Date scale scroll kind enum values.
Type:
- string
Properties:
Name Type Default Description NORMALstring normal Normal scroll. AUTOSCALEDstring autoscaled Auto-scale value scales on scroll. -
<static, readonly> DateScaleZoomKind :string
-
Date scale zoom kind enum values.
Type:
- string
Properties:
Name Type Default Description NORMALstring normal Normal zoom. AUTOSCALEDstring autoscaled Auto-scale value scales on zoom. -
<static, readonly> DateScaleZoomMode :string
-
Date scale zoom mode enum values.
Type:
- string
-
<static, readonly> FillPriority :string
-
Fill priority enumeration values.
Type:
- string
Properties:
Name Type Default Description COLORstring color The solid color fill style. -
<static> FontDefaults :object
-
Default font properties.
Type:
- object
Properties:
Name Type Description fontFamilystring The font family (e.g. 'Arial', 'Calibri', ...). fontSizenumber The font size. fontStylestring The font style (e.g. 'normal', 'italic'). fontVariantstring The font variant. fontWeightstring The font weight (e.g. 'normal', 'bold'). -
<static, readonly> GestureState :number
-
Gesture state enumeration.
Type:
- number
Properties:
Name Type Default Description NONEnumber 0 Gesture is not recognized. STARTEDnumber 1 Gesture started. CONTINUEDnumber 2 Gesture continued. FINISHEDnumber 3 Gesture finished. -
<static, readonly> IndicatorParam :string
-
Indicator parameter name constants.
Type:
- string
Properties:
Name Type Default Description SOURCEstring Source SOURCE2string Source 2 PERIODSstring Periods STANDARD_DEVIATIONSstring Standard Deviations MA_TYPEstring Moving Average Type SHIFTstring Shift MIN_TICKstring Min Tick Value LIMIT_MOVEstring Limit Move Value PCT_K_PERIODSstring %K Periods PCT_K_SMOOTHINGstring %K Smoothing PCT_K_DOUBLE_SMOOTHINGstring %K Double Smoothing PCT_D_PERIODSstring %D Periods PCT_D_MA_TYPEstring %D Moving Average Type BAR_HISTORYstring Bar History R2_SCALEstring R2 Scale CYCLE_1string Cycle 1 CYCLE_2string Cycle 2 CYCLE_3string Cycle 3 SHORT_TERMstring Short Term LONG_TERMstring Long Term POINTS_OR_PERCENTstring Points or Percent RATE_OF_CHANGEstring Rate of Change SHORT_CYCLEstring Short Cycle LONG_CYCLEstring Long Cycle SIGNAL_PERIODSstring Signal Periods MIN_AFstring Min AF MAX_AFstring Max AF LEVELSstring Levels LINE_WIDTHstring Line Width LINE_STYLEstring Line Style LINE_COLORstring Line Color LINE2_WIDTHstring Line 2 Width LINE2_STYLEstring Line 2 Style LINE2_COLORstring Line 2 Color LINE3_WIDTHstring Line 3 Width LINE3_STYLEstring Line 3 Style LINE3_COLORstring Line 3 Color -
<static, readonly> KagiReversalKind :string
-
Kagi reversal amount kind enum values.
Type:
- string
Properties:
Name Type Default Description ATRstring atr The reversal amount is based on ATR value. FIXEDstring fixed The reversal amount is based on fixed value. -
<static, readonly> LineStyle :string
-
Line styles enumeration values.
Type:
- string
Properties:
Name Type Default Description SOLIDstring solid The solid line style. DASHstring dash The dashed line style. DOTstring dot The dotted line style. DASH_DOTstring dash-dot DASH_DOT The dashed-dotted line style. -
<static, readonly> PanelMoveDirection :string
-
Chart panel move direction enum values.
Type:
- string
-
<static, readonly> PanelMoveKind :string
-
Chart panel move kind enum values.
Type:
- string
-
<static, readonly> PointAndFigureBoxSizeKind :string
-
Point & Figure box size kind enum values.
Type:
- string
Properties:
Name Type Default Description ATRstring atr The box size is based on ATR value. FIXEDstring fixed The box size is based on fixed value. -
<static, readonly> RenkoBoxSizeKind :string
-
Renko box kind enum values.
Type:
- string
Properties:
Name Type Default Description FIXEDstring fixed The box size is based on fixed value. ATRstring atr The box size is based on ATR value. -
<static, readonly> StrokePriority :string
-
Stroke priority enumeration values.
Type:
- string
Properties:
Name Type Default Description COLORstring color The solid color stroke style. -
<static, readonly> TimeSpan :number
-
Time span values.
Type:
- number
Properties:
Name Type Default Description MILLISECONDS_IN_YEARnumber 31556926000 Number of milliseconds in year. MILLISECONDS_IN_MONTHnumber 2629743830 number of milliseconds in month. MILLISECONDS_IN_WEEKnumber 604800000 Number of milliseconds in week. MILLISECONDS_IN_DAYnumber 86400000 Number of milliseconds in day. MILLISECONDS_IN_HOURnumber 3600000 Number of milliseconds in hour. MILLISECONDS_IN_MINUTEnumber 60000 Number of milliseconds in minute. MILLISECONDS_IN_SECONDnumber 1000 Number of milliseconds in second. -
<static> ViewsPath :string
-
Path to the folder which contains UI views (dialogs, menus, etc.).
Type:
- string
- Default Value:
-
- 'view/'
-
<static, readonly> XPointBehavior :string
-
X point behavior enum values.
Type:
- string
Properties:
Name Type Default Description Xstring x Use x as X coordinate RECORDstring record Use record as X coordinate DATEstring date Use date as X coordinate -
<static, readonly> YPointBehavior :string
-
Y point behavior enum values.
Type:
- string
Properties:
Name Type Default Description Ystring y Use y as Y coordinate VALUEstring value Use value as Y coordinate
Type Definitions
-
Bar
-
The bar structure.
Type:
- object
Properties:
Name Type Description dateDate The timestamp of the bar. opennumber The open price. highnumber The high price. lownumber The low price. closenumber The close price. volumenumber The volume. -
BarDataSeries
-
The bar data series object.
Type:
- object
Properties:
Name Type Description dateStockChartX.DataSeries The date data series. openStockChartX.DataSeries The open data series. highStockChartX.DataSeries The high data series. lowStockChartX.DataSeries The low data series. closeStockChartX.DataSeries The close data series. volumeStockChartX.DataSeries The volume data series. -
CanvasImageCallback(canvas)
-
The save image callback function.
Parameters:
Name Type Description canvasHTMLCanvasElement The rendering canvas. -
DateScaleMajorTick
-
The date scale major tick mark structure.
Type:
- object
Properties:
Name Type Description xnumber The x coordinate of the tick mark. dateDate The date value. textXnumber The x coordinate of the tick mark text. textstring The text representation of the date. -
DateScaleMinorTick
-
The date scale minor tick mark structure.
Type:
- object
Properties:
Name Type Description xnumber The x coordinate of the tick mark. -
EventHandler(event)
-
The event handler callback.
Parameters:
Name Type Description eventObject The event object. -
FibonacciLevel
-
The fibonacci level structure.
Type:
- object
Properties:
Name Type Argument Default Description visibleboolean <optional>
true The flag that indicates whether level is visible. valuenumber The level value. themeobject <optional>
The theme for the level. Example
var point = { x: 10, y: 20 }; -
FillTheme
-
The fill theme structure.
Type:
- object
Properties:
Name Type Argument Default Description fillEnabledboolean <optional>
true The flag that indicates whether fill theme is enabled. fillPriorityFillPriority <optional>
'color' The fill priority (for future use). fillColorstring <optional>
'black' The fill color. Example
// Red fill theme var fillTheme = { fillColor: 'red' }; -
Instrument
-
The instrument structure.
Type:
- object
Properties:
Name Type Argument Description symbolstring The symbol name. E.g. 'AAPL'. companystring <optional>
The company name. E.g. 'Apple Inc.'. exchangestring <optional>
The exchange. E.g. 'NSDQ'. -
KagiReversalAmount
-
The kagi reversal amount structure.
Type:
- object
Properties:
Name Type Description kindstring The reversal amount kind (atr or fixed). valuenumber The reversal amount. Example
var reversal = { kind: StockChartX.KagiReversalKind.ATR, value: 14 }; -
OHLCDataSeries
-
The OHLC data series object.
Type:
- object
Properties:
Name Type Description openStockChartX.DataSeries The open data series. highStockChartX.DataSeries The high data series. lowStockChartX.DataSeries The low data series. closeStockChartX.DataSeries The close data series. -
Padding
-
The padding values structure.
Type:
- object
Properties:
Name Type Description leftnumber The left padding. topnumber The top padding. rightnumber The right padding. bottomnumber The bottom padding. Example
var padding = { left: 5, top: 5, right: 10, bottom: 10 }; -
Point
-
The point structure.
Type:
- object
Properties:
Name Type Description xnumber The X coordinate. ynumber The Y coordinate. Example
var point = { x: 10, y: 20 }; -
PointAndFigureBoxSize
-
The point & figure box size structure.
Type:
- object
Properties:
Name Type Description kindstring The box size kind (atr or fixed). valuenumber The box size value. Example
var boxSize = { kind: StockChartX.PointAndFigureBoxSizeKind.ATR, value: 14 }; -
PointBehavior
-
The point behavior structure.
Type:
- object
- See:
Properties:
Name Type Description xStockChartX.XPointBehavior The X coordinate behavior. yStockChartX.YPointBehavior The Y coordinate behavior. Example
var behavior = { x: StockChartX.XPointBehavior.DATE, y: StockChartX.YPointBehavior.VALUE }; -
RenkoBoxSize
-
The renko box size structure.
Type:
- object
Properties:
Name Type Description kindstring The box size kind (atr or fixed). valuenumber The box size value. Example
var boxSize = { kind: StockChartX.RenkoBoxSizeKind.ATR, value: 14 }; -
SelectionMarkerTheme
-
The selection marker theme structure.
Type:
- object
Properties:
Name Type Description lineStrokeTheme The border line theme. fillFillTheme The fill theme. Example
// Selection marker with black border and white background. var theme = { line: { strokeColor: 'black' }, fill: { fillColor: 'white' } }; -
Size
-
The size structure.
Type:
- object
Properties:
Name Type Description widthnumber The width. heightnumber The height. Example
var size = { width: 10, height: 20 }; -
StringPaddingOptions
-
The string padding options
Type:
- object
Properties:
Name Type Description widthnumber The number of characters in the resulting string (equal to the number of original characters plus any additional padding characters. alignLeftboolean If true then characters are left aligned, otherwise characters are right aligned. paddingchar The padding character. -
StrokeTheme
-
The stroke theme structure.
Type:
- object
Properties:
Name Type Argument Default Description strokeEnabledboolean <optional>
true The flag that indicates whether stroke theme is enabled. strokePriorityStrokePriority <optional>
'color' The stroke priority (for future use). widthnumber <optional>
1 The stroke width. strokeColorstring <optional>
'black' The stroke color. lineStyleLineStyle <optional>
'solid' The stroke style. lineCapstring <optional>
'butt' The style of the end caps for the line. Possible values are 'butt', 'round' and 'square'. lineJoinstring <optional>
'miter' The type of corner created, when two lines meet. Possible values are 'bevel', 'round' and 'miter'. Example
// Stroke theme for the solid red 5 px line. var strokeTheme = { width: 5, strokeColor: 'red' }; // Stroke theme for the dashed green line var strokeTheme = { strokeColor: 'green', lineStyle: StockChartX.LineStyle.DASH }; -
TextTheme
-
The text theme structure.
Type:
- object
- Mixes In:
- StrokeTheme
- FillTheme
Properties:
Name Type Argument Default Description fontFamilyString <optional>
'Arial' The font family (e.g. 'Arial', 'Calibri', ...). 'Arial' by default. fontSizeNumber <optional>
12 The font size. fontStyleString <optional>
'normal' The font style (e.g. 'normal', 'italic'). 'normal' by default. fontWeightString <optional>
'normal' The font weight (e.g. 'normal', 'bold'). 'normal' by default. fontVariantString <optional>
'normal' The font variant. Example
var theme = { fontFamily: 'Times New Roman', fontSize: 14, fillColor: 'green', strokeEnabled: false }; -
ValueScaleMajorTick
-
The value scale major tick mark structure.
Type:
- object
Properties:
Name Type Description ynumber The Y coordinate of the tick mark. valuenumber The value. textstring The text representation of the date. -
ValueScaleMinorTick
-
The value scale minor tick mark structure.
Type:
- object
Properties:
Name Type Description ynumber The Y coordinate of the tick mark. -
WindowEvent
-
The window mouse/touch event.
Type:
- Object
Properties:
Name Type Argument Description pointerPositionStockChartX.Point The current pointer position. evtJQueryEventObject The jQuery event object. stopPropagationboolean <optional>
The flag that indicates whether bubbling of an event to parent elements should be stopped.