量变
{量变公式,内容较多,未整理,感觉有用大家多探讨一下}
{一量变}
{N88 1 600 60 }
N88:=60;
{VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;}
盘中虚拟:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,盘中虚拟,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
MA5:=MA(VOLUME,5);
MA10:=MA(VOLUME,10),COLORWHITE,LINETHICK1;
MA35:MA(VOLUME,35),COLORYELLOW,LINETHICK2;
MA135:MA(VOLUME,135),,COLORMAGENTA
,LINETHICK2;
RSV33:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K33:=SMA(RSV33,3,1),COLORWHITE;
D33:=SMA(K33,3,1),COLORYELLOW;
J33:=3*K33-2*D33,COLORCYAN;
区间涨幅:SUM(
(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,N88),NODRAW,COLORYELLOW;
MA120:=MA(VOLUME,120);
涨跌幅:=(C-REF(C,1))/REF(C,1)*100;
近期大跌:IF(SUM(涨跌幅,60)<-90,MA120*2,0),COLORWHITE,LINETHICK4;
DRAWTEXT(近期大跌=MA120*2,MA120*2*1.1,'跌幅大'),COLORWHITE;
{趋势线选股}
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);{13}
VAR2E:=(VAR2A+VAR2C)/2/1.1;
VAR28:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR29:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR30:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR31:=REF(CLOSE,1);
VAR32:=SMA(MAX(CLOSE-VAR31,0),5,1)/SMA(ABS(CLOSE-VAR31),5,1)*100;
VAR33:=(HIGH+LOW+CLOSE)/3;
VAR34:=(VAR33-MA(VAR33,14))/(0.015*AVEDEV(VAR33,14));
超短:=EMA(VAR2E,3),COLORRED ;
短线:=EMA(超短,5),COLORWHITE;
中线:=MA(短线,60),COLORGREEN;
趋势线:=EMA((VAR2B+VAR2D)/2,2) ,COLORYELLOW;
日换手:=DYNAINFO(37),NODRAW,COLORWHITE;
周换:=SUM(DYNAINFO(37),5),NODRAW,COLORRED;
十日换:=SUM(DYNAINFO(37),10),NODRAW,COLORWHITE;
月换:=SUM(DYNAINFO(37),20),NODRAW,COLORYELLOW;
趋低高月换:=IF(月换>70 AND 趋势线<-18,1,0),NODRAW,COLORMAGENTA;
{DRAWTEXT(高月换,50,'趋低高月换'),COLORWHITE;}
趋低地量:IF(月换<20 AND 趋势线<-18,1,0),NODRAW,COLORWHITE;
{DRAWTEXT(高月换,50,'趋低高月换'),COLORWHITE;}
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
活跃股:IF(COUNT(涨停,60)>=4,1,0),NODRAW,COLORRED,LINETHICK3;
最高量20日:=IF(VOL > REF(HHV(VOL,20),1)*1.0 AND VOL<
REF(HHV(VOL,40),1)*1.0 ,1,0);
DRAWTEXT(最高量20日=1,VOL*1.02,'20天内最高量'),COLORGREEN;
最高量40日:=IF(VOL > REF(HHV(VOL,40),1)*1.0 AND VOL<
REF(HHV(VOL,60),1)*1.0 ,1,0);
DRAWTEXT(最高量40日=1,VOL*1.02,'40天内最高量'),COLORGREEN;
最高量60日:=IF(VOL > REF(HHV(VOL,60),1)*1.0 AND VOL<
REF(HHV(VOL,90),1)*1.0 , 1,0);
DRAWTEXT(最高量60日=1,VOL*1.02,'60天内最高量'),COLORGREEN;
最高量90日:=IF(VOL > REF(HHV(VOL,90),1)*1.0 AND VOL<
REF(HHV(VOL,120),1)*1.0 , 1,0);
DRAWTEXT(最高量90日=1,VOL*1.02,'90天内最高量'),COLORGREEN;
最高量120日:=IF(VOL > REF(HHV(VOL,120),1)*1.0 AND VOL<
REF(HHV(VOL,150),1)*1.0, 1,0) ;
DRAWTEXT(最高量120日=1,VOL*1.02,'120天内最高量'),COLORGREEN;
最高量150日:=IF(VOL > REF(HHV(VOL,150),1)*1.0 AND VOL<
REF(HHV(VOL,180),1)*1.0, 1,0);
DRAWTEXT(最高量150日=1,VOL*1.02,'150天内最高量'),COLORGREEN;
最高量180日:=IF(VOL > REF(HHV(VOL,180),1)*1.0 AND VOL<
REF(HHV(VOL,210),1)*1.0, 1,0);
DRAWTEXT(最高量180日=1,VOL*1.02,'180天内最高量'),COLORGREEN;
最高量210日:=IF(VOL > REF(HHV(VOL,210),1)*1.0 AND VOL<
REF(HHV(VOL,250),1)*1.0, 1,0);
DRAWTEXT(最高量210日=1,VOL*1.02,'210天内最高量'),COLORGREEN;
最高量250日:=IF(VOL > REF(HHV(VOL,250),1)*1.0, 1,0);
DRAWTEXT(最高量250日=1,VOL*1.02,'250天内最高量'),COLORGREEN;
最高量5日:=IF(VOL > REF(HHV(VOL,5),1)*1.0 AND VOL<
REF(HHV(VOL,10),1)*1.0 , 1,0);
DRAWTEXT(最高量5日=1,VOL*1.02,'5天内最高量'),COLORGREEN;
最高量5日1:=IF(VOL > REF(HHV(VOL,5),1)*1.0
, 1,0);
最高量10日:=IF(VOL > REF(HHV(VOL,10),1)*1.0 AND VOL<
REF(HHV(VOL,20),1)*1.0 , 1,0);
DRAWTEXT(最高量10日=1,VOL*1.02,'10天内最高量'),COLORGREEN;
{
低位放量}
{盘中虚拟:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,盘中虚拟,0,-1,-1),COLOR00C0C0;}
虚拟量放大:=IF(盘中虚拟>REF(VOLUME,1),1,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(虚拟量放大,盘中虚拟*1.1,'虚拟量放大'),COLORWHITE;
最高量5日2:=IF(盘中虚拟 > REF(HHV(VOL,5),1)*1.0 , 1,0);
虚拟低位放量:=IF( 最高量5日2=1 AND D33<25,1,0),
COLORYELLOW,LINETHICK3;
DRAWTEXT(虚拟低位放量=1,盘中虚拟*1.2,'虚拟低位放量'),COLORMAGENTA;
低位放量:IF( 最高量5日1=1 AND D33<25,V*1.5,0),COLORYELLOW,LINETHICK3;
{DRAWTEXT(低位放量=V*2,V*1.8,'下跌放量'),COLORGREEN;};
{量3}
M1:=5;
M2:=10;
{VOLUME:VOL,VOLSTICK;}
VMA5:MA(VOLUME,M1),COLORGREEN,LINETHICK2;
VVV:VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2);
放量:IF(MA(VOL,5)>=REF(MA(VOL,5),1),MA(VOL,5),DRAWNULL),COLORRED,LINETHICK2;
持续缩量:=IF(COUNT(VOL<=REF(VOL,1),3)=3 AND K33<20,1,0);
放量缩量:=IF(COUNT(低位放量=V*2,7)>=1 AND COUNT(低位放量=V*2,3)<1 AND
COUNT(持续缩量,1)=1 AND OPEN>C*0.99 AND K33<20,1,0);
{DRAWTEXT(放量缩量=1,MA5*2,'放缩量'),COLORRED;}
{放量后跌:=IF(COUNT(低位放量=V*2,7)>=1 AND COUNT(低位放量=V*2,5)<1 AND
(C<REF(C,6)*0.85 OR C<REF(C,5)*0.9 OR C<REF(C,7)*0.8) AND
K33<20,1,0);
DRAWTEXT(放量后跌=1,MA5*3,'量后跌'),COLORMAGENTA;}
EMAJ30:=MA(J33,30);
阴多于阳:=IF(COUNT(OPEN>CLOSE,7)/7 >= 70/100 AND
D33<15 AND OPEN>CLOSE*0.98 AND EMAJ30<18,V*2.5,0),COLORMAGENTA,LINETHICK3;
{DRAWTEXT(阴多于阳=V*2.5,V*2.0,'阴多于阳'),COLORMAGENTA;};
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC>1.88 ,MA(DDD,3),DDD);
满仓2:=ZZZ*0.83,COLORBLUE,LINETHICK3;
满仓1:=0.72*MA(FORCAST(CLOSE,2),40),POINTDOT,LINETHICK4,COLOR0000FF;
满仓线下:=IF(L<满仓2 AND L<满仓1,MA120*3,0),COLORRED,LINETHICK3;
{DRAWLINE(V>=HHV(V,30),V,V<=LLV(V,10),HHV |