选股公式如下:
XG: LONGCROSS(C,(EMA(CLOSE,30)+EMA(CLOSE,72))/2,5); {第一种上穿:连续N天没能有效突破,今天上穿收盘站上该线}
XG:CROSS(C, (EMA(CLOSE,30)+EMA(CLOSE,72))/2); {第二种上穿:今天上穿收盘站上该线,不管前期是否有上穿过}
预主图中预警公式如下:
DRAWICON(LONGCROSS(C,(EMA(CLOSE,30)+EMA(CLOSE,72))/2,5),L*0.95,1); {注解同上}
DRAWICON(CROSS(C, (EMA(CLOSE,30)+EMA(CLOSE,72))/2),L*0.95,1); {注解同上}
两种方式,至于使用哪种进行判断,你自选决定;