【www.xxxnonstop.com--MACD】
通达信乖离连胜副图指标公式
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:(DIFF-DEA)15;
STICKLINE(MACD>=0ANDMACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0ANDMACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<=0ANDMACD>=REF(MACD,1),0,MACD,1,0),COLORFF00FF;
STICKLINE(MACD<=0ANDMACD<=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;
多转空:=((((LLV(MACD,4)>0)AND(MACDREF(MACD,2)))AND(REF(MACD,2)>REF(MACD,3)));
空转多:=((((HHV(MACD,4)<0)AND(MACD>REF(MACD,1)))AND(REF(MACD,1)100,COLORCYAN,LINETHICK1;
BIAS21:MA((CLOSE-MA(CLOSE,21))/MA(CLOSE,21),21)*100;
IF(BIAS21<0,BIAS21,0),COLORGREEN,LINETHICK2;
IF(BIAS21>0,BIAS21,0),COLORRED,LINETHICK2;
DRAWICON(CROSS(BIAS13,REF(BIAS13,1)),BIAS13,1);
DRAWICON(CROSS(REF(BIAS13,1),BIAS13),BIAS13,2);
BIAS13>0,COLORYELLOW,LINETHICK2;
BIAS13<0,COLORBLUE,LINETHICK2;
IF(BIAS13>MA(BIAS13,2),BIAS13,DRAWNULL),COLORYELLOW,LINETHICK3;
IF(BIAS13<MA(BIAS13,2),BIAS13,DRAWNULL),COLORCYAN,DOTLINE;
本文来源:http://www.xxxnonstop.com/jishuzhibiao/18832.html