当前位置:首页 > 免费资源 > 正文

「翔博精选指标」)成交量+资金流向 VOLTDX3 VOLTDX4,和谐源码

2022-05-01原创 编 辑:翔博软件

 {公式名称: VOLTDX3

公式描述: 成交量+资金流向
参数数量: 2
参数1: M1, 最小: 2, 最大: 500, 缺省: 5
参数2: M2, 最小: 2, 最大: 500, 缺省: 10
公式类型: 技术指标公式-成交量型
画线方法: 副图
 
用法注释:
对当天的最后一根日K线进行全天成交量预测,方便与以前的成交量进行对比
公式源码:}
 
VAR1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
VAR2:=MOD(FROMOPEN,VAR1);
VAR3:=IF(VAR2<0.5,VAR1,VAR2);
VVOL:IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*VAR1/VAR3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VVOL,0,(-1),(-1)),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
VAR4:=MA(VOLUME,M1);
VAR5:=MA(VOLUME,M2);
VAR6:=MA(VOL,160);
VAR7:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
VAR8:=CLOSE>OPEN AND CLOSE>REF(CLOSE,1);
VAR9:=AMOUNT/VOL;
VAR10:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
VAR11:=REF(EMA(VAR10,3),1);
VAR12:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR13:=IF(CLOSE>OPEN,VAR12*(HIGH-LOW),IF(CLOSE<OPEN,VAR12*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,(-VAR12)*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,(-VAR12)*(HIGH-LOW),(-VOL)/2));
VAR14:=VOL/CAPITAL;
VAR15:=IF(VAR14>10,10,VAR14);
VAR16:=VAR13/20/1.15;
VAR17:=VAR16*0.55+REF(VAR16,1)*0.33+REF(VAR16,2)*0.22;
VAR18:=EMA(VAR17,8);
VAR19:=EMA(VAR17,3);
VAR20:=VAR19*70;
VAR21:=IF(ABS(VAR20)<=VOL*0.9,VAR20,VOL*0.9);
VAR22:=VAR18*50;
VAR23:=L2_AMO(0,2)/10000;
VAR24:=L2_AMO(1,2)/10000;
VAR25:=L2_AMO(2,2)/10000;
VAR26:=L2_AMO(3,2)/10000;
VAR27:=L2_AMO(0,3)/10000;
VAR28:=L2_AMO(1,3)/10000;
VAR29:=L2_AMO(2,3)/10000;
VAR30:=L2_AMO(3,3)/10000;
VAR31:=(VAR23+VAR24+VAR25+VAR26-(VAR27+VAR28+VAR29+VAR30))/10000;
VAR32:=(VAR23+VAR24-(VAR27+VAR28))/10000;
VAR33:=SUM(VAR31,2);
VAR34:=SUM(VAR32,2);
VAR35:=SUM(VAR31,3);
VAR36:=SUM(VAR32,3);
VAR37:=SUM(VAR31,4);
VAR38:=SUM(VAR32,4);
VAR39:=SUM(VAR31,5);
VAR40:=SUM(VAR32,5);
VAR41:=SUM(VAR31,6);
VAR42:=SUM(VAR32,6);
VAR43:=SUM(VAR31,7);
VAR44:=SUM(VAR32,7);
VAR45:=SUM(VAR31,8);
VAR46:=SUM(VAR32,8);
VAR47:=SUM(VAR31,9);
VAR48:=SUM(VAR32,9);
VAR49:=SUM(VAR31,10);
VAR50:=SUM(VAR32,10);
VAR51:=SUM(VAR31,20);
VAR52:=SUM(VAR32,20);
本月:VAR52,NODRAW;
本周:VAR40,NODRAW;
近4:VAR38,NODRAW;
近3:VAR36,NODRAW;
近2:VAR34,NODRAW;
净流入:VAR31,NODRAW,COLORRED;
大宗流入:VAR32,NODRAW,COLORRED;
STICKLINE(VAR20>0 AND 净流入>0,ABS(VAR21),0,2,0),COLORRED;
STICKLINE(VAR20<0 OR 净流入<0,ABS(VAR21),0,2,0),COLORBLUE;
VAR53:=100*VOL/(FINANCE(7)/100);
VAR54:=SUM(VAR53,126);
换手率6个月:VAR54,NODRAW,COLORRED;

 
 

