VVOL2自用成交量替代板块所属概念涨跌家数
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);
虚拟成交量:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),虚拟成交量,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
AA:=VOL>=REF(V,1)*3 && C>REF(C,1);
STICKLINE(AA,0,V,0.05,0),COLOR99FFFF,NODRAW;
换手率:V/CAPITAL*100,NODRAW;
成交量比:VOL/REF(VOL,1),NODRAW;
DRAWNUMBER(ISLASTBAR,(V*1.2),换手率),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,DYBLOCK),COLORFF6000;
DRAWTEXT_FIX(ISLASTBAR,0.08,0,0,HYBLOCK),COLORFF6000;
DRAWTEXT_FIX(ISLASTBAR,0.15,0,0,GNBLOCK),COLORFF6000;
DRAWTEXT_FIX(1,0.01,0.2,0,'主题投资:')COLOR0000FF,NODRAW;
DRAWTEXT_FIX(1,0.07,0.2,0,EXTERNSTR(0,24))COLOR0000FF,NODRAW;
DRAWTEXT_FIX(1,0.01,0.2,0,'个股题材: ')COLORYELLOW;
DRAWTEXT_FIX(1,0.07,0.2,0,EXTERNSTR(0,21))COLOR0000FF;
AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0.5,0,1,AAA1),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(1,0.95,0.02,1,':'),COLORRED;
DRAWTEXT_FIX(1,0.99,0.02,1,'分'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.93,0.02,0,INTPART((34200+FROMOPEN*60)/3600));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.93,0.02,0,INTPART((34200+FROMOPEN*60+5400)/3600));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.96,0.02,0,60*(((34200+FROMOPEN*60)/3600)-INTPART((34200+FROMOPEN*60)/3600)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.96,0.02,0,60*(((34200+FROMOPEN*60+5400)/3600)-INTPART((34200+FROMOPEN*60+5400)/3600)));
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数: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
输出虚拟成交量:IF(( 到最后交易的周期=1 AND DYNAINFO(8)>1),成交量*TOTAL/CTIME,DRAWNULL),NODRAW
STICKLINE(( 到最后交易的周期=1 AND DYNAINFO(8)>1),虚拟成交量,0,-1,-1),COLOR00C0C0
输出VOLUME:成交量,成交量STICK
AA赋值:成交量>=1日前的V*3 && C>1日前的C
当满足条件AA时,在0和V之间画柱状线
输出换手率:V/当前流通股本*100,NODRAW
输出成交量比:成交量/1日前的成交量,NODRAW
DRAWNUMBER(ISLASTBAR,(V*1.2),换手率),画黄色
当满足条件ISLASTBAR时,在横轴0.01纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.08纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.15纵轴0位置书写文字
当满足条件1时,在横轴0.01纵轴0.2位置书写文字
DRAWTEXT_FIX(1,0.07,0.2,0,EXTERNSTR(0,24))COLOR0000FF,NODRAW
当满足条件1时,在横轴0.01纵轴0.2位置书写文字
DRAWTEXT_FIX(1,0.07,0.2,0,EXTERNSTR(0,21))COLOR0000FF
AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0))
AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0))
当满足条件ISLASTBAR时,在横轴0.5纵轴0位置书写文字
当满足条件ISLASTBAR时,在横轴0.5纵轴0位置书写文字
当满足条件1时,在横轴0.95纵轴0.02位置书写文字
当满足条件1时,在横轴0.99纵轴0.02位置书写文字
DRAWNUMBER_FIX( 到最后交易的周期=1 AND FROM开盘价<121,0.93,0.02,0,INTPART((34200+FROM开盘价*60)/3600))
DRAWNUMBER_FIX( 到最后交易的周期=1 AND FROM开盘价>120,0.93,0.02,0,INTPART((34200+FROM开盘价*60+5400)/3600))
DRAWNUMBER_FIX( 到最后交易的周期=1 AND FROM开盘价<121,0.96,0.02,0,60*(((34200+FROM开盘价*60)/3600)-INTPART((34200+FROM开盘价*60)/3600)))
DRAWNUMBER_FIX( 到最后交易的周期=1 AND FROM开盘价>120,0.96,0.02,0,60*(((34200+FROM开盘价*60+5400)/3600)-INTPART((34200+FROM开盘价*60+5400)/3600)))