指示允许自定义画线颜色,语法是将颜色值加于输出线后.其中的颜色定义如下(共16种):
COLORBLACK 黑 色
COLORBLUE 蓝 色
COLORGREEN 绿 色
COLORCYAN 青 色
COLORYELLOW 黄 色
COLORWHITE 白 色
COLORBROWN 棕 色
0COLORRED 红 色
COLORMAGENTA 洋 红 色
COLORLIGHTGRAY 淡 灰 色
COLORDARKGRAY 深 灰 色
COLORLIGHTBLUE 淡 蓝 色
COLORLIGHTGREEN 淡 绿 色
COLORLIGHTCYAN 淡 青 色
COLORLIGHTRED 淡 红 色
COLORLIGHTMAGENTA 淡洋红色
大智慧立体k线
stickline(C>O,H,L,1,0),Color0000ff;
stickline(C<O,H,L,1,0),Color00ff00;
stickline(C>O,C,O,8,0),Color000055;
stickline(C>O,C,O,7,0),Color000077;
stickline(C>O,C,O,5,0),Color000099;
stickline(C>O,C,O,4,0),Color0000bb;
stickline(C>O,C,O,2,0),Color6500dd;
stickline(C>O,C,O,1,0),Color9C00ff;
stickline(C<O,C,O,8,0),Color005500;
stickline(C<O,C,O,7,0),Color007700;
stickline(C<O,C,O,5,0),Color009900;
stickline(C<O,C,O,4,0),Color00bb00;
stickline(C<O,C,O,2,0),Color65dd00;
stickline(C<O,C,O,1,0),Color9Cff00;
通达信立体k线
STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
STICKLINE(C>=O,OPEN,CLOSE,2.7,0 ),COLOR000066;
STICKLINE(C>=O ,OPEN,CLOSE,2.1,0 ),COLOR000099;
STICKLINE(C>=O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
STICKLINE(C>=O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
STICKLINE(C>=O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
STICKLINE(C<O ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(C<O ,OPEN,CLOSE,3.1,0 ),COLOR990000;
STICKLINE(CLOSE<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE<O ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
STICKLINE(CLOSE<O ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
STICKLINE(CLOSE<O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
飞狐立体K线
多空:=OPEN,colorff00ff;
STICKLINE(CLOSE>多空,HIGH,LOW,0.5,0),colorred;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,8,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,7,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,6,0),color1020aa;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,5,0),color1020bb;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,4,0),color1020cc;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,3,0),color1020dd;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,2,0),color1020ee;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,1,0),color1020ff;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,8,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,7,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,6,0),color1020aa;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,5,0),color1020bb;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,4,0),color1020cc;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,3,0),color1020dd;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,2,0),color1020ee;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,1,0),color1020ff;
STICKLINE(CLOSE<多空,HIGH,LOW,0.5,0),colorff8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorff7700;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,7,0),colorff8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,6,0),colorff9900;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,5,0),colorffaa00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,4,0),colorffbb00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,3,0),colorffcc00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,2,0),colorffdd00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,1,0),colorffee00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,8,0),colorff7700;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,7,0),colorff8800;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,6,0),colorff9900;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,5,0),colorffaa00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,4,0),colorffbb00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,3,0),colorffcc00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,2,0),colorffdd00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,1,0),colorffee00;
STICKLINE(CLOSE=多空,OPEN,CLOSE,8,0),colorcyan;
STICKLINE(CLOSE=多空,HIGH,LOW,0.5,0),colorcyan;