中轨 :MA(CLOSE,20),COLORWHITE;
上上轨:中轨 + 2*STD(CLOSE,20),COLORYELLOW;
上轨:中轨 + 1*STD(CLOSE,20),COLORRED;
下轨:中轨 - 1*STD(CLOSE,20),COLOR00FF00;
下下轨:中轨 - 2*STD(CLOSE,20),COLORFF00FF;
{添加的涨停柱红涨停兰跌停代码,不用可除去}
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR0000FF;
STICKLINE(涨停,H,L,0,0),COLOR0000FF;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;