通达信股市一根筋副图公式
小房子出现买入,红线断卖出!一根筋就这么简单
A:=(L+H+C*2)/4;
MA5:=EMA(A,5),COLORWHITE,LINETHICK1,DOTLINE;
MA13:=EMA(A,13),COLORBLUE,LINETHICK1,DOTLINE;
MA24:=MA(CLOSE,24),COLORMAGENTA,LINETHICK1,DOTLINE;
A2:=EMA(A,24),COLORLIBLUE,LINETHICK1;
A1X:=(MA5-REF(MA5,1))/REF(MA5,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
买入持股:IF(A1X>=0,MA13,DRAWNULL),COLORRED,LINETHICK2;
看多:=IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK1,DOTLINE;
逃顶:=IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORBLUE,LINETHICK1,DOTLINE;
DRAWICON((A1X>=0 && REF(A1X,1)<0),MA13,22);{首发};