通达信_指标_通达信CCI+MACD指标公式

通达信MACD背离提示主图指标公式

通达信CCI+MACD指标公式:

TYP:=(HIGH+LOW+CLOSE)/3;

cci:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORWHITE,NODRAW;

NOTEXTCCI:CCI/500,LINETHICK1,COLORFF33FF;

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;

DEA:EMA(DIF,9),COLORYELLOW;

macd:(DIF-DEA)*2,COLORstICK;

0;

{CCI 100 -100 线}

STICKLINE(C>0,100/500,100/500,1,-1)COLORWHITE;

DRAWTEXT(ISLASTBAR,100/500,'CCI正100'),COLORWHITE;

STICKLINE(C>0,-100/500,-100/500,1,-1)COLORWHITE;

DRAWTEXT(ISLASTBAR,-100/500,'CCI负-100'),COLORWHITE;

通达信量化辨股与评分指标公式