【通达信分享源码】精品指标公式-绝世无双+VOL_3
2023-01-14未知 编 辑:掌上指标
{绝世无双}
MA60:MA(CLOSE,60),COLORWHITE,LINETHICK3;
上涨MA60:IF(MA60>REF(MA60,1),MA60,DRAWNULL),COLORRED,LINETHICK3;
下跌MA60:IF(MA60<REF(MA60,1),MA60,DRAWNULL),COLORGREEN,LINETHICK3;
成交量公式的理想替换。
{ 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;