| Drawing Descriptors
| stick |
draw sticks starting from 0. |
close - ref(close, 1), stick; |
 |
colorstick |
draw sticks starting from 0, using two different colors based on if the value is greater or less than 0. |
close - ref(close, 1), colorstick; |
 |
| linestick |
draw both lines and sticks. |
close - ref(close, 1), linestick; |
 |
| volstick |
draw volume bars. |
v, volstick; |
 |
crossdot
circledot
pointdot
|
crossdot: draw crosses;
circledot: draw small circles;
pointdot: draw dots. |
a:ma(c,20), crossdot;
b:ma(c,30), circledot;
d:ma(c,60), pointdot, linethick3;
ma(c,90),crossdot;
ma(c,90),circledot,colormagenta; |
 |
| align |
parameter: 0-5.
specify the position to draw.
align0: draw at the desired position;
align1: slightly below the position;
align2: slightly above the position;
align3: at the center of the chart.
align4: at the top of the chart.
align5: at the bottom of the chart. |
cond := date=1051024; # if it is oct 24, 2005
drawicon(cond,c,10),align0;
drawicon(cond,c,11),align1;
drawicon(cond,c,12),align2;
drawicon(cond,c,3),align3;
drawicon(cond,c,4),align4;
drawicon(cond,c,5),align5; |
 |
| linethick |
parameter: 0-7.
linethick0 means not to draw the line, however, the value will still be displayed on the chart. |
1, linethick1, colorred;
2, linethick2, colorred;
3, linethick3, colorred;
4, linethick4, colorred;
5, linethick5, colorred;
6, linethick6, colorred;
7, linethick7, colorred;
8, linethick0, colorred; |
 |
| linestyle |
parameter: 0-2.
linestyle0: solid line;
linestyle1: dashed line;
linestyle2: dotted line. |
polyline(1, 0), linestyle0, colorred;
polyline(1, 1), linestyle1, colorred;
polyline(1, 2), linestyle2, colorred; |
 |
| color |
parameter: 000000--ffffff.
for example colorff9923.
the following color name are predefined and can be used directly:
colorblack
colorred
colorgreen
colorblue
colorwhite
colorgray
coloryellow
colorcyan
colormagenta
colorbrown
colorlightbrown
|
ma1:ma(close,5), colorff9999;
ma4:ma(close,30), colorgreen;
ma5:ma(close,90), pointdot, colorred; |
 |
| transparency |
parameter: 0-9
define the color transparency, can only be applied to function fillrgn(). E.g.,
transparency0: no color transparency;
transparency9: 90% color transparency. |
n := 20; p := 2;
l_mid := ma(close, n);
l_upper := l_mid+p*std(close, n);
l_lower := l_mid-p*std(close, n);
fillrgn(1, high, low), colorred, transparency8;
fillrgn(1, l_upper, l_lower), color6464fa, transparency9;
polyline(1, l_mid), linestyle2, color9494fa;
polyline(1, l_upper), color9494fa;
polyline(1, l_lower), color9494fa; |
 |
|