同花顺虚拟换手率指标公式

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

var1:=(PERIODNAME=='1分钟' OR PERIODNAME=='5分钟'OR PERIODNAME=='15分钟' OR PERIODNAME=='30分钟' OR PERIODNAME=='60分钟' OR PERIODNAME=='日线') AND ISLASTBAR;
var2:=IF(PERIODNAME=='日线',240/240,IF(PERIODNAME=='60分钟',240/60,IF(PERIODNAME=='30分钟',240/30,IF(PERIODNAME=='15分钟',240/15,IF(PERIODNAME=='5分钟',240/5,NULL)))));
gs:=CEIL(FROMOPEN*VAR2/240);
volday:=SUM(VOL,gs)*240/FROMOPEN;
vvol:=IF(var1 AND FROMOPEN<240,MIN(SHGZG,volday/VAR2),IF(PERIODNAME=='周线',VOL*5/WEEKDAY,IF(PERIODNAME=='月线',VOL*30/DAY,VOL)));
虚拟换手:IF(CODETYPE=1,vvol/SHGZG*100,IF(CODETYPE=0,MONEY/DPLTSZ*100,NULL)),linethick0,colorc0c0c0,precis2;
换手:IF(CODETYPE=1,VOL/SHGZG*100,IF(CODETYPE=0,MONEY/DPLTSZ*100,NULL)),linethick0,color3033fe,precis2;
ma5:MA(虚拟换手,5),colorwhite,precis2;
ma10:MA(虚拟换手,10),coloryellow,precis2;
ma20:MA(虚拟换手,20),colormagenta,precis2;
STICKLINE(ISLASTBAR,0,虚拟换手,8,-2),layer7,colorc0c0c0;
STICKLINE(C>=REF(C,1),0,换手,8,1),layer6,color3033fe;
STICKLINE(C<REF(C,1),0,换手,8,0),layer6,colorcyan;
STICKLINE(BARPOS=1 AND C>=O,0,换手,8,1),layer7,color3033fe;
STICKLINE(BARPOS=1 AND C<O,0,换手,8,0),layer7,colorcyan;
HORLINE(ISLASTBAR,换手,0,1),color008080;

202108202156.jpg

202108202156.jpg

 

回复

使用道具 举报

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

本版积分规则