牛:COSTEX(ISLASTBAR+453,ISLASTBAR),COLORYELLOW;
启:MA(牛,10),COLORMAGENTA;
动:MA(牛,35),COLORCYAN;
{判断倒数第6天涨停}
C_7:=REF(C,7);
C_6:=REF(C,6);
YU_S:=MOD(C_7*100,10);
JIN_W:=IF(YU_S>4,1,0);
JUDGE_ZT:=C_6=C_7+INTPART(C_7*10)/100+JIN_W/100;
{判断当天收盘价高于5日均线}
JUDGE_2:=C>MA(C,5);
{画线}
DRAWTEXT(JUDGE_ZT*JUDGE_2,L,'神奇7日'),COLORWHITE;
A:=IF(HHV(H,100)=H,HHV(H,100)/1.24,0);
B:=IF(HHV(H,100)=H,HHV(H,100)/1.46,0);
D:=IF(HHV(H,100)=H,HHV(H,100)/1.66,0);
E:=IF(HHV(H,100)=H,HHV(H,100)/1.86,0);
F:=IF(HHV(H,100)=H,HHV(H,100)/2.18,0);
Z:=IF(HHV(H,100)=H,HHV(H,100)/2.46,0);
A1:=IF(LLV(L,100)=L,LLV(L,100)*1.066,0);
B1:=IF(LLV(L,100)=L,LLV(L,100)*1.18,0);
D1:=IF(LLV(L,100)=L,LLV(L,100)*1.32,0);
E1:=IF(LLV(L,100)=L,LLV(L,100)*1.44,0);
F1:=IF(LLV(L,100)=L,LLV(L,100)*1.75,0);
Z1:=IF(LLV(L,100)=L,LLV(L,100)*1.95,0);
S1:=IF(LLV(L,100)=L,LLV(L,100)*2.28,0);
K1:=IF(LLV(L,100)=L,LLV(L,100)*2.88,0);
R1:=IF(LLV(L,100)=L,LLV(L,100)*3.28,0);
DRAWLINE(CURRBARSCOUNT=CONST(BArslAST(HHV(H,100)=H))+1,A,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(A,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,B,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(B,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,D,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(D,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,E,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(E,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,F,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(F,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,Z,REF(CURRBARSCOUNT=CONST(BARSLAST(HHV(H,100)=H))+1,1),REF(Z,1),1);
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,A1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(A1,1),1),DOTLINE,COLORGREEN;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,B1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(B1,1),1),DOTLINE,COLORRED;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,D1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(D1,1),1),DOTLINE,COLORBLUE;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,E1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(E1,1),1),DOTLINE,COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,F1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(F1,1),1),DOTLINE,COLORWHITE;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,Z1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(Z1,1),1),DOTLINE,COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,S1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(S1,1),1),DOTLINE,COLORCYAN;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,K1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(K1,1),1),DOTLINE,COLORBROWN;
DRAWLINE(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,R1,REF(CURRBARSCOUNT=CONST(BARSLAST(LLV(L,100)=L))+1,1),REF(R1,1),1),DOTLINE,COLORLIBLUE;