通达信公式启航线
A1:=(CLOSE-MA(CLOSE,250))/MA(CLOSE,250)*100;
N1:=BARSLAST(CROSS(CLOSE,MA(CLOSE,250)));
N2:=BARSLAST(CROSS(MA(CLOSE,250),CLOSE));
B1:=IF(N1<N2,N1+1,0);
C1:=HHV(A1,B1);
D1:=(CLOSE-REF(CLOSE,B1))/REF(CLOSE,B1)*100;
N3:=BARSLAST(CROSS(CLOSE,MA(CLOSE,20)));
N4:=BARSLAST(CROSS(MA(CLOSE,20),CLOSE));
AA:IF(N3<N4,N3+1,0);
BB:(CLOSE-REF(CLOSE,AA))/REF(CLOSE,AA)*100,COLORRED;
TDXSTEP100:DRAWTEXT(CROSS(BB,10) AND CLOSE/REF(CLOSE,1)>1.05,8,1),COLORRED;