DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; var1:=MACD>=-0.05 AND MACD<=0.05; var2:EVERY(var1,20); var3:REF(var2,1)=1 AND var2=0;