VAR1:=REF(CLOSE,2);
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
TT:=3*Q3-2*Q4,COLORWHITE,LINETHICK2;
YY:=EMA(Q3, 3),COLORRED;
AA:=MA(YY,10);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MAC:=DIF
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
JJ:= SMA(VAR12,3,1),COLORGREEN,LINETHICK2;
KK:CROSS(TT,JJ) AND MAC AND C MA(C,60);