通达信CCI背离源码主图贴图

指标是死的,人是活的,信号出现K线变红色后面是有波段行情的,在熊市中,趋势下行,不光是CCI背离一次两次无用,其它的也一样,所以要用对地方。指标中的两条线是5日均线和20日均线,其实就相当于日K的收盘价就是当前的点位,5日均线的点位就是周线的点位,20日均线的点位就是月线的点位。这样相互映证就更好了

TYP:=(HIGH+LOW+CLOSE+OPEN)/4;
CCI:=(TYP-MA(TYP,33))/(0.015*AVEDEV(TYP,33));
A1:=(C+O)/2;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,44);
MACD1:=EMA(DIF1,8) ;
DDIF1:=DIF1-MACD1 ;
AA:=(C+O)/2;
RSV:=(CLOSE-LLV(LOW,44))/(HHV(HIGH,44)-LLV(LOW,44))*100;
K:=SMA(RSV,7,1),COLOR0099FF,LINETHICK2;
D:=SMA(K,5,1)COLORFF00FF,LINETHICK2;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K1:=SMA(RSV1,4,1),COLORWHITE,LINETHICK2;
D1:=SMA(K1,3,1)COLORGREEN,LINETHICK2;
BU:=UPNDAY(DDIF1,3) AND DDIF1<0;
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
BB:=(二0.618+三0.500)/2;
MA5:MA(C,5),COLORBLUE;
MA20:MA(C,20),COLORYELLOW;
STICKLINE( MA5>REF(MA5,1) AND K1>REF(K1,1),LOW,HIGH,0.0,0),COLORRED;
STICKLINE(MA5>REF(MA5,1) AND K1>REF(K1,1),CLOSE,OPEN,2,0),COLORRED;

CC:= CCI>=REF(CCI,1) AND MA5 <REF(MA5,1) AND CCI<-100;

STICKLINE( CCI>-100 AND K <REF(K,1),LOW,HIGH,0.0,1),COLORGREEN;

STICKLINE( CCI>-100 AND K <REF(K,1),CLOSE,OPEN,2,1),COLORGREEN;

STICKLINE( CCI<-100 AND CCI>-149 AND K <REF(K,1),LOW,HIGH,0.0,0),COLORGREEN;

STICKLINE( CCI<-100 AND CCI>-149 AND K <REF(K,1),CLOSE,OPEN,2,0),COLORGREEN;

STICKLINE(CCI<-150,LOW,HIGH,0.0,0),COLORWHITE;

STICKLINE( CCI<-150,CLOSE,OPEN,2,0),COLORWHITE;
DRAWTEXT(CC,C *0.98,' B'),COLORFFFF00;

STICKLINE(DDIF1>REF(DDIF1,1) AND DDIF1<0,LOW,HIGH,0.0,0),COLOR0099FF;
STICKLINE(DDIF1>REF(DDIF1,1) AND DDIF1<0,CLOSE,OPEN,2,0),COLOR0099FF;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图