同花顺四金探路副图指标 源码 显示macd指标的四次金叉示意图同花顺公式
2017-10-17 来源:网络 编辑:翔博软件
显示 MACD 指标 的四次金叉示意图 TYP:=(HIGH+LOW+CLOSE)/3; CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))*0.0015,colorgreen,LINETHICK1; DIFF:EMA(CLOSE,12)-EMA(CLOSE,27),
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))*0.0015,colorgreen,LINETHICK1;
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27),colorcyan;
DEA:EMA(DIFF,9),coloryellow;
MACD:2*(DIFF-DEA),COLORSTICK;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
一次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=1,5)=1;
二次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,5)=1;
三次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,5)=1;
四次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,5)=1;
一次金叉:IF(一次金,0.3,0),coloryellow,LINETHICK2;
二次金叉:IF(二次金,0.3,0),colormagenta,LINETHICK2;
三次金叉:IF(三次金,0.3,0),colorwhite,LINETHICK2;
四次金叉:IF(四次金,0.3,0),colorred,LINETHICK2;
关注我们
商务合作咨询,微信扫描二维码