通达信个股资金指数指标公式

[复制链接]
查看45 | 回复0 | 2021-8-20 02:04:51 | 显示全部楼层 |阅读模式

以下是通达信个股资金指数指标公式(无源码的请下载附件导入)

{INPUT:N(34,1,100),M(3,1,100);}
个股资金指数:EMA(((100 * (CLOSE - LLV(LOW,N))) / (HHV(HIGH,N) - LLV(LOW,N))),M),COLORWHITE,LINETHICK2;
 STICKLINE(个股资金指数 > (0 - 5),100,(0 - 5),2,2),COLOR000000;
 STICKLINE(个股资金指数 > 20,个股资金指数,20,0,0),COLORDB43E7;
 DRAWICON(CROSS(个股资金指数,50),个股资金指数,10);
 DRAWICON(CROSS(50,个股资金指数),个股资金指数,11);
市场资金指数:EMA(((100 * (INDEXC - LLV(INDEXL,N))) / (HHV(INDEXH,N) - LLV(INDEXL,N))),M),COLORRED,LINETHICK2;
 DRAWICON(CROSS(50,市场资金指数),50,5);
 DRAWICON(CROSS(市场资金指数,50),50,4);
资金运作安全区:STICKLINE((市场资金指数 > 50),20,5,1,0),COLOR7BBEB2;

博弈线:80;
 20;
 50;

{CCI}
 {CCI卖点对于短期内暴涨的股票卖出非常适合}
CCI高度关注:IF(REF(CCI,1)<-99 AND CCI >-98,1,0),COLORWHITE;
 STICKLINE(CCI高度关注,20,40,1,0),LINETHICK3,COLORWHITE;
 CCI逃逸:IF(REF(CCI,1)>99 AND CCI <98 AND 个股资金指数 >45,1,0),COLORGREEN;
 STICKLINE(CCI逃逸,80,95,1,0),LINETHICK3,COLORGREEN;
弱势1:=IF(CCI<-100,CCI/5+20,20);
 STICKLINE(弱势1,20,弱势1,0.01,0),LINETHICK1,COLOR47FD6F;
弱势2:=IF(CCI<-50 AND CCI >-101,CCI/5+20,20);
 STICKLINE(弱势2,20,弱势2,0.01,0),LINETHICK1,COLORYELLOW;
买入1:IF(REF(CCI高度关注,1)=1 AND CCI>-50,1,0);
买入2:IF(REF(CCI高度关注,2)=1 AND CCI>-50 AND REF(CCI,1)>-50,1,0);
买入3:IF(REF(CCI高度关注,3)=1 AND CCI>-50 AND REF(CCI,1)>-50,1,0);
买入4:IF(REF(CCI高度关注,4)=1 AND CCI>-50 AND REF(CCI,1)>-50 AND REF(CCI,2)>-50,1,0);
 STICKLINE(买入1,20,60,0.5,0),LINETHICK1,COLORRED;
 STICKLINE(买入2,20,65,0.5,1),LINETHICK1,COLORRED;
 STICKLINE(买入3,20,70,1,0),LINETHICK1,COLORRED;
 STICKLINE(买入4,20,75,1,1),LINETHICK1,COLORRED;
 TYP:=(HIGH+LOW+CLOSE)/3;
 CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORWHITE,LINETHICK3;
买入选股:IF(买入1 OR 买入2 OR 买入3 OR 买入4,6,0);

734522569.png

734522569.png

回复

使用道具 举报

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

本版积分规则