EMA13:=EMA(C,13);
EMA21:=EMA(C,21);
EMA34:=EMA(C,34);
U1:=EMA13>EMA21 AND EMA21>EMA34;
U2:=BArslAST(C<EMA13) OR BARSLAST(C<EMA21);
U3:=C>EMA(C,250) AND U1 AND U2 AND EMA13>REF(EMA13,1) AND crOSS(C,EMA13);
U4:=C>EMA(C,250) AND U1 AND U2 AND EMA21>REF(EMA21,1) AND CROSS(C,EMA21);
牛回头:U3 OR U4;