Charting
Last updated
Last updated
Converts HEX to RGBA with opacity.
Syntax: ChangeColorOpacity(color, opacity)
Returns a RGBA color string.
Return type: String
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Adds a label on the y-axis.
Syntax: ChartAddAxisLabel(chartId, side, text, value, [ color ], [ textColor ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Gives control over axis settings such as low, high and visibility.
Syntax: ChartSetAxisOptions(chartId, side, [ low ], [ high ], [ visible ], [ type ])
Return type: Void
Gives control over chart options such as title and height.
Syntax: ChartSetOptions(chartId, [ title ], [ height ], [ style ])
Return type: Void
Creates a line options object to be used for Plot().
Syntax: LineOptions([ color ], [ style ], [ deco ], [ width ], [ offset ], [ side ], [ id ], [ behind ], [ ignoreOnAxis ], [ drawTrailingLine ])
Creates a line options object.
Return type: Dynamic
Changes the color of a single candle.
Syntax: MarkCandle(chartId, [ depth ])
Return type: Void
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.
Syntax: Plot(chartId, lineName, value, [ color/options ])
Returns a line guid which can be used to manipulate the style.
Return type: String
Creates a band between 2 lines.
Syntax: PlotBands(lineGuid1, lineGuid2, fillColor)
Return type: Void
Changes a line to bars.
Syntax: PlotBars(lineGuid, [ baseValue ], [ fillColor ])
Return type: Void
Takes care of the plotting side of a BBANDS (like) calculation and chart.
Syntax: PlotBBandsChart(chartIndex, name, upper, middle, [ lower ])
Return type: Void
Draws a horizontal zone with buy and sell lines on the chart.
Syntax: PlotBuySellZone(chartId, start, end)
Return type: Void
Changes the line into circles.
Syntax: PlotCircle(lineGuid, [ fillColor ])
Return type: Void
Creates a cloud with double colors between 2 lines.
Syntax: PlotCloud(lineGuid1, lineGuid2, opacity)
Return type: Void
Changes the color of the line based on a base value.
Syntax: PlotDoubleColor(lineGuid, baseValue, secondColor, [ fillColor ])
Return type: Void
Change the line into a histogram.
Syntax: PlotHistogram(lineGuid, secondColor, [ fillRaisingBars ])
Return type: Void
Takes care of the plotting side of a MACD (like) calculation and chart.
Syntax: PlotHistogramSignals(chartIndex, name, histogram, [ shortSignal ], [ longSignal ])
Return type: Void
Draws a horizontal line on the chart.
Syntax: PlotHorizontalLine(chartId, name, color, value, [ lineDecoration ], [ side ], [ id ])
Return type: Void
Draws a horizontal zone on the chart.
Syntax: PlotHorizontalZone(chartId, name, color, start, end, [ side ])
Return type: Void
Plots the line with a buy and sell zone on the chart.
Syntax: PlotLineBuySellZone(chartIndex, name, source, start, end)
Return type: Void
Plots a pivot cross above or below the chart when detected.
Syntax: PlotPivot(leftStrength, rightStrength)
Return type: Void
Creates a price plot. Candlestick by default.
Syntax: PlotPrice(chartId, market, [ interval ], [ style ], [ upColor ], [ upFill ], [ downColor ], [ downFill ], [ markColor ], [ markFill ])
Return type: Void
Draws a shape above the candle or first line on the chart.
Syntax: PlotShape([ chartId ], [ shape ], [ color ], [ size ], [ aboveCandle ], [ text ], [ textColor ], [ offset ])
Return type: Void
Changes the line into a specific shape.
Syntax: PlotShapes(lineGuid, shape, [ fillColor ])
Return type: Void
Creates a small signal bar chart. A positive chartId will place the line below the main price chart. A negative index above.
Syntax: PlotSignalBar(chartId, color)
Return type: Void
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.
Syntax: PlotSignalEnum(chartId, signal)
Returns the input signal for continuation.
Return type: Enum
Creates a stacked area chart from a line guid collection.
Syntax: PlotStackedArea(lineGuids)
Return type: Void
Draws a vertical line on the chart.
Syntax: PlotVerticalLine(chartId, name, color, unix, [ lineDecoration ])
Return type: Void
Draws a vertical zone on the chart.
Syntax: PlotVerticalZone(chartId, name, color, start, end)
Return type: Void
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.
Syntax: PlotVolume(chartId, [ upColor ], [ downColor ], [ upFill ], [ downFill ], [ side ])
Return type: Void
Configures the opacity for stacked area chart. A values between
Syntax: SetStackedAreaOpacity(chartId, opacity)
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow
opacity
Number
True
chartId
Number
True
side
Enum
True
ChartAxisRightSide,ChartAxisLeftSide
text
String
True
value
Number
True
Input,Number,SessionGet
color
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
textColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
chartId
Number
True
side
Enum
True
ChartAxisRightSide,ChartAxisLeftSide
low
Number
False
high
Number
False
visible
Boolean
False
True,False
type
Enum
False
ChartAxisLeftSide,ChartAxisRightSide
chartId
Number
True
title
String
False
height
Number
False
style
Enum
False
PricePlotStyleCandleStick,PricePlotStyleCandleStickHLC,PricePlotStyleCloseLine,PricePlotStyleHLC,PricePlotStyleOHLC,PricePlotStyleMountain,PricePlotStyleLine,PricePlotStyleHeikinAshi,PricePlotStyleSpread,PricePlotStyleSpreadCandle
color
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
style
Enum
False
ChartLineStyleSpiked,ChartLineStyleSmooth,ChartLineStyleStep,ChartLineStyleStepAfter,ChartLineStyleStepBefore
deco
Enum
False
ChartLineDecorationSolid,ChartLineDecorationDashed,ChartLineDecorationDotted
width
Number
False
offset
Number
False
Input,Number,SessionGet
side
Enum
False
ChartAxisRightSide,ChartAxisLeftSide
id
String
False
Load,NewGuid
behind
Boolean
False
True,False
ignoreOnAxis
Boolean
False
True,False
drawTrailingLine
Boolean
False
True,False
chartId
Number
True
depth
Number
False
chartId
Number
True
lineName
String
True
value
NumberOrTable
True
color/options
Dynamic
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity,LineOptions
lineGuid1
String
True
Plot
lineGuid2
String
True
Plot
fillColor
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
lineGuid
String
True
Plot
baseValue
Number
False
fillColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
chartIndex
Number
True
Input,Number,SessionGet
name
String
True
Text,Input,SessionGet,Load
upper
NumberOrTable
True
ABANDS,BBANDS,DONCHIAN,KELTNER
middle
NumberOrTable
True
ABANDS,BBANDS,DONCHIAN,KELTNER
lower
NumberOrTable
False
ABANDS,BBANDS,DONCHIAN,KELTNER
chartId
Number
True
start
Number
True
Input,Number,SessionGet
end
Number
True
Input,Number,SessionGet
lineGuid
String
True
Plot
fillColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
lineGuid1
String
True
Plot
lineGuid2
String
True
Plot
opacity
Number
True
lineGuid
String
True
Plot
baseValue
Number
True
secondColor
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
fillColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
lineGuid
String
True
Plot
secondColor
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
fillRaisingBars
Boolean
False
True,False
chartIndex
Number
True
Input,Number,SessionGet
name
String
True
Text,Input,SessionGet,Load
histogram
NumberOrTable
True
MACD,MACDEXT,MACDFIX
shortSignal
NumberOrTable
False
MACD,MACDEXT,MACDFIX
longSignal
NumberOrTable
False
MACD,MACDEXT,MACDFIX
chartId
Number
True
name
String
True
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
value
Number
True
Input,Number,SessionGet
lineDecoration
Enum
False
ChartLineDecorationSolid,ChartLineDecorationDashed,ChartLineDecorationDotted
side
Enum
False
ChartAxisRightSide,ChartAxisLeftSide
id
String
False
chartId
Number
True
name
String
True
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
start
Number
True
Input,Number,SessionGet
end
Number
True
Input,Number,SessionGet
side
Enum
False
ChartAxisRightSide,ChartAxisLeftSide
chartIndex
Number
True
Input,Number,SessionGet
name
String
True
Text,Input,SessionGet,Load
source
NumberOrTable
True
RSI
start
Number
True
Input,Number,SessionGet
end
Number
True
Input,Number,SessionGet
leftStrength
Number
True
Input,Number,SessionGet
rightStrength
Number
True
Input,Number,SessionGet
chartId
Number
True
market
String
True
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
interval
Number
False
InputInterval,Number,CurrentInterval
style
Enum
False
PricePlotStyleCandleStick,PricePlotStyleCandleStickHLC,PricePlotStyleCloseLine,PricePlotStyleHLC,PricePlotStyleOHLC,PricePlotStyleMountain,PricePlotStyleLine,PricePlotStyleHeikinAshi,PricePlotStyleSpread,PricePlotStyleSpreadCandle
upColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
upFill
Boolean
False
True,False
downColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
downFill
Boolean
False
True,False
markColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
markFill
Boolean
False
True,False
chartId
Number
False
shape
Enum
False
ShapeTypeAdd,ShapeTypeCircle,ShapeTypeCross,ShapeTypeDiamond,ShapeTypeDash,ShapeTypeSquare,ShapeTypeTriangleDown,ShapeTypeTriangleUp,ShapeTypeText
color
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
size
Number
False
aboveCandle
Boolean
False
True,False
text
String
False
Text,Input,SessionGet,Load
textColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
offset
Number
False
Input,Number,SessionGet
lineGuid
String
True
Plot
shape
Enum
True
ShapeTypeAdd,ShapeTypeCircle,ShapeTypeCross,ShapeTypeDiamond,ShapeTypeDash,ShapeTypeSquare,ShapeTypeTriangleDown,ShapeTypeTriangleUp,ShapeTypeText
fillColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
chartId
Number
True
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
chartId
Number
True
signal
Enum
True
Equals,DoSignal,PlotSignalEnum,ConvertSignal,IgnoreSignalIf,UseSignalIf,ReverseSignal,SignalWeight,SignalToBool,SignalMapper,SignalProperties,GetWeightedConsensusSignal,GetUnanimousSignal,GetConsensusSignal,IndicatorContainer,TradeBotContainer,EasyABANDS,EasyADOSC,EasyAO,EasyAPO,EasyAROON,EasyAROONOSC,EasyBBANDS,EasyBOP,EasyCCI,EasyCMO,EasyCOPPOCK,EasyCRSI,EasyDMI,EasyDONCHIAN,EasyDPO,EasyDX,EasyICHIMOKU,EasyIMI,EasyKELTNER,EasyKRI,EasyLINEARREG,EasyMA,EasyMACD,EasyMFI,EasyMOM,EasyOBV,EasyPPO,EasyROC,EasyRSI,EasySSTOCH,EasySTOCH,EasySTOCHF,EasyTRIX,EasyTSI,EasyUDRSI,EasyWILLR,EasyZLMA,EasyAlice,EasyCDL,EasySLOWRSI,EasyFASTRSI,EasyBBANDSB,EasyBBANDSW,EasySTOCHRSI,EasyFIBONACCI,EasyKST,EasySAR,EasyDynamicLongShortLevels,EasyFixedLongShortLevels,EasyULTOSC
lineGuids
Dynamic
True
Plot
chartId
Number
True
name
String
True
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
unix
Number
True
Input,Number,SessionGet
lineDecoration
Enum
False
ChartLineDecorationSolid,ChartLineDecorationDashed,ChartLineDecorationDotted
chartId
Number
True
name
String
True
color
String
True
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
start
Number
True
Input,Number,SessionGet
end
Number
True
Input,Number,SessionGet
chartId
Number
True
upColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
downColor
String
False
ColorAqua,ColorBlack,ColorBlue,ColorCyan,ColorDarkGray,ColorDarkGreen,ColorFuchsia,ColorGold,ColorGray,ColorGreen,ColorMaroon,ColorOlive,ColorOrange,ColorPurple,ColorRed,ColorSkyBlue,ColorTeal,ColorWhite,ColorYellow,ChangeColorOpacity
upFill
Boolean
False
True,False
downFill
Boolean
False
True,False
side
Enum
False
ChartAxisRightSide,ChartAxisLeftSide
chartId
Number
True
opacity
Number
True