2016通达信指标公式 通达信升升升降降降副图公式源码(3)
2016-12-02 16:23 股票知识 zhishi.southmoney.com
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CDZB:=REF(CCI,DDSJ+1)<CCI;{CCI指标趋势}
C底背离:=DDGJ AND CDZB;
CGZB:=REF(CCI,GDSJ+1)>CCI;
C顶背离:=GDGJ AND CGZB;
REFLINE: -5,15,30,COLORBLACK;
DRAWICON(K顶背离,IF(ISLASTBAR,20.5,20),2),LINETHICK2 ;
DRAWICON(M顶背离,(ISLASTBAR,10.5,10),2),LINETHICK2 ;
DRAWICON(R顶背离,(ISLASTBAR,0.5,0),2),LINETHICK2 ;
DRAWICON(C顶背离,(ISLASTBAR,-10.6,-10),2),LINETHICK2 ;
DRAWTEXT(ISLASTBAR,-10.1 ,CCI ),LINETHICK2,COLORGREEN;
DRAWICON(C底背离,IF(ISLASTBAR,12,-10.1 ),1),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,0,RSI ),LINETHICK2,COLORRED;
DRAWICON(R底背离,IF(ISLASTBAR,8.5,0),1),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,10,MACD ),LINETHICK2,COLORMAGENTA;
DRAWICON(M底背离,IF(ISLASTBAR,4.5,10),1),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,20,KDJ ),LINETHICK2,COLORRED;
DRAWICON(K底背离,IF(ISLASTBAR,1.5,20),1),LINETHICK2,COLORRED;
更多股票公式相关资讯请关注南方财富网