我成马大哈了。补上K线后的代码:
DRAWGBK(c>0,STRIP(RGB(0,66,155),RGB(0,66,155),0));
UPPERL:= MA(HIGH,30)*(1+15/100);
LOWERL:= MA(LOW,30)*(1-15/100);
FILLRGN(UPPERL,LOWERL,1),color000000,layer7;
MID : MA(CLOSE,26),colorwhite;
UPPER: MID + 2*STD(CLOSE,26),colorwhite;
LOWER: MID - 2*STD(CLOSE,26),colorwhite;
{画K线}
{深红}
STICKLINE(C>o,h,l,0.5,0),COLORaa00ff;
STICKLINE(C>o,C,O,8,0),COLOR0000ff;
STICKLINE(C>o,C,O,6,0),COLOR0000ff;
STICKLINE(C>o,C,O,5,0),COLOR1111ff;
STICKLINE(C>o,C,O,4,0),COLOR2222ff;
STICKLINE(C>o,C,O,3,0),COLOR2222ff;
STICKLINE(C>o,C,O,2,0),COLOR5555ff;
STICKLINE(C>o,C,O,1,0),COLOR9999ff;
{亮灰}
STICKLINE(C<=o,H,L,0.1,0),COLORWHITE;
STICKLINE(C<=o,C,O,8,0),COLOR555555;
STICKLINE(C<=o,C,O,6,0),COLOR777777;
STICKLINE(C<=o,C,O,5,0),COLOR999999;
STICKLINE(C<=o,C,O,4,0),COLORAAAAAA;
STICKLINE(C<=o,C,O,3,0),COLORBBBBBB;
STICKLINE(C<=o,C,O,2,0),COLORcccccc;
STICKLINE(C<=o,C,O,1,0),COLORdddddd;
STICKLINE(C<=o,C,O,0.1,0),COLOReeeeee; |