网友求助:
网1:EXPMEMA(CLOSE,6);
网2:MA(CLOSE,12),COLORYELLOW;
网3:MA(CLOSE,33),COLORFF00FF,LINETHICK3;
IF(网3<REF(网3,1),网3,DRAWNULL),COLOR00FF00,LINETHICK3;
要求 当6日线上穿12 33均线时33均线画洋红色,但股价在高位钝化是即6日均线掉头向下且下穿12均线时画绿色
解答如下:
网1:EMA(CLOSE,6);
网2:MA(CLOSE,12),COLORYELLOW;
网3:MA(CLOSE,33),COLORFF00FFwhite,LINETHICK3;
///IF(网3<REF(网3,1),网3,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(cross(网1,网2) or cross(网1,网1),网3,DRAWNULL),COLORMAGENTA,LINETHICK3; //同时上穿的概率不大,要改把or改and
IF(cross(网2,网1),网3,DRAWNULL),COLORgreen,LINETHICK3;