通达信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;

{指标网-股票公式网站 www.GupaNg.com}

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)COLORLIMAGENTA,LINETHICK2;

四次金叉:IF(四次金,0.3,0)COLORRED,LINETHICK2;

通达信起涨线主图指标公式