Charting
Converts HEX to RGBA with opacity.
- ChangeColorOpacity(color, opacity)
Returns a RGBA color string.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
color | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow |
opacity | Number | True | - |
Adds a label on the y-axis.
- ChartAddAxisLabel(chartId, side, text, value, [ color ], [ textColor ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
side | Enum | True | RightAxis, LeftAxis |
text | String | True | - |
value | Number | True | Input, Number, SessionGet |
color | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
textColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
Gives control over axis settings such as low, high and visibility.
- ChartSetAxisOptions(chartId, side, [ low ], [ high ], [ visible ], [ type ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
side | Enum | True | RightAxis, LeftAxis |
low | Number | False | - |
high | Number | False | - |
visible | Boolean | False | True, False |
type | Enum | False | LeftAxis, RightAxis |
Gives control over chart options such as title and height.
- ChartSetOptions(chartId, [ title ], [ height ], [ style ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
title | String | False | - |
height | Number | False | - |
style | Enum | False | Candlestick, CandlestickHLC, CloseLine, HLC, OHLC, Mountain, Line, HeikinAshi, Spread, SpreadCandle |
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
Parameter Name | Parameter Type | Required | Suggested |
color | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
style | Enum | False | Spiked, Smooth, Step, StepAfter, StepBefore |
deco | Enum | False | Solid, Dashed, Dotted |
width | Number | False | - |
offset | Number | False | Input, Number, SessionGet |
side | Enum | False | RightAxis, LeftAxis |
id | String | False | Load, NewGuid |
behind | Boolean | False | True, False |
ignoreOnAxis | Boolean | False | True, False |
Changes the color of a single candle.
- MarkCandle(chartId, [ depth ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
depth | Number | False | - |
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
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
lineName | String | True | - |
value | NumberOrTable | True | - |
color/options | Dynamic | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity, LineOptions |
Creates a band between 2 lines.
- PlotBands(lineGuid1, lineGuid2, fillColor)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid1 | String | True | Plot |
lineGuid2 | String | True | Plot |
fillColor | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
Changes a line to bars.
- PlotBars(lineGuid, [ baseValue ], [ fillColor ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid | String | True | Plot |
baseValue | Number | False | - |
fillColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
Takes care of the plotting side of a BBANDS (like) calculation and chart.
- PlotBBandsChart(chartIndex, name, upper, middle, [ lower ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
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 |
Draws a horizontal zone with buy and sell lines on the chart.
- PlotBuySellZone(chartId, start, end)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
start | Number | True | Input, Number, SessionGet |
end | Number | True | Input, Number, SessionGet |
Changes the line into circles.
- PlotCircle(lineGuid, [ fillColor ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid | String | True | Plot |
fillColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
Creates a cloud with double colors between 2 lines.
- PlotCloud(lineGuid1, lineGuid2, opacity)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid1 | String | True | Plot |
lineGuid2 | String | True | Plot |
opacity | Number | True | - |
Changes the color of the line based on a base value.
- PlotDoubleColor(lineGuid, baseValue, secondColor, [ fillColor ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid | String | True | Plot |
baseValue | Number | True | - |
secondColor | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
fillColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
Change the line into a histogram.
- PlotHistogram(lineGuid, secondColor, [ fillRaisingBars ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuid | String | True | Plot |
secondColor | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
fillRaisingBars | Boolean | False | True, False |
Takes care of the plotting side of a MACD (like) calculation and chart.
- PlotHistogramSignals(chartIndex, name, histogram, [ shortSignal ], [ longSignal ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
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 |
Draws a horizontal zone on the chart.
- PlotHorizontalLine(chartId, name, color, value, [ lineDecoration ], [ side ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
name | String | True | - |
color | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
value | Number | True | Input, Number, SessionGet |
lineDecoration | Enum | False | Solid, Dashed, Dotted |
side | Enum | False | RightAxis, LeftAxis |
Draws a horizontal line on the chart.
- PlotHorizontalZone(chartId, name, color, start, end, [ side ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
name | String | True | - |
color | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
start | Number | True | Input, Number, SessionGet |
end | Number | True | Input, Number, SessionGet |
side | Enum | False | RightAxis, LeftAxis |
Plots the line with a buy and sell zone on the chart.
- PlotLineBuySellZone(chartIndex, name, source, start, end)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
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 |
Plots a pivot cross above or below the chart when detected.
- PlotPivot(leftStrength, rightStrength)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
leftStrength | Number | True | Input, Number, SessionGet |
rightStrength | Number | True | Input, Number, SessionGet |
Creates a price plot. Candlestick by default.
- PlotPrice(chartId, market, [ interval ], [ style ], [ upColor ], [ upFill ], [ downColor ], [ downFill ], [ markColor ], [ markFill ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
market | String | True | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
interval | Number | False | InputInterval, Number, CurrentInterval |
style | Enum | False | Candlestick, CandlestickHLC, CloseLine, HLC, OHLC, Mountain, Line, HeikinAshi, Spread, SpreadCandle |
upColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
upFill | Boolean | False | True, False |
downColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
downFill | Boolean | False | True, False |
markColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
markFill | Boolean | False | True, False |
Draws a shape above the candle or first line on the chart.
- PlotShape([ chartId ], [ shape ], [ color ], [ size ], [ aboveCandle ], [ text ], [ textColor ], [ offset ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | False | - |
shape | Enum | False | ShapeAdd, ShapeCircle, ShapeCross, ShapeDiamond, ShapeSquare, ShapeTriangleDown, ShapeTriangleUp, ShapeText |
color | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
size | Number | False | - |
aboveCandle | Boolean | False | True, False |
text | String | False | Text, Input, SessionGet, Load |
textColor | String | False | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
offset | Number | False | Input, Number, SessionGet |
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
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
color | String | True | Aqua, Black, Blue, Cyan, DarkGray, DarkGreen, Fuchsia, Gold, Gray, Green, Maroon, Olive, Orange, Purple, Red, SkyBlue, Teal, White, Yellow, ChangeColorOpacity |
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
Parameter Name | Parameter Type | Required | Suggested |
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 |
Creates a stacked area chart from a line guid collection.
- PlotStackedArea(lineGuids)
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
lineGuids | Dynamic | True | Plot |
Draws a vertical line on the chart.
- PlotVerticalLine(chartId, name, color, unix, [ lineDecoration ])
Return Type: Void
Parameter Name | Parameter Type | Required | Suggested |
chartId | Number | True | - |
name | String | True |