MACD四次金叉指标 (源码)
2012-07-13 08:23:00来源:本站整理浏览:207
通达信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)COLORWHITE;
DEA:EMA(DIFF,9),COLORYELLOW;
MACD:2*(DIFF-DEA)COLORSTICK;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
一次金:=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)COLORLIMAGENTA,LINETHICK2;
四次金叉:IF(四次金,0.3,0)COLORRED,LINETHICK2;
- 上一篇公式:获利行踪指标 (源码)
- 下一篇公式:共振风险区指标 (源码)