FF:=EMA(C,12)-EMA(C,26);
FF1:=EMA(FF,9);
QQ:=(FF-FF1)*2;
R1:=MA(C,233);
A1:=V/REF(V,1)>=2 AND REF(V,1)/REF(V,2)>=2 AND C>0 AND C>REF(C,1) AND QQ/REF(QQ,1)>1.5 AND C>R1,COLORMAGENTA;
DRAWTEXT(A1,8,'牛起'),COLORRED;
STICKLINE(A1, 0,3, 7,-1),COLORLIMAGENTA;
STICKLINE(A1, 1.5,3, 3, 0),COLORYELLOW;
STICKLINE(A1, 0,1.5, 3, 0),COLORRED;
STICKLINE(A1, 3,10,0, -1),COLORLIMAGENTA;
{牛起主图}
{行业 板块 地区 概念}
DRAWTEXT_FIX(ISLASTBAR,0.5,0.92,0,HYBLOCK),COLORYELLOW;{在屏幕左上角显示所属行业板块}
DRAWTEXT_FIX(ISLASTBAR,0.55,0.92,0,DYBLOCK),COLORYELLOW;{在屏幕左上角显示所属地域板块}
DRAWTEXT_FIX(ISLASTBAR,0.6,0.92,0,GNBLOCK),COLORYELLOW;{在屏幕左上角显示所属概念板块}
DRAWTEXT_FIX(ISLASTBAR,0.5,0.97,0,FGBLOCK),COLORMAGENTA;{在屏幕左上角显示所属风格}
短A:MA(C,3),COLORYELLOW;
中期B:MA(C,21),COLORMAGENTA,LINETHICK2;
涨幅:=(C-REF(C,1))/REF(C,1)*100,NODRAW;
RC1:=REF(C,1);
ZT:=C/REF(C,1)>1.099 AND H>L;
CS:=IF(C>=1,10000,100000);
C涨停10:=1.10*RC1-49/CS;{考虑到4舍5入}
C涨停5 :=1.05*RC1-49/CS;
C跌停10:=0.90*RC1+51/CS;
C跌停5 :=0.95*RC1+51/CS;
ST:=NAMELIKE('S') OR NAMELIKE('*S');
涨停:= IF(ST, C>=C涨停5, C>=C涨停10);
跌停:= IF(ST, C<=C跌停5, C<=C跌停10);
盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10),;
盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10);
STICKLINE(盘中涨停,H,MAX(C,O),0,0),COLORYELLOW;{涨停后回落}
STICKLINE(盘中跌停,L,MIN(C,O),0,0),COLORLICYAN;{跌停后回升};
STICKLINE(涨停,O,C,1,0),COLORYELLOW;
STICKLINE(跌停,O,C,1,0),COLORLICYAN;