X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*10;
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
HYW:= VAR3;
WEI:= VAR4;
AAA:=(3*C+H+L+O)/6;
VVH1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VVH2:=(HHV(VVH1,5)+HHV(VVH1,10)+HHV(VVH1,20))/3;
VVH3:=(LLV(VVH1,5)+LLV(VVH1,10)+LLV(VVH1,20))/3;
VVH4:=(HHV(VVH2,5)+HHV(VVH2,10)+HHV(VVH2,20))/3;
VVH5:=(LLV(VVH3,5)+LLV(VVH3,10)+LLV(VVH3,20))/3;
VVH6:=(LLV(VVH1,2)+LLV(VVH1,4)+LLV(VVH1,6))/3;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
LX_1:=HYW>WEI;
LX_2:=2*(V2-V3)*5.5>=0;
LX_3:=X2>0;
LX_4:=VVH1>VVH6;
LX_5:=LX_1+LX_2+LX_3+LX_4;
四色:=LX_5=4 AND REF(LX_5!=4,1),COLORRED;
上指:四色;