VAR1:=MA(C,0);
VAR2:=MA(MA(CLOSE,3),3);
VAR3:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);
VAR4:=IF(CROSS(VAR3,REF(VAR3+0.01,1)) AND LLV(VAR3,2)=LLV(VAR3,8) AND BETWEEN(VAR3,20,60),1,0);
VAR5:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));
VAR6:=STRCAT(HYBLOCK,' ');
VAR7:=STRCAT(VAR6,DYBLOCK);
VAR8:=STRCAT(VAR7,' ');
VAR9:=(3*C+L+O+H)/6;
VAR10:=(20*VAR9+19*REF(VAR9,1)+18*REF(VAR9,2)+17*REF(VAR9,3)+16*REF(VAR9,4)+15*REF(VAR9,5)+14*REF(VAR9,6)+13*REF(VAR9,7)+12*REF(VAR9,8)+11*REF(VAR9,9)+10*REF(VAR9,10)+9*REF(VAR9,11)+8*REF(VAR9,12)+7*REF(VAR9,13)+6*REF(VAR9,14)+5*REF(VAR9,15)+4*REF(VAR9,16)+3*REF(VAR9,17)+2*REF(VAR9,18)+REF(VAR9,20))/210;
VAR11:=C-REF(C,1);
VAR12:=100*EMA(EMA(VAR11,6),6)/EMA(EMA(ABS(VAR11),6),6);
VAR13:=EMA(VAR10,13);
VAR14:=IF(HHV(VAR12,2)=HHV(VAR12,7) AND COUNT(VAR12>50,2) AND CROSS(MA(VAR12,2),VAR12),1,0);
VAR15:=IF(LLV(VAR12,2)=LLV(VAR12,7) AND COUNT(VAR12<0,2) AND CROSS(VAR12,MA(VAR12,2)),1,0);
VAR16:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VAR17:=SMA(VAR16,3,1);
VAR18:=SMA(VAR17,3,1);
VAR19:=3*VAR17-2*VAR18;
VAR20:=HHV(VAR19,2)=HHV(VAR19,8) AND VAR19>80;
VAR21:=IF(CROSS(REF(VAR19-0.01,1),VAR19) AND REF(VAR20,1),1,0);
VAR27:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR28:=MA(C,18);
DRAWGBK(C>0, RGB(0,10,10),RGB(88,0,0),0,'11',0);
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR656500;
STICKLINE(C<O,C,O,2.5,0),COLOR757500;
STICKLINE(C<O,C,O,2,0),COLOR858500;
STICKLINE(C<O,C,O,1.5,0),COLOR959500;
STICKLINE(C<O,C,O,1,0),COLORA5A500;
STICKLINE(C<O,C,O,0.5,0),COLORB5B500;
STICKLINE(C<O,H,L,0,0),COLORC5C500;
趋势:MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
趋势2:IF(趋势>=VAR2,VAR2,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(VAR4,L*0.97,23);
DRAWICON(CROSS(VAR5,3),L*0.97,11);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(VAR8,GNBLOCK)),COLORRED;
DRAWTEXT(FILTER(VAR14=1,1),HIGH*1.02,'*警'),COLORGREEN;
DRAWTEXT(FILTER(VAR15=1,5),LOW-0.03,'*关注'),COLORMAGENTA;
DRAWTEXT(VAR21 AND VAR14!=1,HIGH*1.02,'*警'),COLORLIGRAY;
DRAWTEXT(FILTER((CROSS(VAR27,0) OR CROSS(CLOSE,VAR13)) AND VAR15!=1,3),LOW-0.03,'*加仓'),COLORRED;
DRAWTEXT(VAR28>=REF(VAR28,3) AND CROSS(CLOSE,VAR28),LOW*0.96,'*跟'),COLORYELLOW;