买入:=FILTER(MR,10);
正量放大:=(C>REF(C,1)*1.02 AND V/REF(MA(V,5),1)>2) ;
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VARA:=IF(VA9>100,VA9-100,0);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
VARF:=MA(VARE,3);
生命线:=EMA(VARD,1), COLORFF00FF;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9>100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B11:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
B12:=EMA(B11,5),COLORFF7000;
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5)>MA(C,10);
V3:=MA(V,5)>MA(V,40)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
VV:=V1 AND V2 AND V3 AND V4;
STICKLINE(V1 AND V2 AND V3 AND V4,110,120,2,0),COLORRED;
{控盘}
VAR111:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR111-REF(VAR111,1))/REF(VAR111,1)*1000;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
主力出货:IF(控盘[0,控盘,0),COLOR00FF00,NODRAW;]
{STICKLINE(无庄控盘 OR 主力出货,-60,100,4,0),COLORWHITE;}
DRAWTEXT(会员专用< REF(会员专用,1) AND 会员专用>79,80 ,'逃'),COLORRED,LINETHICK2;
VARR11:=EMA(EMA(CLOSE,3),1);
控:=IF((VARR11-REF(VARR11,1))/REF(VARR11,1)*1000>100,100,(VARR11-REF(VARR11,1))/REF(VARR11,1)*1000);
STICKLINE(控>REF(控,3) AND 控>30,控,0,3.5,0),COLOR000088;
STICKLINE(控>REF(控,3) AND 控>30,控,0,2.5,0),COLOR0000AA;
STICKLINE(控>REF(控,3) AND 控>30,控,0,1.5,0),COLOR0000CC;
STICKLINE(控>REF(控,3) AND 控>30,控,0,1,0),COLOR0000EE;
主力吸货:IF(控>REF(控,3) AND 控>30,控,0),NODRAW,COLOR0000FF;
STICKLINE(控[0,控,0,3.5,0),COLOR008800;]
STICKLINE(控[0,控,0,2.5,0),COLOR00AA00;]
STICKLINE(控[0,控,0,1.5,0),COLOR00CC00;]
STICKLINE(控[0,控,0,1,0),COLOR00EE00;]
对倒出货洗盘:IF(控[0,控,0),NODRAW,COLOR00FF00;]
{//资金流入强度}
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}
ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}
ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}
ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}
ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
流入强度:IF(ZJLRQD>0,ZJLRQD,0),COLOR00FFFF,LINETHICK2;
{资金}
ZJ1:=(HIGH+LOW+CLOSE*2)/4;
ZJ2:=EMA(ZJ1,21);ZJ3:=STD(ZJ1,21);
ZJ4:=((ZJ1-ZJ2)/ZJ3*100+200)/4;ZJ5:=(EMA(ZJ4,89)-25)*1.56;ZJ6:=EMA(ZJ5,5)*1.22;
ZJ7:=EMA(ZJ6,3);ZJ8:=3*ZJ6-2*ZJ7;
ZJ1A:=IF(CROSS(ZJ6,ZJ8) AND CROSS(ZJ7,ZJ8) AND CROSS(ZJ7,ZJ6),1,0);
ZJ1B:=EMA(CLOSE,3)-EMA(CLOSE,89);ZJ1C:=EMA(ZJ1B,21);
ZJ1D:=(ZJ1B-ZJ1C)*10;ZJ1F:=POW(ZJ1D,3)*0.1+POW(ZJ1D,2);
资金1:=IF(ZJ1D>0.015,ZJ1F,0)/6;
拉升资金:=IF(资金1>100,100,资金1),COLORFF00FF;
ZJ9:=EMA(CLOSE,2)-EMA(CLOSE,55);ZJ10:=EMA(ZJ9,13);ZJ11:=2*(ZJ9-ZJ10);
资金2:=IF(POW(ZJ11,3)*0.1+POW(ZJ11,1)>0,POW(ZJ11,3)*0.1+POW(ZJ11,1),0)*10;
主力资金:=IF(资金2>100,100,资金2),COLOR0000FF;
资金:=拉升资金>0 OR主力资金>0;
{周月季年}
MNC:=C#YEAR;
MNO:=O#YEAR;
MNH:=H#YEAR;
MNL:=L#YEAR;
MJC:=C#SEASON;
MJO:=O#SEASON;
MJH:=H#SEASON;
MJL:=L#SEASON;
MYO:=O#MONTH;
MYH:=H#MONTH;
MYL:=L#MONTH;
MYC:=C#MONTH;
周开:=O#WEEK;
周高:=H#WEEK;
周低:=L#WEEK;
周收:=C#WEEK;
周期共振:=MNC>=MNO AND MJC>=MJO AND MYC>=MYO AND 周收>=周开;
NX:=MNC>=MNO;
JX:=MJC>=MJO;
YX:=MYC>=MYO;
ZX:=周收>=周开;
共振:=NX+JX+YX+ZX>=3;
{-----------趋势与股性-----------}
CS:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
M20:=MA(C,20);
M30:=MA(C,30);
M2:=M20>REF(M20,1);
M3:=M30>REF(M30,1);
MCS:=CS>REF(CS,1);
TRD:=M2+M3+MCS>1;{趋势}
ACT:=SMA(MAX(ABS(C-O),ABS(C-REF(C,1)))/REF(C,1)*100,10,1);
YD:=ACT>LLV(ACT,13)*1.2;{异动}
A12:=ACT<=1.95 AND YD;
活跃度:=ACT>=1.95 AND TRD;{强};
龙腾四海:=100-100*(HHV(HIGH,5*100)-CLOSE)/(HHV(HIGH,5*100)-LLV(LOW,5*100));
VARR2:=100*WINNER(CLOSE*0.95);
高度控盘:=VARR2>50 AND COST(85)0;
选:=(龙腾四海>REF(龙腾四海,1) OR 龙腾四海=100) AND 控>40;
X_1:=EMA(CLOSE,9);
X_2:=(CLOSE+OPEN)/2;
X_3:=MA(CLOSE,3);
X_4:=MA(CLOSE,2*3);
X_5:=MA(CLOSE,3*3);
X_6:=MA(CLOSE,4*3);
X_7:=MA((X_3+X_4+X_5+X_6)/4,5);
主升浪1:=EMA(X_1*1.14,5),COLORGREEN;
主升浪2:=(EMA(X_2,3)+EMA(X_2,6)+EMA(X_2,12)+EMA(X_2,24))/4,COLORYELLOW,LINETHICK3;
X_8:=EMA(EMA(EMA(CLOSE,2),2),2);
主升浪3:=MA(X_8,13)*0.999,COLORWHITE,LINETHICK2;
主升浪4:=EMA(CLOSE,3),COLORRED;
主升浪:=选 OR 高度控盘 OR (主升浪4>主升浪2 AND 主升浪2>主升浪3);
全仓:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.03);
STICKLINE(周期共振 AND (周期共振+活跃度+主升浪+全仓>=3),-60,-80,4,0),COLORFF00FF;
STICKLINE(活跃度 AND (周期共振+活跃度+主升浪+全仓>=3),-60,-40,4,0),COLORRED;
STICKLINE(主升浪 AND (周期共振+活跃度+主升浪+全仓>=3),-20,-40,4,0),COLORYELLOW;
STICKLINE(全仓 AND (周期共振+活跃度+主升浪+全仓>=3),0,-20,4,0),COLORFFFF00;
{有庄}
W:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C));
趋势线:=MA(C,W);
N:=35;M:=35;N1:=3;
B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;
B2:=SMA(B1,N,1)+100;
B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
控盘程度:=(IF(B6>N1,B6-N1+2,0))*2.5;
买:=(趋势线>REF(趋势线,1) AND 控>50 AND 控盘程度>0 AND 控盘程度>REF(控盘程度,1));
DRAWTEXT(买,0-15,'买'),COLORFF00FF;
DRAWTEXT(CROSS(0,控盘),0-20,'卖'),COLORGREEN;
DRAWTEXT(VAR6 <= (0 - 10),0-40,'底'),COLORYELLOW;
{有庄}
VART11:=EMA(EMA(C,8),8);
能量:=(EMA(C,8)-EMA(C,55))*10;空头:=EMA(能量,3);
控盘1:=(VART11-REF(VART11,1))/REF(VART11,1)*1000;
BTJ20:=控盘1>=REF(控盘1,1) AND 控盘1<=-0.1;
BTJ30:=CROSS(能量,空头) AND 能量<=-0.3;
JJ:=DYNAINFO(11);
BTJ11:=(C-JJ)/JJ<=-0.03;
有庄:FILTER(BTJ11 AND BTJ20 AND BTJ30,3);
STICKLINE(有庄,-50,-20,5,0),COLOR0000FF;
STICKLINE(有庄,-20,-10,3,0),COLORWHITE;
STICKLINE(有庄,-10,0,1,0),COLORYELLOW;
DRAWTEXT(有庄,-40,'庄'),COLORFFFFFF;
庄:=(COUNT(有庄,120)>4 AND COUNT(有庄,50)>2) OR COUNT(有庄,50)>2 OR COUNT(有庄,30)>1;
有庄狂拉:COUNT(庄,3)>=1 AND 主力吸货>40;
{趋势}
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1
STICKLINE(A3 AND A4,100,110,2,0),COLORYELLOW;
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);
安全位:=20;
低位转强:IF(CROSS(A5,安全位),50,0),COLORRED,STICK,LINETHICK4;
开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0),COLORFF00FF,STICK,LINETHICK4;
A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);
极低涨:IF(A6,50,0),COLORYELLOW,STICK,LINETHICK4;
条件:=COUNT(有庄狂拉,3)+COUNT(有庄,3)+COUNT(买,3)>0;
{火箭}
HAN:=DATE=DATE; MA6:=MA(C,6); MA12:=MA(C,12); MA18:=MA(C,18);
YY1:=OMA6; YY2:=OMA12;
YY3:=OMA18; YY4:=C/O>=1.02; YY5:=V>HHV(H,10);
YY6:=MA6>=REF(MA6,1);
ZZ:=(YY1 AND YY2 AND YY3 AND YY4 AND YY5 AND YY6 AND 主力吸货>36) OR(主力吸货>48 AND 正量放大) OR (控>30 AND 控>REF(控,1) AND(买入 OR 加仓)) AND 资金;
XA:=COUNT(ZZ,3)<=2 AND COUNT(ZZ,3)>0 AND 条件 AND 涨幅>5;
STICKLINE(XA,40,20,3.5,0),COLORA8A8A8;
STICKLINE(XA,50,49,1.7,0),COLORA8A8A8;
STICKLINE(XA,49,48,1.9,0),COLORA8A8A8;
STICKLINE(XA,48,47,2.1,0),COLORA8A8A8;
STICKLINE(XA,47,46,2.3,0),COLORA8A8A8;
STICKLINE(XA,46,45,2.5,0),COLORA8A8A8;
STICKLINE(XA,45,44,2.7,0),COLORA8A8A8;
STICKLINE(XA,44,43,2.9,0),COLORA8A8A8;
STICKLINE(XA,43,42,3.1,0),COLORA8A8A8;
STICKLINE(XA,42,41,3.3,0),COLORA8A8A8;
STICKLINE(XA,41,40,3.5,0),COLORA8A8A8;
STICKLINE(XA,101,96,0.1,0),COLORWHITE;
STICKLINE(XA,96,92,0.3,0),COLORWHITE;
STICKLINE(XA,92,88,0.6,0),COLORWHITE;
STICKLINE(XA,88,84,0.9,0),COLORWHITE;
STICKLINE(XA,84,80,1.2,0),COLORWHITE;
STICKLINE(XA,80,50,1.4,0),COLORWHITE;
STICKLINE(XA,74,70,0.6,0),COLORRED;
STICKLINE(XA,65,64,1.5,0),COLORBLUE;
STICKLINE(XA,51,49,1.5,0),COLORBLUE;
STICKLINE(XA,49,25,1.5,0),COLORWHITE;
STICKLINE(XA,25,20,1.3,0),COLORRED;
STICKLINE(XA,20,13,1,0),COLORRED;
STICKLINE(XA,13,7,0.7,0),COLORRED;
STICKLINE(XA,7,1,0.3,0),COLORRED;
STICKLINE(XA,1,(-7),0.1,0),COLORRED;
STICKLINE(XA,24.799999,21.799999,1,0),COLORYELLOW;
STICKLINE(XA,21.799999,18.799999,0.5,0),COLORYELLOW;
STICKLINE(XA,18.799999,15.8,0.1,0),COLORYELLOW;
STICKLINE(XA,60,55,0.5,0),COLORRED;
STICKLINE(有庄狂拉,0,20,4,0),COLORYELLOW;
DRAWTEXT(有庄狂拉,100,'强'),COLORYELLOW;
DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C=1.01,L-L*0.02,'★<--极品绝底初现'),LINETHICK1;
DRAWTEXT(CROSS(特殊会员专用, 8) AND Q10<-13,20,'*大底来'),COLORBLUE,LINETHICK5;
DRAWTEXT(CROSS(跨越,机构做空能量线) AND 机构做空能量线<80 AND REF(机构做空能量线,1)>机构做空能量线 AND 跨越>REF(跨越,1) AND 流入强度>1,80,'进入强势区域'),COLORFF00FF;
DRAWTEXT(CROSS(特殊会员专用,跨越) AND 机构做空能量线<80 AND REF(机构做空能量线,1)>机构做空能量线 AND 跨越>REF(跨越,1) AND MA30>REF(MA30,1) AND C>=MA30 AND 流入强度>18,100,'进入拉升区域'),COLORFF00FF;
DRAWTEXT(CROSS(跨越,特殊会员专用) ,70,'注意调整'),COLORGREEN,LINETHICK1;
●注意买入点: DRAWTEXT(REF(CROSS(机构做空能量线,跨越),25) AND 机构做空能量线>1.005*跨越,100,'●<-注意买入点'),COLORRED;
★逢低买入: DRAWTEXT(REF(CROSS(跨越,特殊会员专用),82) AND 机构做空能量线[1.3*特殊会员专用,特殊会员专用,'★<<-逢低买入'),LINETHICK1;]