Graphical 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.
Draw a downside arrow on chart on x,y coordinate.
Syntax:
1 |
DRAWARROWDOWN(x1,y1) COLOURED(R,V,B,a) |
Coloured is optional.
Draw an upside arrow on chart on x,y coordinate.
Syntax:
1 |
DRAWARROWUP(x1,y1) COLOURED(R,V,B,a) |
Coloured is optional.
Draw 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.
Draw 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.
Draw 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.
Draw an horizontal line on chart, with y coordinate.
Syntax:
1 |
DRAWHLINE(y1) COLOURED(R,V,B,a) |
Coloured is optional.
Draw 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.
Draw 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.