自用MACD(副图,源码,贴图)介绍
自用MACD(副图,源码,贴图)
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,2,1),COLORGREEN;
趋势反转:IF(MACD>=0 AND MACD<REF(MACD,1),MACD,0),COLORGREEN,NODRAW;
STICKLINE(MACD<0,0,MACD,2,-1),COLORGRAY;
坚壁清野:IF(MACD<0,MACD,0),COLORGRAY,NODRAW;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1),0,MACD,2,1),COLORMAGENTA;
反弹需谨慎:IF(MACD<=0 AND MACD>REF(MACD,1),MACD,0),COLORMAGENTA,NODRAW;
STICKLINE(MACD>=0 AND MACD>REF(MACD,1),0,MACD,2,1),COLORRED;
上升趋势:IF(MACD>=0 AND MACD>REF(MACD,1),MACD,0),COLORRED,NODRAW;
获利:=WINNER(C)*100;
STICKLINE(获利>50 AND COST(85)<CLOSE AND MACD>0 AND MACD>=REF(MACD,1),MACD,0,1,0),COLORYELLOW;
成本突破:IF(获利>50 AND COST(85)<CLOSE AND MACD>0 AND MACD>=REF(MACD,1),MACD,0),COLORYELLOW,NODRAW;
gd16068