通达信共振CCI指标公式

通达信超牛龙头主图及选股指标公式

通达信共振CCI指标公式:

{cci月周日}

换手:vol/CAPITAL*100,NODRAW,COLORRED;

牛熊线:100,COLORGREEN,DOTLINE;

{CCI日周月}

月C:("CCI.CCI#MONTH"(14)),COLORRED,LINETHICK3;

周C:("CCI.CCI#WEEK"(14)),COLORYELLOW,LINETHICK2;

日C:=("CCI.CCI"(14)),COLORLIGRAY,LINETHICK2;

QS:=周C>=月C AND 周C>=200 AND 月C>=110;

stICKLINE(QS,-115,-105,3,0),COLORRED;

DRAWICON(crOSS(日C,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,日C,38);

{rsi波段}

LC:=REF(CLOSE,1);

RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100,LINETHICK2;

MA6:=MA(RSI6,6),COLORGREEN;

短波:=IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2;

{游侠副图}

TYPD:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;

游侠CCI:=EMA((TYPD-MA(TYPD,36.0270012))/(0.015*AVEDEV(TYPD,36.0270012)),2.0332),COLORWHITE,LINETHICK2;

日:游侠CCI,COLORWHITE,LINETHICK2;

粉低吸:EVERY(游侠CCI<-150 AND 游侠CCI<REF(游侠CCI,1),3),NODRAW,COLORFF00FF;

STICKLINE(游侠CCI<-150,游侠CCI,-150,2,0),COLORFF80FF;

STICKLINE(C>0,-150,-151,2,0),COLORBLUE;

DRAWICON(CROSS(游侠CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110 ,游侠CCI,34);

DRAWICON(CROSS(游侠CCI,110) AND 周C>=月C AND 周C>=200 AND 月C>=0 AND 短波,游侠CCI,1);

{CCI日周月}{改编 BY SHUHONG}

{BSQJ指标}{买卖区间}

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

STICKLINE(买线>=卖线,0,10,2,1),COLOR2040FF;

STICKLINE(买线<卖线,0,-10,2,1),COLOR6CE424;

DRAWTEXT(ISLASTBAR,月C,' ←月C'),COLORRED;

DRAWTEXT(ISLASTBAR,周C,' ←周C'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,日,' ←日'),COLORWHITE;

通达信妖股狙击主图指标公式