同花顺蚂蚁上树公式 主要用于股票初涨阶段寻的,以便后续跟踪操作
主要用于股票初涨阶段寻的,以便后续跟踪操作。
源码:
EMA13:=EMA(C,13);
EMA17:=EMA(C,17);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
EMA120:=EMA(C,120);
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2)
OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4)
OR REF(C,5)<REF(EMA55,5));
BR1 AND BR2 AND BR3;