M:=5;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,coloryellow;
HHJSJDC:MA(HHJSJDB,5),colorred;
ABC:SAR(4,M,20),colorlimagenta,NODRAW;
DRAWICON(crOSS(C,ABC),L-0.1,7);
T1:=C>REF(C,1) AND REF(C,1)
A1:=REF(COUNT(T1,4)>=1,1);
A2:=REF(C,1)REF(C,1);
A3:=MA(C,20)>REF(MA(C,20),1);
ZZ:=A1 AND A2;
DRAWTEXT(ZZ,L*0.998,'双') ,colorlimagenta;
上升风险线:MA(C,5)*1.18,colorligray;