N11:=4;
M11:=4;
NN:=8;
MM1:=3;
MM2:=3;
X_1A:=60;
X_2A:=(WINNER(CLOSE)-WINNER(CLOSE/1.3))*100;
X_3A:=WINNER(CLOSE/1.1)*100;
X_4A:=LLV(MA((LOW+HIGH+3*CLOSE+OPEN)/7,7),89);
X_5A:=EMA((LOW+HIGH+3*CLOSE+OPEN)/6*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+X_4A,2)*2+100;
X_6A:=(1.86*EMA(CLOSE,5)-EMA(CLOSE,13))*2+100;
X_7A:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
X_8A:=IF(MA(CLOSE,17)< X_7A,X_7A,MA(CLOSE,17));
X_9A:=(X_8A-(EMA(CLOSE,3)-X_8A))*2+100;
X_10A:=X_6A>=X_5A;
X_11A:=X_3A>=X_2A;
X_12A:=X_3A>X_1A;
双红:(X_10A AND X_11A AND X_12A)*1.6,COLORRED;
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+M11*STD(BBIBOLL,N11);
DWN:=BBIBOLL-M11*STD(BBIBOLL,N11);
UPPER1:=(1+MM1/100)*MA(CLOSE,NN);
LOWER1:=(1-MM2/100)*MA(CLOSE,NN);
ENE:=(UPPER1+LOWER1)/2;
SS:=UPR>=UPPER1 AND DWN<=LOWER1 AND BBIBOLL>=REF(BBIBOLL,1) ;
布林笑来恩:(SS AND C>(REF(C,1)))*1.25,COLOR00FFFF;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);
SD:=EMA(SK,5);
空方主力:=(-2*(SK-SD))*3.8,COLORGREEN;
多方主力:=(2*(SK-SD))*3.8,COLORRED;
MA11:=MA(CLOSE,5);
MA22:=REF(MA(CLOSE,5),1);
GU2:=IF(MONTH< 12,1,1);
GU3:=(2*CLOSE+HIGH+LOW)/4;
GU4:=LLV(LOW,34);
GU5:=HHV(HIGH,34);
主力:=EMA((GU3-GU4)/(GU5-GU4)*100,13)*GU2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5< 150;
X_13:=(OPEN-X_10)/X_10*100< 30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100< 50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
X_16:=VOL/MA(VOL,5)< 3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2< 0.1;
X_21:=(CLOSE-X_1)/X_1< 0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:=X_25 AND X_27 AND X_28 AND REF(NOT(X_28),1) AND (多方主力>空方主力) AND (MA22<= MA11) AND (主力>散户) AND (DIFF>DEA) AND (K>D) AND (RSI1>RSI2) AND (LWR1>LWR2) AND (CLOSE>BBI) AND (MMS>MMM);
DIF600:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA600:=EMA(DIF600,9/2);
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
周MD1:=MACD.DIF#WEEK;
周MA1:=MACD.DEA#WEEK;
月MD1:=MACD.DIF#MONTH;
月MA1:=MACD.DEA#MONTH;
RSV600:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36));
K600:=SMA(RSV600,3,1);
D600:=SMA(K600,3,1);
RSV101:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
KGG:=SMA(RSV101,3,1);
DGG:=SMA(KGG,3,1);
JGG:=3*KGG-2*DGG;
周K1:="KDJ.K#WEEK" ;
周D1:="KDJ.D#WEEK" ;
月K1:="KDJ.K#MONTH" ;
月D1:="KDJ.D#MONTH" ;
GZ: DIF600>=DEA600 AND DIF1>=DEA1 AND 周MD1>=周MA1 AND 月MD1>=月MA1 AND K600>= D600 AND KGG>=DGG AND 周K1>=周D1 AND 月K1>=月D1,NODRAW;
N:=30;
C0:=HHV(H,N);
C0A:=REF(C,1);
C1:=(C0-H)/H;
D1:=(H=C0);
D2:=(C1>0 AND C1<=0.0123);
超短:STICKLINE((OPEN-C0A)/C0A> -9.999 AND (D1 OR D2),0,-1,-1,0),COLORRED ;
N123:=10;
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01 * 1.04)) * 100.000);
A03:=(WINNER((A01 * 0.96)) * 100.000);
获利盘:=A03,NODRAW;
浮动盘:=A02-A03,NODRAW;
套牢盘:=( 100.000 - A02),NODRAW;
A0A:=(((((HHV(获利盘, 30.000) - A03) / A03) * 100.000) > N123) AND (HHV(获利盘, 30.000) >20.000));
STICKLINE(NOT(A0A),(-0.6.0), -1.0, 3.0,0),COLORMAGENTA;
MA5:=MA(C,5);
QSX:=HHV(MA5,100);
X1:=REF(QSX,1)>=REF(MA5,1);
X2:=C>QSX;
突破趋势:=X1 AND X2;
STICKLINE(突破趋势,0,1.2,2.8,0),COLORC727F5;
MA55:=MA(C,5);
QSX1:=HHV(MA55,100);
X11:=REF(QSX1,1)>REF(MA55,1);
X22:=MA55=QSX1;
趋势线重合:= X11 AND X22 ;
STICKLINE(趋势线重合,0,0.9,2.8,0),COLORFF0000;
VAR4:=(LOW+HIGH+CLOSE)/3;
操作:= MA(VAR4,5);
拉升:= HHV(操作,13);
压力:= HHV(操作,60);
两线重合:=操作=拉升 AND C/REF(C,1)>1.02;
STICKLINE(两线重合,0,0.6,2.8,0),COLOR00FF00;
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,0,0.3,2.8,0),COLORYELLOW;
TA:=BARSSINCE(CLOSE);
MA502:=IF(TA>=5,MA(C,5),0);
MA10:=IF(TA>=10,MA(C,10),0);
MA20:=IF(TA>=20,MA(C,20),0);
MA60:=IF(TA>=60,MA(C,60),0);
MA120:=IF(TA>=120,MA(C,120),0);
MA250:=IF(TA>=250,MA(C,250),0);
ABC1:=MA502>MA10 AND MA10>MA20 AND MA20>MA60 AND MA60>MA120 AND MA120>MA250;
LMAX1:=MAX(MAX(MA502,MA10),MAX(MA20,MA60));
LMAX2:=MAX(MAX(MA60,MA120),MAX(MA120,MA250));
XG:=C>=LMAX1 AND C>=LMAX2;
DRAWTEXT(XG,0.8,'※'),COLOR00FFFF;
DRAWICON(GZ,0.2,23);
DRAWICON(X_29,1.6,9);