[转载]经典七彩MACD
[attach]4610[/attach][code]
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),colorgreen;
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
MACD1:=2*(DIFF-DEA);
MACD2:=wma(MACD1,3);
STICKLINE(MACD1>MACD2 and macd1>0,0,MACD1,1,0),colorred;
STICKLINE(MACD1>MACD2 and macd1<0,0,MACD1,1,0),colorwhite;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCYAN;
PARTLINE(DIFF,DIFF>DEA),COLORff11cc,LINETHICK1;
PARTLINE(DIFF,DIFF>DEA AND DIFF<0),COLORred,LINETHICK1;
[/code]
页:
[1]