M1:MA(C,5);
M2:MA(C,10);
水平线:IF(CROSS(M2,M1),M2,REF(M2,BARSLAST(CROSS(M2,M1)))),LINETHICK2,COLORGREEN;
XG:=CROSS(M1,水平线) AND REF(MA(C,5),1) 水平线 AND MA(C,5)
DRAWTEXT(XG,H+0.05,'★突破'),COLORYELLOW;
{
选股公式:
M1:=MA(C,5);
M2:=MA(C,10);
水平线:=IF(CROSS(M2,M1),M2,REF(M2,BARSLAST(CROSS(M2,M1))));
XG:CROSS(M1,水平线) AND REF(MA(C,5),1) 水平线 AND MA(C,5)