「翔博精选指标」VOL_3,和谐通达信公式源码分享 副图
2022-01-30原创 编 辑:翔博软件
VOL_3
成交量公式的理想替换。
{ VOL_3
参数1: M1, 最小: 1, 最大: 100, 缺省: 5参数2: M2, 最小: 1, 最大: 100, 缺省: 10}
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,(-1),(-1)),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,M1);
MAVOL2:MA(VOLUME,M2);
VAR1:=1*AMOUNT;
VAR2:=1*MA(AMOUNT,5);
VAR3:=1*MA(AMOUNT,10);
VAR4:=HHV(VAR1,30)=VAR1;
VAR5:=HHV(VAR1,60)=VAR1;
VAR6:=HHV(VAR1,100)=VAR1;
VAR7:=HHV(VAR1,250)=VAR1;
STICKLINE(VAR4,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
STICKLINE(VAR5,VOLUME,VOLUME*0.7,1,0),COLORYELLOW;
STICKLINE(VAR6,VOLUME,VOLUME*0.7,1,0),COLORGREEN;
STICKLINE(VAR7,VOLUME,VOLUME*0.7,1,0),COLORFF7100;
VAR8:=LLV(VAR1,30)=VAR1;
VAR9:=LLV(VAR1,60)=VAR1;
VAR10:=LLV(VAR1,100)=VAR1;
VAR11:=LLV(VAR1,250)=VAR1;
STICKLINE(VAR8,(-50000),0,1,0),COLORMAGENTA;
STICKLINE(VAR9,(-50000),0,1,0),COLORYELLOW;
STICKLINE(VAR10,(-50000),0,1,0),COLORGREEN;
STICKLINE(VAR11,(-50000),0,1,0),COLORFF7100;
IF(CROSS(0.9,1/VOL*1000>0.01 AND KDJ.J<0),VOLUME*5,0),COLORYELLOW,LINETHICK2;