VAR1:=(CLOSE-LLV(LOW,9));
VAR2:=(HHV(HIGH,9)-LLV(LOW,9));
VAR3:=VAR1/VAR2*100;
VAR4:=SMA(VAR3,2,1);
VAR5:=SMA(VAR4,2,1);
VAR6:=3*VAR4-2*VAR5;
VAR7:=crOSS(VAR6,0);
VAR8:=(EMA(CLOSE,15)-EMA(CLOSE,26));
VAR16:=EMA(VAR8,5);
macd:=2*(VAR8-VAR16);
VAR19:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
XG:VAR7 AND VAR19;