成交量万neng自动画线副图
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
CCCV:=IF(VVOL>REFDATE(HHV(V,120),DATE)*1.3,REFDATE(HHV(V,120),DATE)*1.3,VVOL);
STICKLINE(CURRBARSCOUNT=1,CCCV,0,5,-1),COLORFFFFCC;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5);
MAVOL2:MA(VOLUME,10);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TOTAL赋值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))))
MTIME赋值:MOD(FROM开盘价,TOTAL)
如果MTIME<0.5返回TOTAL否则返回MTIME
输出VVOL:IF(( 到最后交易的周期=1 AND DYNAINFO(8)>1),成交量*TOTAL/CTIME,DRAWNULL),NODRAW
CCCV赋值:IF(VVOL>REFDATE(120日内V最高值,DATE)*1.3,REFDATE(120日内V最高值,DATE)*1.3,VVOL)
当满足条件 到最后交易的周期=1时,在CCCV和0之间画柱状线
输出VOLUME:成交量,成交量STICK
输出MAVOL1:VOLUME的5日简单移动平均
输出MAVOL2:VOLUME的10日简单移动平均