自用成交量指标和预警选股公式

[复制链接]
查看41 | 回复0 | 2022-7-24 06:57:30 | 显示全部楼层 |阅读模式

 

参数;m1 3  1000  5
     m2 3   1000  135
     m3 3   7     3
     m4 7   10    7

 

 VOLUME:VOL,VOLSTICK ;
 MAVOL1:=MA(VOLUME,M1);
 MAVOL2:=MA(VOLUME,M2);
绿低量:=13;
蓝低量:=55;
灰低量:=100;
 {=====================================================}
 H_L:=0.1*CONST(HHV(VOL,240));
 {MAV10:MA(V,10),COLORYELLOW;}
 VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0;
量:=VOL,VOLSTICK;
换手: VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}
换7T:SUM(换手,7),NODRAW;
倍数:=1.9;
倍量:= VOL>=REF(V,1)*倍数 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
倍缩:= REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;
平量:= RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2,COLORWHITE,NODRAW;
低量10:= VOL=LLV(VOL,绿低量) AND BARSCOUNT(V)>=绿低量,COLORGREEN,NODRAW;
低量50:= VOL=LLV(VOL,蓝低量) AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;
地量:=   VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW;
 V1:=VOL*0.9;{图标位置}
V2:=VOL*0.8;
 STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;
 STICKLINE(平量,0,V1,1,0),COLORWHITE;
 STICKLINE(低量10,0,V2,1,0),COLORLIGREEN;
 STICKLINE(低量50,0,V2,1,0),COLORBLUE;
 STICKLINE(地量,0,V2,1,0),COLORGRAY;
 STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;
 STICKLINE(C<O AND C>REF(C,1),0,V,0,0),COLORRED;{假阴柱}
真阳或假阴:=C>O OR C>REF(C,1);
收阳:= REF(真阳或假阴,3);
倍量1:=REF(倍量,3);
高量:=REF(V,3)>=HHV(V,7);
三日不破:= LLV(C,3)>=REF(L,3);
价升:=COUNT(C>=REF(C,1),3)=3;{收盘价逐升}
量缩:=COUNT(V<=REF(V,1),3)=3;
连阳:= COUNT(真阳或假阴,3)=3;
倍量将军柱:= 倍量1 AND 三日不破 AND 收阳;
高量将军柱:= 高量  AND 三日不破 AND 收阳;
将军柱:= 倍量将军柱 OR 高量将军柱;
黄金柱:= 将军柱 AND 价升 AND 量缩 AND 连阳 ;
STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱}
DRAWICON(黄金柱,V*1.5,1);
 V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
百日地量群:=COUNT(V100,5)>=3;
 DRAWTEXT(FILTER(百日地量群,4),V+3*H_L,'地量群'),COLORGRAY;
长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
 DRAWTEXT(长阴短柱 ,V+1.6*H_L,'!'),COLORLICYAN;
量5:MA(V,5),COLORWHITE;
量10:MA(V,10),COLORRED;
量20:MA(V,20),COLORYELLOW;
量60:MA(V,60),COLORMAGENTA;
 FL4:=V=HHV(V,250);
 FL3:=V=HHV(V,120) AND V!=HHV(V,250);
 FL2:=V=HHV(V,60) AND V!=HHV(V,120) AND V!=HHV(V,250);
 FL1:=V=HHV(V,30) AND V!=HHV(V,60) AND V!=HHV(V,120) AND V!=HHV(V,250);
 DRAWTEXT(FL4,0.93*V,'④'),COLORYELLOW;
 DRAWTEXT(FL3,0.93*V,'③'),COLORYELLOW;
 DRAWTEXT(FL2,0.93*V,'②'),COLORYELLOW;
 DRAWTEXT(FL1,0.93*V,'①'),COLORYELLOW;
 XG:SUM(FL1,10);
 DRAWTEXT(XG,1.5*V,'买'),COLORYELLOW,NODRAW;
 {--------VOL.量能饱和--------}
N1:=34;
 N2:=N1*1.05;
 N3:=N1+3;
 SATC:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和:IF(SATC>1,1,SATC)*100,COLOR0099FF,NODRAW;
中点:=REF(REFDATE(HHV(V,60)/2,DATE),5);{量能饱和的变色切换}
 {中点:=REFDATE(HHV(V,240)/2,DATE);}
 {--------VOL.量能饱和--------}
STICKLINE(CURRBARSCOUNT=N1,中点*1.8,中点*1.6,100,1),COLOR00DDDD;
 STICKLINE(CURRBARSCOUNT=N1,中点*1.79,中点*1.61,量能饱和,0),COLOR0055FF;
 STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和,0),COLOR0077FF;
 STICKLINE(CURRBARSCOUNT=N1,中点*1.73,中点*1.67,量能饱和,0),COLOR0099FF;
 STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和,0),COLOR00DDFF;
 DRAWTEXT(CURRBARSCOUNT=N3,中点*1.7,'量能饱和'),COLORYELLOW;
 VAR10:=EMA(CLOSE,2)-EMA(CLOSE,150);
 VAR11:=EMA(VAR10,100);
 VAR12:=2*(VAR10-VAR11);
 VAR13:=POW(VAR12,3)*0.1+POW(VAR12,1);
 VAR1A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
 VAR1B:=EMA(VAR1A*0.97,3);
 VAR1C:=(HIGH+LOW+CLOSE)/3;
 VAR1D:=(VAR1C-MA(VAR1C,14))/(0.015*AVEDEV(VAR1C,14));
主力资金:=(IF(VAR12>0.1,VAR13,0)*5)*10000,LINETHICK2,COLORMAGENTA;
 AA:=V;
 BB:=CAPITAL;
换手量:=AA*100/BB;
今日换手:=换手量,VOLSTICK;
换手地量:=今日换手<LLV(今日换手,34)*1.001;
 STICKLINE(换手地量>0,0,V,1,0),COLORFF00FF;
 

73755297.jpg

73755297.jpg

数日前(1-5日)5日成交量均线上穿20日成交量均线后,5日成交量均线一直运行在20日成交量均线上面呈向上发状态。5日成交量均线上穿20日成交量均线前有数个小阳成交量柱

选股公式

 

VOLUME:=VOL;
 MAV5:=MA(VOLUME,5);
 MAV20:=MA(VOLUME,20);
 T:=BARSLAST(CROSS(MAV5,MAV20));
 EVERY(MAV5>MAV20 AND MAV5>REF(MAV5,1),T) AND REF(EVERY(C>O AND BETWEEN(C/REF(C,1),1.005,1.02),4),T);

73888377.jpg

73888377.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则