{公式名称: VOLTDX4
公式描述: 成交量+资金流向
参数数量: 2
参数1: M1, 最小: 2, 最大: 500, 缺省: 5
参数2: M2, 最小: 2, 最大: 500, 缺省: 10
公式类型: 技术指标公式-成交量型
画线方法: 副图
用法注释:
对当天的最后一根日K线进行全天成交量预测,方便与以前的成交量进行对比
公式源码:}
 
VAR1:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
VAR2:=MOD(FROMOPEN,VAR1);
VAR3:=IF(VAR2<0.5,VAR1,VAR2);
VVOL:IF(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VOL*VAR1/VAR3,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND DYNAINFO(8)>1,VVOL,0,(-1),(-1)),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
VAR4:=MA(VOLUME,M1);
VAR5:=MA(VOLUME,M2);
VAR6:=MA(VOL,160);
VAR7:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);
VAR8:=CLOSE>OPEN AND CLOSE>REF(CLOSE,1);
VAR9:=AMOUNT/VOL;
VAR10:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
VAR11:=REF(EMA(VAR10,3),1);
VAR12:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR13:=IF(CLOSE>OPEN,VAR12*(HIGH-LOW),IF(CLOSE<OPEN,VAR12*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,(-VAR12)*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,(-VAR12)*(HIGH-LOW),(-VOL)/2));
VAR14:=VOL/CAPITAL;
VAR15:=IF(VAR14>10,10,VAR14);
VAR16:=VAR13/20/1.15;
VAR17:=VAR16*0.55+REF(VAR16,1)*0.33+REF(VAR16,2)*0.22;
VAR18:=EMA(VAR17,8);
VAR19:=EMA(VAR17,3);
VAR20:=VAR19*70;
VAR21:=IF(ABS(VAR20)<=VOL*0.9,VAR20,VOL*0.9);
VAR22:=VAR18*50;
VAR23:=L2_AMO(0,2)/10000;
VAR24:=L2_AMO(1,2)/10000;
VAR25:=L2_AMO(2,2)/10000;
VAR26:=L2_AMO(3,2)/10000;
VAR27:=L2_AMO(0,3)/10000;
VAR28:=L2_AMO(1,3)/10000;
VAR29:=L2_AMO(2,3)/10000;
VAR30:=L2_AMO(3,3)/10000;
VAR31:=(VAR23+VAR24+VAR25+VAR26-(VAR27+VAR28+VAR29+VAR30))/10000;
VAR32:=(VAR23+VAR24-(VAR27+VAR28))/10000;
VAR33:=SUM(VAR31,2);
VAR34:=SUM(VAR32,2);
VAR35:=SUM(VAR31,3);
VAR36:=SUM(VAR32,3);
VAR37:=SUM(VAR31,4);
VAR38:=SUM(VAR32,4);
VAR39:=SUM(VAR31,5);
VAR40:=SUM(VAR32,5);
VAR41:=SUM(VAR31,6);
VAR42:=SUM(VAR32,6);
VAR43:=SUM(VAR31,7);
VAR44:=SUM(VAR32,7);
VAR45:=SUM(VAR31,8);
VAR46:=SUM(VAR32,8);
VAR47:=SUM(VAR31,9);
VAR48:=SUM(VAR32,9);
VAR49:=SUM(VAR31,10);
VAR50:=SUM(VAR32,10);
VAR51:=SUM(VAR31,20);
VAR52:=SUM(VAR32,20);
VAR53:=VAR52;
VAR54:=VAR40;
VAR55:=VAR38;
VAR56:=VAR36;
VAR57:=VAR34;
VAR58:=VAR31;
VAR59:=VAR32;
STICKLINE(VAR20>0,ABS(VAR21),0,2,0),COLORRED;
STICKLINE(VAR20<0,ABS(VAR21),0,2,0),COLORBLUE;
VAR60:=100*VOL/(FINANCE(7)/100);
VAR61:=SUM(VAR60,126);

换手率6个月:VAR61,NODRAW,COLORRED;

 

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标