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;
同花顺虚拟换手率指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/25722.html