同花顺CCI红绿带指标公式

[复制链接]
查看133 | 回复0 | 2021-8-20 21:35:22 | 显示全部楼层 |阅读模式

N:=14;
DIFF:EMA(CLOSE,9)-EMA(CLOSE,17);
DEA:EMA(DIFF,8),colorcyan;
MACD : 2*(DIFF-DEA);
Zero : 0,,colorwhite,LINETHICK2;
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-10 AND RRB>3;
STICKLINE(IF(RRD,-120,0),-120,0,8,0),colorliblue;
【黄金坑】:IF(RRD,-120,0),coloryellow,LINETHICK2;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
a:100;
b:-100;
d:180;
换手率:VOL/SHGZG*100,nodraw;
MA20:MA(C,20);
MA60:MA(C,60);
DRAWGBK(C<MA(C,60),STRIP(RGB(0,100,0),RGB(0,99,0),1));
DRAWGBK(C>MA(C,60) AND C/MA(C,60)<1.10,STRIP(RGB(99,0,0),RGB(99,0,0),1));
DRAWGBK(C/MA(C,60)>1.1,STRIP(RGB(99,0,99),RGB(99,0,99),1));
DRAWICON(CROSS(CCI,b),b,'buy');
DRAWICON(CROSS(d,CCI),CCI,'sell');

202108202132.jpg

202108202132.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则