王氏MACD+均线思路主图:MA8:EMA(CLOSE,8),COLORLIBLUE,LINETHICK1;MA25:EMA(CLOSE,25),COLORBLUE,LINETHICK1;MA55:EMA(CLOSE,55),COLORLICYAN,LINETHICK1;IF(EMA(C,8)>=REF(EMA(C,8),1),EMA(C,8),DRAWNULL),COLORRED;IF(EMA(C,25)>=REF(EMA(C,25),1),EMA(C,25),DRAWNULL),COLORRED;IF(EMA(C,55)>=REF(EMA(C,55),1),EMA(C,55),DRAWNULL),COLORRED;X3:=EMA(CLOSE,55);STICKLINE(((C >= X3) AND (C >= O)),H,L,0,1),COLOR0000AA;STICKLINE(((C >= X3) AND (C >= O)),O,C,3,0),COLOR0000AA;STICKLINE(((C >= X3) AND (C >= O)),O,C,2.3,0),COLOR0000CC;STICKLINE(((C >= X3) AND (C >= O)),O,C,1.8,0),COLOR0000FF;STICKLINE(((C >= X3) AND (C >= O)),O,C,1,0),COLORCC66FF;STICKLINE(((C >= X3) AND (C = X3) AND (C = X3) AND (C = X3) AND (C = X3) AND (C H1) OR (L>H1));T11:=T111 AND REF(T111,1)=0;
{顶背离与底背离}LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);顶背离:=CROSS(88,RSI);底背离:=CROSS(FF,MA15);
{彩色成交量柱线}VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,5),COLORRED;MAVOL2:MA(VOLUME,10),COLORLIGREEN;
STICKLINE(动力线>=3.2,0,VOL,3,0),COLOR238E23;STICKLINE(波底,0,VOL,3,0),COLORMAGENTA;DRAWTEXT(波底,VOL*0.8,'底'),COLORLIMAGENTA ;DRAWICON(波底,VOL*1.1,5)COLORMAGENTA;STICKLINE(牛,0,VOL,3,0),COLORRED;DRAWTEXT(牛,VOL*1.15,'牛'),COLORLIMAGENTA ;STICKLINE(突破,0,VOL,3,0),COLORBLUE;DRAWTEXT(突破,VOL*0.5,'突破'),COLORLIMAGENTA ;STICKLINE(破位,0,VOL,3,0),COLORBROWN;DRAWTEXT(破位,VOL*0.5,'破位')COLORCYAN;DRAWTEXT(底背离,VOL*0.5,'底背'),COLORRED;DRAWTEXT(顶背离,VOL*0.9,'顶背'),COLORBLUE;
这里面的均线也是指标,价格站上均线颜色变成红色,下破了还原
截图均线上MACD向上颜色
截图均线上MACD向下颜色
截图均线下MACD向上颜色
截图均线下MACD向下颜色
好股网(www.goodgupiao.com)提醒您:股市有风险,投资需谨慎。