MMA5:=MA(CLOSE,5);
MMA20:=MA(CLOSE,20);
MACD:="MACD.MACD" ;
W1:=STICKLINE(MACD>0,MACD,0,3,1) ;
W2:=STICKLINE(MACD<0,MACD,0,3,1) ;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VAR1:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);
V2:=(HHV(C,20)-LLV(C,20))/C*100;
MV2:=MA((HHV(C,20)-LLV(C,20))/C*100,6);
HH:=(H-C)/(C-O)>1.1;
XG1:= LLV(VAR1,2)=LLV(VAR1,7) AND COUNT(VAR1<0,2) AND CROSS(VAR1,MA(VAR1,2));
JJ:="KDJ.J";
TJ:=COUNT(JJ<-8,4)>=1 AND JJ>REF(JJ,1) AND REF(JJ,1)>REF(JJ,2) ;
XG:XG1 AND TJ;