Charting
ChangeColorOpacity
Converts HEX to RGBA with opacity.
Syntax: ChangeColorOpacity(color, opacity)
Returns a RGBA color string.
Return type: String
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
ChartAddAxisLabel
Adds a label on the y-axis.
Syntax: ChartAddAxisLabel(chartId, side, text, value, [ color ], [ textColor ])
Return type: Void
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
ChartSetAxisOptions
Gives control over axis settings such as low, high and visibility.
Syntax: ChartSetAxisOptions(chartId, side, [ low ], [ high ], [ visible ], [ type ])
Return type: Void
chartId
Number
True
side
Enum
True
ChartAxisRightSide,ChartAxisLeftSide
low
Number
False
high
Number
False
visible
Boolean
False
True,False
type
Enum
False
ChartAxisLeftSide,ChartAxisRightSide
ChartSetOptions
Gives control over chart options such as title and height.
Syntax: ChartSetOptions(chartId, [ title ], [ height ], [ style ])
Return type: Void
chartId
Number
True
title
String
False
height
Number
False
style
Enum
False
PricePlotStyleCandleStick,PricePlotStyleCandleStickHLC,PricePlotStyleCloseLine,PricePlotStyleHLC,PricePlotStyleOHLC,PricePlotStyleMountain,PricePlotStyleLine,PricePlotStyleHeikinAshi,PricePlotStyleSpread,PricePlotStyleSpreadCandle
LineOptions
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
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
MarkCandle
Changes the color of a single candle.
Syntax: MarkCandle(chartId, [ depth ])
Return type: Void
chartId
Number
True
depth
Number
False
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.
Syntax: Plot(chartId, lineName, value, [ color/options ])
Returns a line guid which can be used to manipulate the style.
Return type: String
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
PlotBands
Creates a band between 2 lines.
Syntax: PlotBands(lineGuid1, lineGuid2, fillColor)
Return type: Void
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
PlotBars
Changes a line to bars.
Syntax: PlotBars(lineGuid, [ baseValue ], [ fillColor ])
Return type: Void
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
PlotBBandsChart
Takes care of the plotting side of a BBANDS (like) calculation and chart.
Syntax: PlotBBandsChart(chartIndex, name, upper, middle, [ lower ])
Return type: Void
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
PlotBuySellZone
Draws a horizontal zone with buy and sell lines on the chart.
Syntax: PlotBuySellZone(chartId, start, end)
Return type: Void
chartId
Number
True
start
Number
True
Input,Number,SessionGet
end
Number
True
Input,Number,SessionGet
PlotCircle
Changes the line into circles.
Syntax: PlotCircle(lineGuid, [ fillColor ])
Return type: Void
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
PlotCloud
Creates a cloud with double colors between 2 lines.
Syntax: PlotCloud(lineGuid1, lineGuid2, opacity)
Return type: Void
lineGuid1
String
True
Plot
lineGuid2
String
True
Plot
opacity
Number
True
PlotDoubleColor
Changes the color of the line based on a base value.
Syntax: PlotDoubleColor(lineGuid, baseValue, secondColor, [ fillColor ])
Return type: Void
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
PlotHistogram
Change the line into a histogram.
Syntax: PlotHistogram(lineGuid, secondColor, [ fillRaisingBars ])
Return type: Void
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
PlotHistogramSignals
Takes care of the plotting side of a MACD (like) calculation and chart.
Syntax: PlotHistogramSignals(chartIndex, name, histogram, [ shortSignal ], [ longSignal ])
Return type: Void
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
PlotHorizontalLine
Draws a horizontal line on the chart.
Syntax: PlotHorizontalLine(chartId, name, color, value, [ lineDecoration ], [ side ], [ id ])
Return type: Void
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
PlotHorizontalZone
Draws a horizontal zone on the chart.
Syntax: PlotHorizontalZone(chartId, name, color, start, end, [ side ])
Return type: Void
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
PlotLineBuySellZone
Plots the line with a buy and sell zone on the chart.
Syntax: PlotLineBuySellZone(chartIndex, name, source, start, end)
Return type: Void
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
PlotPivot
Plots a pivot cross above or below the chart when detected.
Syntax: PlotPivot(leftStrength, rightStrength)
Return type: Void
leftStrength
Number
True
Input,Number,SessionGet
rightStrength
Number
True
Input,Number,SessionGet
PlotPrice
Creates a price plot. Candlestick by default.
Syntax: PlotPrice(chartId, market, [ interval ], [ style ], [ upColor ], [ upFill ], [ downColor ], [ downFill ], [ markColor ], [ markFill ])
Return type: Void
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
PlotShape
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
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
PlotShapes
Changes the line into a specific shape.
Syntax: PlotShapes(lineGuid, shape, [ fillColor ])
Return type: Void
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
PlotSignalBar
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
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
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.
Syntax: PlotSignalEnum(chartId, signal)
Returns the input signal for continuation.
Return type: Enum
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
PlotStackedArea
Creates a stacked area chart from a line guid collection.
Syntax: PlotStackedArea(lineGuids)
Return type: Void
lineGuids
Dynamic
True
Plot
PlotVerticalLine
Draws a vertical line on the chart.
Syntax: PlotVerticalLine(chartId, name, color, unix, [ lineDecoration ])
Return type: Void
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
PlotVerticalZone
Draws a vertical zone on the chart.
Syntax: PlotVerticalZone(chartId, name, color, start, end)
Return type: Void
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
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.
Syntax: PlotVolume(chartId, [ upColor ], [ downColor ], [ upFill ], [ downFill ], [ side ])
Return type: Void
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
SetStackedAreaOpacity
Configures the opacity for stacked area chart. A values between
Syntax: SetStackedAreaOpacity(chartId, opacity)
Return type: Void
chartId
Number
True
opacity
Number
True
Last updated