通达信CCI平衡线副图指标公式源码

[复制链接]
查看136 | 回复0 | 2021-8-28 00:58:41 | 显示全部楼层 |阅读模式

以下是通达信CCI平衡线副图指标公式源码(无源码的请下载附件导入)

通达信CCI平衡线副图指标 源码 贴图

TYP:=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((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332),COLORGREEN;
 STICKLINE(CCI>100,CCI,100,1,0),COLORWHITE;
 STICKLINE(CCI<-150,CCI,-150,1,0),COLORWHITE;
 STICKLINE(C>0,100,101,1,0),COLORBLACK;
 STICKLINE(C>0,-150,-151,1,0),COLORBLACK;
 RSV:= (C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
 FASTK:=SMA(RSV,3,1);
 Y1A:=((SMA(FASTK,3,1))/2+40)*1.1;
 RSV1:= (HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))*100;
 Y2A:=(SMA(RSV1,3,1)/2)*1.1;
 LC := REF(C,1);
 RSI2:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;
 RSI3:=IF(RSI2>50,RSI2*1.05,RSI2);
 RSV3:=(C-LLV(L,54))/(HHV(H,54)-LLV(L,54))*100;
 RSI4:=IF(RSI3>100,100,RSI3);
 RRR:= EMA(SLOPE(RSI4,3),20);
平衡线:RSI4, COLORRED,LINETHICK1;

1739544725.jpg

1739544725.jpg

回复

使用道具 举报

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

本版积分规则