N日:=2;
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=crOSS(控盘,0);
做多:=IF(A10,5,0);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,20);
X_3:=MA(CLOSE,30);
X_4:=MA(CLOSE,54);
X_5:=MA(CLOSE,60);
X_6:=MA(CLOSE,120);
X_7:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_8:=FILTER(X_7,10);
X_9:=BArslAST(X_8);
X_10:=REF(HIGH,X_9+2);
X_11:=REF(HIGH,X_9+1);
X_12:=REF(HIGH,X_9);
X_13:=MAX(X_10,X_11);
X_14:=MAX(X_13,X_12);
X_15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_16:=X_9<150;
X_17:=(OPEN-X_14)/X_14*100<30;
X_18:=(CLOSE-LLV(LOW,X_9))/LLV(LOW,X_9)*100<50;
X_19:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_20:=vol/MA(VOL,5)<3.5;
X_21:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_22:=X_15ANDX_16ANDX_17ANDX_18ANDX_19ANDX_20ANDX_21;
X_23:=FILTER(X_22,15);
X_24:=(CLOSE-X_4)/X_4<0.1;
X_25:=(CLOSE-X_1)/X_1<0.3;
X_26:=(X_24=1ANDX_25=1)*0.2;
X_27:=(X_26=0ANDREF(X_26,1)=0.2ANDREF(COUNT(X_26=0.2,10)=10,1)=1)*(-0.1);
X_28:=X_27=(-0.1);
X_29:=X_23ORX_28;
X_30:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
X_31:=DYNAINFO(7)/REF(CLOSE,1)>1.05ANDDYNAINFO(7)/OPEN>1.05;
X_32:=VOL/REF(VOL,1)>1.2ANDCOUNT(CLOSE>OPEN,1)OR(LOW>REF(HIGH,1)ANDCOUNT(OPEN>CLOSE,1)ANDVOL/REF(VOL,1)>1.2);
妖股:=X_29ANDCLOSE/REF(CLOSE,1)>1.095ANDX_32ANDX_31;
LCZ:=REF(CLOSE,1);
rsiZ:=((SMA(MAX((CLOSE-LCZ),0),3,1)/SMA(Abs((CLOSE-LCZ)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
VAR91:=IF(YEAR>=2038ANDMONTH>=1,0,1);
VAR92:=REF(LOW,1)*VAR91;
VAR93:=SMA(ABS(LOW-VAR92),3,1)/SMA(MAX(LOW-VAR92,0),3,1)*100*VAR91;
VAR94:=EMA(IF(CLOSE*1.3,VAR93*10,VAR93/10),3)*VAR91;
VAR95:=LLV(LOW,30)*VAR91;
VAR96:=HHV(VAR94,30)*VAR91;
VAR97:=IF(MA(CLOSE,58),1,0)*VAR91;
VAR98:=EMA(IF(LOW<=VAR95,(VAR94+VAR96*2)/2,0),3)/618*VAR97*VAR91;
吸筹:=IF(VAR98>100,100,VAR98)*VAR91,COLORFFC0CB;
庄家吸筹:STICKLINE(吸筹>-150,0,吸筹*0.05,5,0),COLORRED;
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR12:=VAR10<REF(VAR11,1)ANDVOL>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
DRAWTEXT(VAR12ANDCOUNT(VAR12,30)=1,0.6,'—大资金!');
资金进场:VAR12ANDCOUNT(VAR12,30)=1,NODRAW;
STICKLINE(资金进场,0,2,3,0),COLORBLUE;
MA5:=MA(CLOSE,5);
MA13:=MA(CLOSE,13);
MA21:=MA(CLOSE,21);
MA34:=MA(CLOSE,34);
MA55:=MA(CLOSE,55);
MA144:=MA(CLOSE,144);
MA233:=MA(CLOSE,233);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
V144:=MA(V,144);
TJ1:=CROSS(V,V144);
TJ2:=C>MA233ANDC/MA233<1.15;
TJ3:=做多=5ANDMA233>REF(MA233,1);
TJ4:=妖股=1;
高超音速飞行:C<60ANDTJ2ANDTJ3ANDTJ4,NODRAW;
主趋势线:=EMA(EMA(C,10),10);
AAAZ:=(3*C+H+L+O)/6;
VAR101:=(8*AAAZ+7*REF(AAAZ,1)+6*REF(AAAZ,2)+5*REF(AAAZ,3)+4*REF(AAAZ,4)+3*REF(AAAZ,5)+2*REF(AAAZ,6)+REF(AAAZ,8))/36;
VAR201:=(HHV(VAR101,5)+HHV(VAR101,10)+HHV(VAR101,20))/3;
VAR301:=(LLV(VAR101,5)+LLV(VAR101,10)+LLV(VAR101,20))/3;
VAR401:=(HHV(VAR201,5)+HHV(VAR201,10)+HHV(VAR201,20))/3;
VAR501:=(LLV(VAR301,5)+LLV(VAR301,10)+LLV(VAR301,20))/3;
VAR601:=(LLV(VAR101,2)+LLV(VAR101,4)+LLV(VAR101,6))/3;
短线:=VAR101;
NOTEXT1:=IF(C>=短线,短线,DRAWNULL);
NOTEXT2:=IF(C<短线,短线,DRAWNULL);
中线:=VAR601;
M1:=VAR101>VAR601;
M2:=VAR101<=VAR601;
飞行器:M1ANDLAST(M2,N日,1)ANDC>中线ANDC>REF(C,1)ANDC>MA(CLOSE,144)
ANDO<MA(CLOSE,144)ANDC>MA233ANDC>MA(CLOSE,60)ANDO<MA(CLOSE,60),NODRAW;
S1:=IF(CODELIKE('688'),0,1);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
TJ5:=S1ANDS2ANDS3;
超音速飞行:C<60ANDTJ2ANDTJ4ANDTJ5,NODRAW;
STICKLINE(超音速飞行,0,2.6,3,0),COLORWHITE;
STICKLINE(超音速飞行,0,1.7,1.3,0),COLORRED;
STICKLINE(超音速飞行,1.7,3.4,1.3,0),COLORYELLOW;
DRAWTEXT(超音速飞行,0.8,'超音速飞行'),COLORWHITE;{红牛初选}
STICKLINE(高超音速飞行,0,3,2,0),COLORYELLOW;
STICKLINE(高超音速飞行,0.3,0.5,2,0),COLORRED;
STICKLINE(高超音速飞行,2.7,2.5,2,0),COLORRED;
DRAWTEXT(高超音速飞行,1.5,'高超音速飞行'),COLORWHITE;
STICKLINE(飞行器,3.2,2.8,1,0),COLORRED;
STICKLINE(飞行器,2.8,2.4,1.5,0),COLORMAGENTA;
STICKLINE(飞行器,2.4,2,2,0),COLORYELLOW;
STICKLINE(飞行器,2,1.6,2.2,0),COLORMAGENTA;
STICKLINE(飞行器,1.6,1.2,2.5,0),COLORRED;
STICKLINE(飞行器,1.2,0.8,3,0),COLORCYAN;
STICKLINE(飞行器,0.8,0.4,4,0),COLORYELLOW;
STICKLINE(飞行器,0.4,0,5,0),COLORWHITE;
DRAWICON(飞行器,3,13);
DRAWTEXT(飞行器,2.2,'飞行器'),COLORWHITE;
{板块市值业绩}
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK)));
总股本:=STRCAT(STRCAT('总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT('流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT('全流通:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT('流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
上市日期:=STRCAT('上市日期:',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
股本市值:=STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));
市盈率:=STRCAT('市盈率:',CON2STR(C/FINANCE(33),2));
市销率:=STRCAT('市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
市净率:=STRCAT('市净率:',CON2STR(C/FINANCE(34),2));
净资收益率:=STRCAT('净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
毛利率:=STRCAT('毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
净利润率:=STRCAT('净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
主营利润率:=STRCAT('主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.2,0,所属板块),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.4,0,股本市值),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.6,0,当前业绩),COLORMAGENTA;