MA1:=MA(CLOSE,10);
MA2:=MA(CLOSE,20);
MA3:=MA(CLOSE,30);
MA4:=MA(CLOSE,60);
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
UU:=(1-7/100)*DD,COLORRED;
EE1:=CROSS(MA2,UU);
EE:REF(EE1,1) AND V<REF(V,1),COLORRED;