通达信跟风资金进出副图指标公式源码

[复制链接]
查看252 | 回复0 | 2021-8-28 02:30:16 | 显示全部楼层 |阅读模式

以下是通达信跟风资金进出副图指标公式源码(无源码的请下载附件导入)

N:=3;
 M:=6;
 VARS:=100;
 VARZQ:=30;
 RSV:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;
 K:=SMA(RSV,5,1);
 D:=SMA(K,3,1);
 J:=3*K-2*D;
 HS:=VOL/CAPITAL;
 SH:=(HHV(HIGH,VARZQ)-CLOSE)/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS-10;
 JG:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;
 GF:=SMA(JG,13,8);
 DDJG:=JG-REF(JG,1);
 DTJG:=HS*DDJG*100/4;
 VARZLSCJG:=(90+SUM(DTJG,0));
主力筹码:SUM(DTJG,0)+90,LINETHICK1,COLORRED;
 STICKLINE(DTJG>0,VARZLSCJG,VARZLSCJG+DTJG,1,0),COLORRED;
 STICKLINE(DTJG<0,VARZLSCJG+DTJG,VARZLSCJG,1,0),COLORGREEN;
 DDSH:=SH-REF(SH,1);
 DTSH:=HS*DDSH*100/4;
 VARZLSCSH:= (60+SUM(DTSH,0));
散户筹码:SUM(DTSH,0)+60,LINETHICK1,COLORWHITE;
 STICKLINE(DTSH>0,VARZLSCSH,VARZLSCSH+DTSH,1,0),COLORRED;
 STICKLINE(DTSH<0,VARZLSCSH+DTSH,VARZLSCSH,1,0),COLORGREEN;
 DDGF:=GF-REF(GF,1);
 DTGF:=HS*DDGF*100/4;
 VARZLSCGF:=(30+SUM(DTGF,0));
跟风筹码:SUM(DTGF,0)+30,LINETHICK1,COLORCYAN;
 STICKLINE(DTGF>0,VARZLSCGF,VARZLSCGF+DTGF,1,0),COLORRED;
 STICKLINE(DTGF<0,VARZLSCGF+DTGF,VARZLSCGF,1,0),COLORGREEN;

1042255677.jpg

1042255677.jpg

回复

使用道具 举报

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

本版积分规则