VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
SS:=EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;
TJ:=(REF(SS,2)REF(SS,1))*SS;
MTJ:=(REF(SS,2)REF(SS,1))*SS,COLORYELLOW,LINETHICK2;
LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
LSS:=FILTER(LS,28);
拉升出击:=REF(TJ,1)>0 AND MTJ=0 AND LSS;
STICKLINE(拉升出击,0,-1.5,1,0),COLORMAGENTA;
DRAWTEXT(拉升出击,-1.3.6,' 拉升出击'),COLORMAGENTA;
YJ:=C>4 AND C<35 AND HHV(H,60)/LLV(L,60)<3;
YZ:=NAMELIKE('ST') OR NAMELIKE('*ST'){ OR CODELIKE('300')};
SSH:=TOTALBARSCOUNT>10;
YO:=YJ AND SSH AND NOT(YZ);
DI:=BETWEEN(HHVBARS(H,29) ,4 ,9);
A:=YO AND DI;
A1:=BARSLAST(A=1);
B:=CROSS(MA(C,5),REF(H,A1)) AND A1<4 AND C>REF(O,1) AND L>REF(L,1) AND C>O
AND MA(C,10)>REF(MA(C,10),1) AND OZZ:=(O+H+L)/3;
ZLX:=EMA(ZZ,55);
ZL:=EMA(ZZ,7);
强龙回头:=O
STICKLINE(强龙回头,0,-1.5,3,0),COLOR808000 ;
DRAWTEXT(强龙回头,-1.3.6,' 强龙回头'),COLOR808000 ;
JJ:=(CLOSE+HIGH+LOW)/3;
AA:=EMA(JJ,10);
BB:=REF(AA,1);
HH:=HHV(REF(H,1),5);
LL:=LLV(REF(L,1),5);
CH:=HHV(REF(C,1),5);
CL:=LLV(REF(C,1),5);
OH:=HHV(REF(O,1),5);
OL:=LLV(REF(O,1),5);
高低比1:=(HH/LL-1)*100<=5;
CC:=ABS(100*(O-C)/O)<1.6;
DD:=COUNT(CC,5)=5;
高低比2:=REF(DD,1)=1 AND DD=0;
收盘比:=(CH/CL-1)*100<=1.6;
开盘比:=(OH/OL-1)*100<=1.6;
破小平台:=高低比1 AND 高低比2 AND 收盘比 AND 开盘比
AND COUNT(C>MAX(AA,BB) AND O>MAX(AA,BB),5)=5
AND C>HH,LINETHICK3,COLORRED;
STICKLINE(破小平台,0,1.5,3,1),COLORRED;
DRAWTEXT(破小平台,1,' 破小平台'),COLORRED;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VAR1S:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR2S:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR3S:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR4S:=(((VAR1S + (2 * VAR2S)) + (3 * VAR3S)) / 6);
VAR5S:=MA(VAR4S,3);
DB:=IF(VAR5S,20,0);
HDY:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
FX:=HDY<=10;
中短通吃:=CROSS(J,K) AND (DB >= 20) AND FX;
STICKLINE(中短通吃,0,1,3,1),COLORYELLOW;
DRAWTEXT(中短通吃,0.9.6,' 中短通吃'),COLORYELLOW;
P1:=EMA(CLOSE,5);
P2:=EMA(CLOSE,29);
AX:=EXIST(CROSS(P1,P2),4) AND P1>REF(P1,1) AND P2>REF(P2,1);
V1:=MA(V,8);
V2:=MA(V,89);
AX1:=EXIST(CROSS(V1,V2),3);
MID:=REF(HIGH+LOW,1)/2;
CR1:=SUM(MAX(0,HIGH-MID),26)/SUM(MAX(0,MID-LOW),26)*100;
MA1:=REF(MA(CR,11),11/2.5+1);
MA2:=REF(MA(CR,21),21/2.5+1);
MA3:=REF(MA(CR,35),35/2.5+1);
MA4:=REF(MA(CR,53),53/2.5+1);
AX2:=CR1>MA1 AND CR1>MA2 AND CR1>MA3 AND CR1>MA4;
中线无敌:=AX AND AX1 AND AX2;
STICKLINE(中线无敌,0,1.5,0.5,0),COLORYELLOW;
DRAWTEXT(中线无敌,1.2,' 中线无敌'),COLORYELLOW;
MA5:=EMA(C,5);
MA13:=EMA(C,13);
YN1:=LLV(L,BARSLAST(CROSS(MA13,MA5))+1);
Y3:=HHV(H,BARSLAST(CROSS(MA5,MA13))+1);
Y4:=LLV(L,BARSLAST(CROSS(MA13,MA5))+1);
E1:=EVERY(RANGE(MA(Y3,5)/MA(YN1,5),0.93,1.2),5);
E2:=EVERY(RANGE(MA(Y3,13)/MA(YN1,13),0.93,1.2),13);
E3:=EVERY(RANGE(MA(Y4,5)/MA(Y3,5),0.93,1.2),5);
E4:=EVERY(RANGE(MA(Y4,13)/MA(Y3,13),0.93,1.2),13);
VAR1N:=C-REF(C,1);
VAR2N:=100*EMA(EMA(VAR1N,6),6)/EMA(EMA(ABS(VAR1N),6),6);
超牛选股:=(LLV(VAR2N,2)=LLV(VAR2N,7) AND COUNT(VAR2N<0,2) AND CROSS(VAR2N,MA(VAR2N,2))) AND
E1 AND E2 AND E3 AND E4;
STICKLINE(超牛选股,0,1.5,1,0),COLOR0080FF;
DRAWTEXT(超牛选股,1.2,' 超牛选股'),COLOR0080FF;
行业:=(HY_INDEXC/REF(HY_INDEXC,1)-1)*100;
大盘:=(INDEXC/REF(INDEXC,1)-1)*100;
个股:=(C/REF(C,1)-1)*100;
个股DIF:=EMA(个股-大盘,12*N)-EMA(个股-大盘,26*N);
个股DEA:=EMA(个股DIF,9*N);
个股MACD:=2*(个股DIF-个股DEA);
行业DIF:=EMA(行业-大盘,12*N)-EMA(行业-大盘,26*N);
行业DEA:=EMA(行业DIF,9*N),COLORYELLOW,LINETHICK2;
行业MACD:=2*(行业DIF-行业DEA);
大盘DIF:=EMA(大盘,12*N)-EMA(大盘,26*N);
STICKLINE(行业MACD>0,0,行业MACD,2,1),COLORLIGRAY;
STICKLINE(行业MACD<0,0,行业MACD,2,1),COLORBLUE;
STICKLINE(个股MACD>0,0,个股MACD,0,1),COLORYELLOW;
STICKLINE(个股MACD<0,0,个股MACD,0,0),COLORMAGENTA;
★个股指数:EMA(个股DIF,N)*5,COLORGREEN;
★大盘指数:EMA(大盘DIF,N)*5,COLORMAGENTA,LINETHICK2;
Z5:=STRCAT('今日大盘上涨家数:',CON2STR(INDEXADV,0));
Z6:=STRCAT(' 下跌家数:',CON2STR(INDEXDEC,0));
DRAWTEXT_FIX(1,0,0.1,0,STRCAT(Z5,Z6)),COLORWHITE;
STICKLINE(MA(INDEXC,5)>MA(INDEXC,10),0,0,5,0),COLORRED;
STICKLINE(MA(INDEXC,5)
SJZH1:=STRCAT('【',HYBLOCK);
SJZH2:=STRCAT(SJZH1,'】板块内涨停数:');
SJZH3:=STRCAT(SJZH2,CON2STR(板块涨停数,0));
SJZH4:=STRCAT(SJZH3,' 支');
SJZH5:=STRCAT('【',HYBLOCK);
SJZH6:=STRCAT(SJZH5,'】板块内无个股涨停');
SJZH7:=STRCAT(SJZH6,' ');
DRAWTEXT_FIX(板块涨停数=0 AND ISLASTBAR,0,0.07,0,'████████████████████'),COLORGREEN;
DRAWTEXT_FIX(板块涨停数=0 AND ISLASTBAR,0,0.07,0,SJZH7),COLORBLACK;
DRAWTEXT_FIX(板块涨停数>0 AND ISLASTBAR,0,0.07,0,'█████████████████████'),COLORRED;
DRAWTEXT_FIX(板块涨停数>0 AND ISLASTBAR,0,0.07,0,SJZH4),COLORYELLOW;