同花顺MMACD公式
-
相关简介:同花顺MMACD公式 DIFF:EMA(CLOSE,P1)-EMA(CLOSE,P2),colorcyan,Linethick1; DEA:EMA(DIFF,P3),coloryellow,Linethick1; MACD:(DIFF-DEA)*2,COLORSTICK; 低位金:=CROSS(DIFF,DEA) AND DIFF-0.1; STICKLINE(低位金,0,0.1,9,0),coloryellow; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(
-
文章来源:股海网作者:股海网发布时间:2015-05-15浏览次数:
同花顺MMACD公式
DIFF:EMA(CLOSE,P1)-EMA(CLOSE,P2),colorcyan,Linethick1;
DEA:EMA(DIFF,P3),coloryellow,Linethick1;
MACD:(DIFF-DEA)*2,COLORSTICK;
低位金:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金,0,0.1,9,0),coloryellow;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,34)=1; STICKLINE(二次金,0,0.1,9,0),colorcyan;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS (DIFF,DEA);
STICKLINE(底背离,0,-0.1,9,0),colorred;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS (DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorred,LINETHICK2;