QS:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
PD:=SMA(QS,3,1);
RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);
DEA:=EMA(DIFF,6);
macd:=2*(DIFF-DEA);
ZD:=IF(K>D AND CCI>0 AND DIFF>DEA AND MacD>0,1,0);
LC:= REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
KVAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
KVAR2:=SMA(KVAR1,9,1)+100;
KVAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KVAR4:=SMA(KVAR3,3,1);
KVAR5:=SMA(KVAR4,3,1)+100;
KVAR6:=KVAR5-KVAR2;
QS1:=IF(KVAR6>45,KVAR6-45,0);
C<20 AND ZD=1 AND crOSS(QS,PD) AND QS1<10;