BACKGROUNDCOLOR
DRAWARROWGraphical instruction to draw an horizontal arrow pointing to the right side of the chart.
Syntax:
|
1 |
DRAWARROW(x1,y1) COLOURED(R,V,B,a) |
where “x1” is the Barindex and “y1” the price or the vertical axis value.
DRAWARROWDOWNDraw a downside arrow on chart on x,y coordinate.
Syntax:
|
1 |
DRAWARROWDOWN(x1,y1) COLOURED(R,V,B,a) |
Coloured is optional.
DRAWARROWUPDraw an upside arrow on chart on x,y coordinate.
Syntax:
|
1 |
DRAWARROWUP(x1,y1) COLOURED(R,V,B,a) |
Coloured is optional.
DRAWBARCHARTDraw custom OHLC barchart.
Syntax:
|
1 |
DRAWBARCHART(open,high,low,close) COLOURED(R,G,B) BORDERCOLOR(R,G,B) |
The open, high, low and close value can be set by any custom variables.
Coloured and Bordercolor instructions are optional, when not defined the colors will be the default price one.
DRAWCANDLEDraw custom OHLC candlestick.
Syntax:
|
1 |
DRAWCANDLE(open,high,low,close) COLOURED(R,G,B) BORDERCOLOR(R,G,B) |
The open, high, low and close value can be set by any custom variables.
Coloured and Bordercolor instructions are optional, when not defined the colors will be the default price one.
DRAWELLIPSEDraw an ellipse on chart with 2 set of x,y coordinates.
Syntax:
|
1 |
DRAWELLIPSE(x1,y1,x2,y2) COLOURED(R,V,B,a) |
Coloured is optional.
DRAWHLINEDraw an horizontal line on chart, with y coordinate.
Syntax:
|
1 |
DRAWHLINE(y1) COLOURED(R,V,B,a) |
Coloured is optional.
DRAWLINEDraw a line with extension, between 2 x,y coordinates on chart.
Syntax:
|
1 |
DRAWLINE(x1,y1,x2,y2) COLOURED(R,V,B,a) |
Coloured is optional.
DrawOnLastBarOnlyDraw a graphical object only on the last bar (actual candlestick).
Syntax:
|
1 |
DefParam DrawOnLastBarOnly = true |
Instruction must be used with DefParam at the beginning of the code.
As for code optimization purpose, it is obvious that this instruction may be use with CalculateOnLastBars.