文章预览
与主图指标全线出击配合使用,效果好。 A0:=(L+H+C*2)/4; A1:EMA(A0,14)COLORBLUE,LINETHICK2; A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 出击:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK2; 逃遁:IF(A1X < 0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORGREEN,LINETHICK2; 铁:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK2; 律:IF(A1X < 0 AND A2X < 0,A1,DRAWNULL)COLORGREEN,LINETHICK2; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF; STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC; STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF; STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33; STICKLINE(CROSS(0,A1X),C,O,3,0),COLOR00CC00; STICKLINE(CROSS(0,A1X),C,O,1,0),COLOR66FF00; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED; DEA:=EMA(DIFF,9),COLORYELLOW; MACD:=2*(DIFF-DEA),COLORSTICK; 周DIF:="MACD.DIF#WEEK"(12,26,9); 周DEA:="M
………………………………