EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
W1:=EMA13>EMA21 AND EMA21>EMA34;
W2:=BARSLAST(C<REF(C,1))=W1;
W3:=W1 AND W2 AND EMA13>REF(EMA13,1) AND CROSS(C,EMA13);
W4:=W1 AND W2 AND EMA21>REF(EMA21,1) AND CROSS(C,EMA21);
W3 OR W4;