HGW:=DYNAINFO(3)*1,COLOR0000FF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100+50/100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KK:=HGW+K/100;
DD:=HGW+D/100;
JJ:=HGW+J/100;
EE:=50/100+HGW;
AAA:=JJ>=KK AND KK>=EE;
BBB:=JJ>=KK AND KK< EE;
DDD:=JJ< KK AND KK>=EE;
EEE:=JJ< KK AND KK< EE;
ACB1:=C-REF(C,1);
ACB2:=100*EMA(EMA(ACB1,6),6)/EMA(EMA(Abs(ACB1),6),6);
ACB3:=IF(LLV(ACB2,2)=LLV(ACB2,7) AND COUNT(ACB2< 0,2) AND crOSS(ACB2,MA(ACB2,2)),1,0);
ACB4:=FILTER(ACB3=1,5);
红色:=BARSLASTCOUNT(AAA)=1;
XG:红色;