以下是通达信小剑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(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;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。