波段起始点:蓝线上穿黄线金叉,同时蓝线下方出现“买”字;波段行情终止点:股价触及天际线并发出“卖”字样,无需蓝线下穿黄线死叉。
VAR1:=MA(CLOSE,30);
水平面: MA(CLOSE,60), CIRCLEDOT,LINETHICK2;
天际: VAR1+2*STD(CLOSE,60),LINETHICK2;
VAR2:=CROSS(MA(CLOSE,5),MA(CLOSE,30));
DRAWTEXT(VAR2 AND CLOSE<MA(CLOSE,60),LOW-LOW*0.02,'←全仓买 '),coloryellow;
DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'←买') , coloryellow,LINETHICK1;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.008,'←卖') , colorgreen,LINETHICK1;
卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick3;