VAR1:=ma(KDJ.K#MONTH(9,3,3),21);
VAR2:=MA(KDJ.D#MONTH(9,3,3),21);
VAR3:=MA(KDJ.J#MONTH(9,3,3),21);
VAR4:=MA(KDJ.K#WEEK(9,3,3),5);
VAR5:=MA(KDJ.D#WEEK(9,3,3),5);
VAR6:=MA(KDJ.J#WEEK(9,3,3),5);
VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VAR10:=3*VAR8-2*VAR9;
G:VAR3>REF(VAR3,1) AND VAR6>REF(VAR6,1) AND VAR10>REF(VAR10,1) AND VAR10<40;