通达信小剑VOL公式源码K线图
-
相关简介:通达信公式小剑VOL M1:=5; M2:=10; M3:=20; M4:=60; VAR2:=IF(PERIOD=5,240/240,IF(PERIOD=4,240/60,IF(PERIOD=3,240/30,IF(PERIOD=2,240/15,IF(PERIOD=1,240/5 ,DRAWNULL))))); VVOL:IF(CURRBARSCOUNT=1, IF(PERIOD0 AND PERIOD6,MIN(CAPITAL,DYNAINFO(8)/FROMOPEN*240/VAR2),
-
文章来源:股海网作者:股海网发布时间:2019-06-25浏览次数:
通达信公式小剑VOL
M1:=5;
M2:=10;
M3:=20;
M4:=60;
VAR2:=IF(PERIOD=5,240/240,IF(PERIOD=4,240/60,IF(PERIOD=3,240/30,IF(PERIOD=2,240/15,IF(PERIOD=1,240/5
,DRAWNULL)))));
VVOL:IF(CURRBARSCOUNT=1,
IF(PERIOD>0 AND PERIOD<6,MIN(CAPITAL,DYNAINFO(8)/FROMOPEN*240/VAR2),
IF(PERIOD=6,V*5/WEEKDAY,IF(PERIOD=7,V*31/DAY,DRAWNULL))),VOL),NODRAW,COLORC0C0C0;
STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLORC0C0C0;
VOLUME:VOL,VOLSTICK,COLOR3232FF;
STICKLINE(COUNT(C>0,0)=1 AND C>=O OR C>=REF(C,1),0,V,-1,1),COLOR3232FF;
STICKLINE(COUNT(C>0,0)=1 AND C<O OR C<REF(C,1),0,V,-1,0),COLORCYAN;
MAVOL1:MA(VVOL,M1),COLORWHITE;
MAVOL2:MA(VVOL,M2),COLORYELLOW;
MAVOL3:MA(VVOL,M3),COLORMAGENTA;
MAVOL4:MA(VVOL,M4),COLORGREEN;
VHSL:100*VVOL/CAPITAL,COLORBLUE,NODRAW;
VAMT:VVOL/V*AMOUNT/10000,COLORCYAN,NODRAW;