Charting

ChangeColorOpacity

Converts HEX to RGBA with opacity.

  • ChangeColorOpacity(color, opacity)

Returns a RGBA color string.

Return Type: String

ChartAddAxisLabel

Adds a label on the y-axis.

  • ChartAddAxisLabel(chartId, side, text, value, [ color ], [ textColor ])

Return Type: Void

ChartSetAxisOptions

Gives control over axis settings such as low, high and visibility.

  • ChartSetAxisOptions(chartId, side, [ low ], [ high ], [ visible ], [ type ])

Return Type: Void

ChartSetOptions

Gives control over chart options such as title and height.

  • ChartSetOptions(chartId, [ title ], [ height ], [ style ])

Return Type: Void

LineOptions

Creates a line options object to be used for Plot().

  • LineOptions([ color ], [ style ], [ deco ], [ width ], [ offset ], [ side ], [ id ], [ behind ], [ ignoreOnAxis ])

Creates a line options object.

Return Type: Dynamic

MarkCandle

Changes the color of a single candle.

  • MarkCandle(chartId, [ depth ])

Return Type: Void

Plot

Creates a data line on the chart. The line can be styled accordingly. A positive chartId will place the line below the main price chart. A negative index above.

  • Plot(chartId, lineName, value, [ color/options ])

Returns a line guid which can be used to manipulate the style.

Return Type: String

PlotBands

Creates a band between 2 lines.

  • PlotBands(lineGuid1, lineGuid2, fillColor)

Return Type: Void

PlotBars

Changes a line to bars.

  • PlotBars(lineGuid, [ baseValue ], [ fillColor ])

Return Type: Void

PlotBBandsChart

Takes care of the plotting side of a BBANDS (like) calculation and chart.

  • PlotBBandsChart(chartIndex, name, upper, middle, [ lower ])

Return Type: Void

PlotBuySellZone

Draws a horizontal zone with buy and sell lines on the chart.

  • PlotBuySellZone(chartId, start, end)

Return Type: Void

PlotCircle

Changes the line into circles.

  • PlotCircle(lineGuid, [ fillColor ])

Return Type: Void

PlotCloud

Creates a cloud with double colors between 2 lines.

  • PlotCloud(lineGuid1, lineGuid2, opacity)

Return Type: Void

PlotDoubleColor

Changes the color of the line based on a base value.

  • PlotDoubleColor(lineGuid, baseValue, secondColor, [ fillColor ])

Return Type: Void

PlotHistogram

Change the line into a histogram.

  • PlotHistogram(lineGuid, secondColor, [ fillRaisingBars ])

Return Type: Void

PlotHistogramSignals

Takes care of the plotting side of a MACD (like) calculation and chart.

  • PlotHistogramSignals(chartIndex, name, histogram, [ shortSignal ], [ longSignal ])

Return Type: Void

PlotHorizontalLine

Draws a horizontal zone on the chart.

  • PlotHorizontalLine(chartId, name, color, value, [ lineDecoration ], [ side ])

Return Type: Void

PlotHorizontalZone

Draws a horizontal line on the chart.

  • PlotHorizontalZone(chartId, name, color, start, end, [ side ])

Return Type: Void

PlotLineBuySellZone

Plots the line with a buy and sell zone on the chart.

  • PlotLineBuySellZone(chartIndex, name, source, start, end)

Return Type: Void

PlotPivot

Plots a pivot cross above or below the chart when detected.

  • PlotPivot(leftStrength, rightStrength)

Return Type: Void

PlotPrice

Creates a price plot. Candlestick by default.

  • PlotPrice(chartId, market, [ interval ], [ style ], [ upColor ], [ upFill ], [ downColor ], [ downFill ], [ markColor ], [ markFill ])

Return Type: Void

PlotShape

Draws a shape above the candle or first line on the chart.

  • PlotShape([ chartId ], [ shape ], [ color ], [ size ], [ aboveCandle ], [ text ], [ textColor ], [ offset ])

Return Type: Void

PlotSignalBar

Creates a small signal bar chart. A positive chartId will place the line below the main price chart. A negative index above.

  • PlotSignalBar(chartId, color)

Return Type: Void

PlotSignalEnum

Creates a small signal bar chart based on the signal enum. A positive chartId will place the line below the main price chart. A negative index above.

  • PlotSignalEnum(chartId, signal)

Returns the input signal for continuation.

Return Type: Enum

PlotStackedArea

Creates a stacked area chart from a line guid collection.

  • PlotStackedArea(lineGuids)

Return Type: Void

PlotVerticalLine

Draws a vertical line on the chart.

  • PlotVerticalLine(chartId, name, color, unix, [ lineDecoration ])

Return Type: Void

PlotVerticalZone

Draws a vertical zone on the chart.

  • PlotVerticalZone(chartId, name, color, start, end)

Return Type: Void

PlotVolume

Creates volume bars. The bars can be styles accordingly. A positive chartId will place the line below the main price chart. A negative index above.

  • PlotVolume(chartId, [ upColor ], [ downColor ], [ upFill ], [ downFill ], [ side ])

Return Type: Void

Last updated