G1:=8;
牛气冲天:=0;
牛:IF(CLOSE>MA(CLOSE,5),牛气冲天+1,牛气冲天),COLORWHITE;
气:IF(CLOSE>MA(CLOSE,10),牛+1,牛),COLOR999999;
冲:IF(CLOSE>MA(CLOSE,20),气+1,气),COLOR00FFFF;
天:IF(CLOSE>MA(CLOSE,60),冲+1,冲),COLORFF00FF;
好:IF(MA(CLOSE,5)>MA(CLOSE,10),天+1,天),COLORFFAA00;
股:IF(MA(CLOSE,10)>MA(CLOSE,20),好+1,好),COLOR006AFF;
VAR1:IF(MA(CLOSE,20)>MA(CLOSE,60),股+1,股),COLOR0000FF;
DRAWBAND(VAR1,RGB(255,0,0),0,RGB(0,0,0));
DRAWBAND(股,RGB(255,125,0),0,RGB(0,0,0));
DRAWBAND(好,RGB(0,90,255),0,RGB(0,0,0));
DRAWBAND(天,RGB(0,255,0),0,RGB(0,0,0));
DRAWBAND(冲,RGB(255,0,255),0,RGB(0,0,0));
DRAWBAND(气,RGB(150,150,150),0,RGB(0,0,0));
DRAWBAND(牛,RGB(255,255,255),0,RGB(0,0,0));
VAR5:牛+气+冲+天+好+股+VAR1,NODRAW,COLORFF00FF;{取消等号}
G2:=(REF(VAR5,1)<=2 AND VAR5>=G1);
牛气:=IF(G2,1,0);
冲天:STICKLINE(牛气,0,6.8,1,0),COLOR00BAFF;
DRAWTEXT(牛气=1,6,'冲天');{标号用1位置取7.2};