MA5:MA(C,5),COLORWHITE,LINETHICK1;
MA18:MA(C,18),COLORRED,LINETHICK1;
MA60:MA(C,60),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORYELLOW,LINETHICK1;
VAR1:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR2:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
A:=(3*C+L+O+H)/6;
VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(VAR4,13);
賣:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
DRAWTEXT(FILTER(賣=1,1),HIGH*1.02,'賣'),COLORGREEN;
買:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(買=1,5),LOW-0.03,'買'),COLORRED;
加倉(cāng):=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加倉(cāng),0) OR CROSS(CLOSE,CB)) AND 買=1,3),LOW-0.03,'加'),COLORWHITE;
跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);
DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;
DRAWTEXT(CROSS(MA5,MA18),MA5,'▲'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA5,MA60),MA5,'★'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA5,MA120),MA5,'■'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA18,MA60),MA18,'●'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA18,MA120),MA18,'◎'),LINETHICK2, COLORYELLOW;
MA5:MA(C,5),COLORWHITE,LINETHICK1; MA18:MA(C,18),COLORRED,LINETHICK1;
MA60:MA(C,60),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORYELLOW,LINETHICK1;
VAR1:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR2:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
A:=(3*C+L+O+H)/6;
VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(VAR4,13);
賣:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
DRAWTEXT(FILTER(賣=1,1),HIGH*1.02,'賣'),COLORGREEN;
買:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(買=1,5),LOW-0.03,'買'),COLORRED;
加倉(cāng):=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加倉(cāng),0) OR CROSS(CLOSE,CB)) AND 買=1,3),LOW-0.03,'加'),COLORWHITE;
跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);
DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;
DRAWTEXT(CROSS(MA5,MA18),MA5,'▲'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA5,MA60),MA5,'★'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA5,MA120),MA5,'■'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA18,MA60),MA18,'●'),LINETHICK2, COLORYELLOW;
DRAWTEXT(CROSS(MA18,MA120),MA18,'◎'),LINETHICK2, COLORYELLOW;
|