金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
短趋势线:=MA(CLOSE,13);
{主力动向监控}
R1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
R2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
R3:=EMA(0.618*REF(R2,1)+0.382*R2,2);
R4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
R5:=POW(MA(LOW,5),2)+MA(LOW,5);
R6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
R7:=(R4-LLV(R5,64))/(HHV(R6,64)-LLV(R5,64))*150+65-10;
R8:=SMA((SMA(R7,3,1)*1.5-100),3,1);
R9:=3*(SMA(R7,3,1)*1.5-100)-2*R8;
R10:=(HIGH+LOW+CLOSE*2)/4;
R11:=(R10-(EMA(R10,13)))*100/(STD(R10,13));
R12:=EMA((EMA(R11,5)),13)+200-100;
R13:=(SMA(R1,3,1))+R2+(SMA(R7,3,1)*1.5-100)+R12;
R14:=(SMA((SMA(R1,3,1)),3,1))+R3+R8+(EMA(R12,10));
R15:=(3*(SMA(R1,3,1))-2*(SMA((SMA(R1,3,1)),3,1)))+(3*R12-2*(EMA(R12,10)))+
R9+(3*R12-2*(EMA(R12,10)));
R16:=(HIGH+LOW+CLOSE)/3;
R17:=(R16-MA(R16,34))/(0.015*AVEDEV(R16,34));
R18:=(HIGH+LOW+CLOSE+R16)/4;
R19:=(R18-(EMA(R18,24)))/(STD(R18,24))*100;
R20:=(R16-MA(R16,24))/(0.015*AVEDEV(R16,24));
R21:=(((EMA(R19,5))+R20+R17)/3+165)/4;
R22:=(R13+R14+R15*30)/32/5-15;
A1:=EMA(EMA(CLOSE,13),13);
A2:=(A1-REF(A1,1))/REF(A1,1)*6400;
A3:=100*WINNER(CLOSE*0.95);
买卖: EMA(((R21+R22)/2/1.1),1),COLORRED,LINETHICK2;
确认:MA(买卖,3),COLORWHITE,LINETHICK2;
DRAWICON(LONGCROSS(买卖,确认,0.1) AND 买卖<100,确认,9);
DRAWICON(LONGCROSS(确认,买卖,0.1)AND 买卖>120,确认,15);
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=CROSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
短买:IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,50,20),COLORLIBLUE;
短卖:IF(PEAKBARS(2,9,1)=1,50,80),COLORMAGENTA;
中买 : IF(TROUGHBARS(3,18,1)=0 AND HIGH>LOW+0.1,20,0),COLORLIMAGENTA,LINETHICK2;
中卖: IF(PEAKBARS(2,15,1)=0,80,100),COLORRED;
全买: (ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2))
*90,STICK,COLORRED,LINETHICK3;
DRAWTEXT(全买>0,全买,'全买'),COLORRED;
全卖: (ZIG(3,35)<REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)>REF(ZIG(3,35),2))
*90,STICK,COLORGREEN,LINETHICK3;
DRAWTEXT(全卖>0,全卖,'全卖'),COLORGREEN;
中线:50,COLORWHITE;
{庄家抬轿}
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;
A10:=CROSS(控盘,0);
无庄:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始:IF(A10,5,0),LINETHICK1,COLORYELLOW;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;
有庄:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;
高度:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;
出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;
{风控逃顶}
VARA1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VARA2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR3:=BARSCOUNT(CLOSE);
VAR4:=VARA1<20 AND VARA2<23 AND VAR3>35;
VAR5:=VAR4 AND COUNT(VAR4,1)=1;
VAR6:=EMA(CLOSE,21)-EMA(CLOSE,8);
VAR7:=EMA(VAR6,5);
VAR8:=TROUGHBARS(3,6,1)<4 AND CROSS(VAR6,VAR7);
VAR9:=(HIGH+LOW+CLOSE)/3;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,80,0);
VAR11:=(VAR9-MA(VAR9,14))/(0.015*AVEDEV(VAR9,14));
见底: VAR10,COLORYELLOW,LINETHICK3;
DRAWTEXT(VAR11<-110 AND 见底>0,80,'见底'),COLORYELLOW;
DRAWTEXT(见底 AND VAR11<-100 AND VAR8 AND VAR5>0,80.1,''),COLORRED;
DRAWICON(见底>0,80,1);
VAR12:=PEAKBARS(3,15,1)<10;
VAR13:=IF(VAR12=1,2,0);
顶:= IF(VAR13=2,2,0);
逃命:IF(顶>REF(顶,1),75,0),COLORRED,LINETHICK2;
DRAWTEXT(逃命=75,75,'逃!'),COLORRED;
RSVW:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*5;
FASTK:=SMA(RSVW,75,1);
{金针探底}
HJ_1W:=REF(LLV(LOW,152),1);
HJ_2W:=REFDATE(HJ_1W,DATE);
HJ_3W:=REFDATE(HJ_2W,DATE);
HJ_4W:=HJ_3W=LOW AND (HIGH+LOW<OPEN+CLOSE OR OPEN+LOW<HIGH+OPEN);
HJ_5W:=DRAWTEXT(HJ_4W,LOW*1,5);
XGW:HJ_4W AND FINANCE(7)<15000000512 AND DYNAINFO(17)>0.5,NODRAW;
STICKLINE(XGW>REF(XGW,1) AND XGW>0,0,XGW,100,0),COLOR660066;
STICKLINE(XGW>REF(XGW,1) AND XGW>0,0,XGW,30,0),COLORRED;
DRAWICON(XGW>REF(XGW,1) AND XGW>0,95,25);
DRAWICON(XGW>REF(XGW,1) AND XGW>0,80,26);
DRAWICON(XGW>REF(XGW,1) AND XGW>0,65,24);
DRAWICON(XGW>REF(XGW,1) AND XGW>0,45,27);
DRAWTEXT(XGW,60,'金针探底'),COLORYELLOW;
{电线杆}
HJ_1:=1*AMOUNT;
HJ_2:=HHV(HJ_1,210)=HJ_1;
HJ_3:=HHV(HJ_1,30)=HJ_1;
HJ_4:=HHV(HJ_1,60)=HJ_1;
HJ_5:=HHV(HJ_1,100)=HJ_1;
HJ_6:=HHV(HJ_1,250)=HJ_1;
HJ_7:=HJ_2 OR HJ_3 OR HJ_4 OR HJ_5 OR HJ_6 AND CAPITAL/1000000<=35 AND CLOSE>REF(CLOSE,1);
HJ_8:=CLOSE<OPEN OR (CLOSE=OPEN AND CLOSE<REF(CLOSE,1));
HJ_9:=CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND REF(CLOSE,1)<REF(OPEN,1) AND VOL>REF(VOL,1);
HJ_10:=CLOSE>OPEN AND REF(CLOSE,1)<REF(OPEN,1) AND HIGH<REF(OPEN,1) AND CLOSE<(REF(OPEN,1)-REF(CLOSE,1))/3+REF(CLOSE,1) AND VOL<REF(VOL,1);
HJ_11:=(MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE))*2/5+MIN(OPEN,CLOSE);
HJ_12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.04 OR CLOSE/OPEN>=1.04 AND HIGH>LOW;
HJ_13:=VOL<=MA(VOL,60) OR VOL/REF(VOL,1)<=1.2 OR VOL<HHV(VOL,5);
HJ_14:=(OPEN-CLOSE)/OPEN>=0.04 OR (REF(CLOSE,1)/CLOSE>=1.04 AND CLOSE<OPEN);
HJ_15:=VOL/MA(VOL,60)<=2/3 OR VOL/REF(VOL,1)<=1.15 OR VOL<HHV(VOL,5);
HJ_16:=HJ_12 AND HJ_13 AND HIGH>LOW;
HJ_17:=HJ_14 AND HJ_15;
HJ_18:=REF(VOL,2)>REF(VOL,1) AND REF(VOL,1)>VOL;
HJ_19:=VOL>REF(HHV(VOL,100),1) AND HIGH>LOW;
HJ_20:=HHV(MAX(CLOSE,OPEN),5)/LLV(MIN(CLOSE,OPEN),5)>=1.1 AND MAX(CLOSE,OPEN)=HHV(MAX(CLOSE,OPEN),5) AND (HJ_7 OR REF(HJ_7,1));
HJ_21:=HJ_17 AND (OPEN/CLOSE>1.05 OR REF(CLOSE,1)/CLOSE>=1.05) AND VOL/REF(VOL,1)<=1.5 AND REF(CLOSE,1)>REF(OPEN,1);
HJ_22:=REF(HJ_8,1) AND HJ_17 OR (REF(HJ_17,1) AND HJ_8) OR (REF(HJ_17,1) AND HJ_17) OR (REF(HJ_8,1) AND HJ_8 AND REF(OPEN,1)/CLOSE>=1.055) AND (VOL<REF(VOL,1) OR (HJ_17 AND VOL/REF(VOL,1)<=1.5));
HJ_23:=REF(HJ_8,2) OR REF(HJ_17,2) AND (REF(HJ_8,1) OR REF(HJ_10,1) OR REF(HJ_17,1)) AND (HJ_17 OR HJ_8) AND REF(OPEN,2)/CLOSE>=1.065 AND (VOL<REF(VOL,1) OR (HJ_17 AND VOL/REF(VOL,1)<=1.5));
HJ_24:=REF(HJ_8,3) OR REF(HJ_17,3) AND (REF(HJ_8,2) OR REF(HJ_10,2) OR REF(HJ_17,2)) AND (REF(HJ_8,1) OR REF(HJ_17,1) OR REF(HJ_10,1)) AND (HJ_17 OR HJ_8) AND REF(OPEN,3)/CLOSE>=1.075 AND (VOL<REF(VOL,1) OR (HJ_17 AND VOL/REF(VOL,1)<=1.5));
HJ_25:=HJ_21 OR HJ_22 OR HJ_23 OR HJ_24;
HJ_26:=REF(HJ_25,1) AND REF(HJ_17,1) AND (CLOSE>REF((OPEN+CLOSE)/2,1) AND HJ_16);
HJ_27:=REF(HJ_25,1) AND REF(HJ_17,1) AND CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND OPEN>REF(CLOSE,1);
HJ_28:=REF(HJ_25,1) AND (HJ_16 OR (VOL/REF(VOL,1)>2 AND VOL/REF(VOL,1)<5)) AND NOT(HJ_7) AND CLOSE>REF(HJ_11,1);
HJ_29:=REF(HJ_25,1) AND VOL>REF(VOL,1) AND CLOSE>OPEN AND OPEN<REF(CLOSE,1) AND CLOSE>REF(OPEN,1) AND CLOSE/OPEN>1.03;
HJ_30:=REF(HJ_21,1) AND VOL>REF(VOL,1) AND CLOSE>(REF(CLOSE,2)+REF(CLOSE,1))/2;
HJ_31:=HJ_26 OR HJ_27 OR HJ_28 OR HJ_29 OR HJ_30;
HJ_32:=REF(HJ_25,2) AND REF(HJ_8,1) AND REF(VOL,1)<REF(VOL,2) AND HJ_16;
HJ_33:=HJ_32;
择幅建仓:=HJ_31 OR HJ_33 AND NOT(COUNT(HJ_20,4)),COLORYELLOW,LINETHICK2;
STICKLINE(择幅建仓,0,20,2.5,0),COLORYELLOW;
STICKLINE(择幅建仓,20,40,2,0),COLORRED;
STICKLINE(择幅建仓,40,80,1,0),COLORMAGENTA;
DRAWTEXT(择幅建仓,75,'---多云转晴'),COLORYELLOW;
ZKK:="KD.K#WEEK"(9,3,3);
ZKD:="KD.D#WEEK"(9,3,3);
KCD:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)<30,13);
KCD1:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)>30,13);
XG1:=KCD;
DIFW:="MACD.DIF#WEEK"(12,26,9);
DEAW:="MACD.DEA#WEEK"(12,26,9);
P:=10;A:=5;
FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13);
XG2:=FCA;
RSV:=((((HHV(HIGH,P) - CLOSE) / (HHV(HIGH,P) - LLV(LOW,P))) * 200) - 125);
小股民:=SMA(RSV,A,1)+15;
RSV1:=((((CLOSE - LLV(LOW,P)) / (HHV(HIGH,P) - LLV(LOW,P))) * 200) - 105);
主力:=SMA(RSV1,A,1)+15;
XG3:=CROSS(主力,小股民);
选股:= XG2 AND FCA;
STICKLINE(选股,0,20,2.5,0),COLORYELLOW;
STICKLINE(选股,20,40,2,0),COLORRED;
STICKLINE(选股,40,80,1,0),COLORMAGENTA;
DRAWTEXT(选股,70,'---天下无敌'),COLORYELLOW;
HJ_111:=REF(CLOSE,1);
HJ_211:=IF(CLOSE>=1,10000,100000);
HJ_311:=1.1*HJ_111-49/HJ_211;
HJ_411:=HIGH>=HJ_311;
HJ_511:=CLOSE>1.095*REF(CLOSE,1);
HJ_611:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.04 OR CLOSE/OPEN>=1.04 AND (VOL<=MA(VOL,60) OR VOL/REF(VOL,1)<=1.2 OR VOL<HHV(VOL,5)) AND HIGH>LOW;
HJ_711:=VOL/REF(VOL,1)<=0.67 OR HJ_611;
HJ_811:=HJ_511 AND HJ_711 AND HIGH>LOW AND NOT(REF(HJ_511,1) OR REF(HJ_411,1) AND (REF(HJ_511,2) OR REF(HJ_411,2)));
HJ_911:=FILTER(HJ_811,1);
鱼跃龙门:HJ_911;
STICKLINE(HJ_911,0,20,2.5,0),COLORYELLOW;
STICKLINE(HJ_911,20,40,2,0),COLORRED;
STICKLINE(HJ_911,40,80,1,0),COLORMAGENTA;
DRAWTEXT(HJ_911,65,'----鱼跃龙门'),COLORRED;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.04) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
VAR5AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XG1A:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
XG2A:=(FILTER((VAR5AA>90),45)),COLORYELLOW;
STICKLINE(XG1A,0,20,2.5,0),COLORYELLOW;
STICKLINE(XG1A,20,40,2,0),COLORRED;
STICKLINE(XG1A,40,80,1,0),COLORMAGENTA;
STICKLINE(XG2A,0,20,2.5,0),COLORYELLOW;
STICKLINE(XG2A,20,40,2,0),COLORRED;
STICKLINE(XG2A,40,80,1,0),COLORMAGENTA;
DRAWTEXT(XG1A,57,'----大单异动'),COLORYELLOW;
DRAWTEXT(XG2A,57,'----大单异动'),COLORYELLOW;
爆发点:=(DCLOSE-REF(C, 1))/REF( C, 1)*100;
XB:=CROSS( 爆发点,20);
STICKLINE(XB,0,20,2.5,0),COLORYELLOW;
STICKLINE(XB,20,40,2,0),COLORRED;
STICKLINE(XB,40,80,1,0),COLORMAGENTA;
DRAWTEXT(XB,49,'------游资'),COLORYELLOW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,200);
AC:=(DIF-DEA)*2;
启动线:=IF(AC<0,0,AC*AC),LINETHICK2,,COLORRED;
DIF1:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,200);
AA:=(DIF1-DEA1)*2;
引导线:=IF(A<0,0,AA*AA),LINETHICK2,COLOR0055FF;
HJ_A1:=CLOSE<=REF(CLOSE,1) AND CLOSE<=OPEN;
HJ_A2:=CLOSE<=REF(CLOSE,1) AND CLOSE>=OPEN;
HJ_A3:=HJ_A1>0 OR HJ_A2>0;
HJ_A4:=BARSLAST(HJ_A3);
HJ_A5:=MAX(REF(CLOSE,HJ_A4),REF(OPEN,HJ_A4));
HJ_A6:=REF(VOL,HJ_A4);
HJ_A7:=HJ_A4>0 AND CLOSE>HJ_A5 AND VOL>HJ_A5*1.1;
HJ_A8:=IF(HJ_A7>0 AND REF(HJ_A7,1)=0,10,0);
HJ_A9:=HJ_A8>0;
HJ_A10:=CLOSE/REF(CLOSE,1)>1.098 OR CLOSE/OPEN>1.098 AND VOL<HHV(VOL,21);
HJ_A11:=NOT(NAMELIKE(1) OR NAMELIKE(2)) AND VOL>1;
HJ_A12:=BARSLAST(HJ_A10);
HJ_A13:=LOW>=REF(LOW,HJ_A12) AND LOW-REF(LOW,HJ_A12)<=0.03;
HJ_A14:=LOW>=REF(CLOSE,HJ_A12)*0.99 AND LOW-REF(CLOSE,HJ_A12)<=0.03;
HJ_A15:=0>=REF(CLOSE,HJ_A12)*0.99 AND 0-REF(CLOSE,HJ_A12)<=0.03;
HJ_A16:=HJ_A13 OR HJ_A14 OR HJ_A15;
龙吟:=HJ_A9 AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND HJ_A16 AND (HJ_A12<21 OR COUNT(REF(HJ_A12,1),21)>=1) AND HJ_A11,COLORYELLOW;
HJ_A17:=(CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=9.9 AND LOW=HIGH;
HJ_A18:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.141159;
HJ_A19:=MA(HJ_A18,5);
HJ_A20:=PLOYLINE(CROSS(HJ_A18,HJ_A19),HJ_A19);
HJ_A21:=PLOYLINE(CROSS(HJ_A19,HJ_A18),HJ_A18);
HJ_A22:=COUNT(CROSS(HJ_A18,HJ_A19),HJ_A20<REF(HJ_A20,5) AND HJ_A21>REF(HJ_A21,5));
HJ_A23:=CROSS(EMA(CLOSE,3),EMA(CLOSE,21));
HJ_A24:=CROSS(MA(CLOSE,3),MA(CLOSE,21));
HJ_A25:=(MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100;
HJ_A26:=CLOSE/REF(CLOSE,1)<=0.96 OR CLOSE/OPEN<=0.96 AND (VOL/HHV(VOL,20)<=0.618 OR VOL/REF(VOL,1)<=0.5 OR VOL<HHV(VOL,5));
HJ_A27:=CLOSE/REF(CLOSE,1)>=1.04 OR CLOSE/OPEN>=1.04 AND (VOL/HHV(VOL,20)<=0.618 OR VOL/REF(VOL,1)<=0.5 OR VOL<HHV(VOL,5)) AND CLOSE>REF(CLOSE,1) AND HIGH>LOW;
HJ_A28:=OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1) AND HIGH>1;
HJ_A29:=REF(CLOSE<REF(CLOSE,1) AND VOL/REF(VOL,1)<0.67,2) OR REF(HJ_A26,2) OR REF(HJ_A27,2) AND REF(HJ_A25<3,1) AND REF(VOL,1)<REF(VOL,2) AND HJ_A28;
HJ_A30:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE>REF(OPEN,1);
HJ_A31:=REF(HJ_A26,1) AND HJ_A30 AND HJ_A27 OR HJ_A29;
HJ_A32:=CROSS(CLOSE,MA(CLOSE,5)) AND CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,21)) OR CROSS(CLOSE,MA(CLOSE,34)) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1);
HJ_A33:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>=MA(CLOSE,20);
HJ_A34:=HJ_A32 AND 龙吟 AND NOT(HJ_A17) AND (HJ_A22 OR HJ_A24 OR HJ_A23 OR CROSS(CLOSE,MA(CLOSE,20)));
HJ_A35:=龙吟 AND (VOL/REF(VOL,1)>1.5 OR REF(VOL,1)/REF(VOL,2)<0.67) AND (HJ_A22 OR HJ_A24 OR HJ_A23 OR CROSS(CLOSE,MA(CLOSE,20))) AND NOT(OPEN/REF(CLOSE,1)>1.06) AND NOT(HJ_A17) AND HJ_A11;
HJ_A36:=CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND HJ_A31 AND (COUNT(龙吟,8)=1 OR HJ_A32) AND NOT(HJ_A17) AND (HJ_A22 OR HJ_A24 OR HJ_A23 OR CROSS(CLOSE,MA(CLOSE,20))) AND HJ_A11;
龙跃:=HJ_A34 OR HJ_A35 OR HJ_A36,COLORCYAN;
PX:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
妖龙刺:=REF(龙吟,1) AND C>O AND O>REF(C,1) AND CROSS(C,PX),NODRAW,COLORYELLOW;
STICKLINE( 妖龙刺,0,20,2.5,0),COLORYELLOW;
STICKLINE(妖龙刺,20,40,2,0),COLORRED;
STICKLINE(妖龙刺,40,80,1,0),COLORMAGENTA;
DRAWTEXT(妖龙刺,41,' ---妖龙刺'),COLORYELLOW ;
STICKLINE( 龙吟,0,20,2.5,0),COLORYELLOW;
STICKLINE(龙吟,20,40,2,0),COLORRED;
STICKLINE(龙吟,40,80,1,0),COLORMAGENTA;
DRAWTEXT(龙吟,35,' ------龙吟'),COLORYELLOW ;
STICKLINE( 龙跃,0,20,2.5,0),COLORYELLOW;
STICKLINE(龙跃,20,40,2,0),COLORRED;
STICKLINE(龙跃,40,80,1,0),COLORMAGENTA;
DRAWTEXT(龙跃,29,' ------龙跃'),COLORYELLOW ;
XQA:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
XQB:=SMA(XQA,13,1);
XQC:=SMA(XQB,5.5,1.5);
XQD:=3*XQB-2*XQC;
XQE:=4*XQC-3*XQB;
L1:=EMA(XQA,3);
L2:=EMA(XQA,5);
L3:=EMA(XQA,7);
T1:=L2>L3 && L1<REF(L1,1);
T2:=L2<L3 && L1>REF(L1,1);
AAC:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
连板基因:=CROSS(XQD,XQC) AND AAC;
STICKLINE( 连板基因,0,20,2.5,0),COLORYELLOW;
STICKLINE(连板基因,20,40,2,0),COLORRED;
STICKLINE(连板基因,40,80,1,0),COLORMAGENTA;
DRAWTEXT(连板基因,23,' -------连板基因'),COLORYELLOW ;
A00:=SUM(IF((C> REF(C,1)),VOL,IF((C<REF(C,1)),(0-V),0)),0);
A01:=SUMBARS(V,CAPITAL);
A02:=IF((C>LLV(C,A01)),1,(0-1))*IF((A00 >LLV(A00,A01)),1,(0-1));
A03:=(COUNT((IF((A02=(0-1)),1,0)=1),8)>2);
A04:=((C-DMA((((3 * H + L)+O)+2 * C)/7.000,V/SUM(AMOUNT,13)/
AMOUNT/V/100/100))/DMA((((3*H+L)+O)+2*C)/7,V/SUM(AMOUNT,13)/
AMOUNT/V/100/100)*100<(0-18));
A05:=((C-MIN(REF(C,5)*0.865,REF(C,21)*0.772))/C<0.009);
A06:=((A03 AND A04) AND A05);
A07:=((((O < EMA(C,5)) AND (C/O>=1.05)) AND (V/CAPITAL>=0.019)) AND (V/CAPITAL<=0.2));
A08:=(A07 AND (COUNT(A07,5)=1));
A0901:=MA(C,3)>REF(MA(C,3),1);
A0902:=MA(C,5)>REF(MA(C,5),1);
A0903:=MA(C,10)>REF(MA(C,10),1);
A0904:=V/240>REF(V,30)*1.200/240.000*1.500;
A0905:=C>L*1.059;
A0906:=C>REF(MA(C,3),1);
A0907:=A0901 AND A0902 AND A0903 AND A0904 AND A0905 AND A0906;
A0908:=A0907 AND REF(C,1);
A0909:=MA(C,20)>REF(MA(C,20),1);
A0910:=MA(V,5)>REF(MA(V,5),1);
A0911:=MA(C,5)-MA(C,10);
A0912:=A0911<= 0.579;
A09:=A0908 AND A0902 AND A0903 AND A0909 AND A0910 AND A0912;A0A:=FILTER(A09,5.000);
VBB:=(A06 OR A07) AND A0A;
确认成妖:=DRAWTEXT(VBB,0.85,'确认成妖'),COLORRED;
STICKLINE( 确认成妖,0,20,2.5,0),COLORYELLOW;
STICKLINE(确认成妖,20,40,2,0),COLORRED;
STICKLINE(确认成妖,40,80,1,0),COLORMAGENTA;
DRAWTEXT(确认成妖,78,' -------确认成妖'),COLORYELLOW ;
V2:=(H-L);
V3:=ABS((O-C));
V4:=(H-IF((C>O),C,O));
V5:=(IF((C>O),O,C)-L);
V6:=((V3/V2)*V);
V7:=((V4/V2)*V);
V8:=((V5/V2)*V);
VB:=(((MA(C,5)>MA(C,10)) AND (MA(C,10)>MA(C,30))) AND (MA(C,30)>MA(C,60)));
VC:=((((V6>(MA(V,5)*2)) AND (V6 >= V7)) AND (V6 >= V8)) AND (C>O)) OR ((V>(MA(V,5)*3)) AND VB);
VD:=FILTER(VC,15);
妖股出现:=IF(VD,1,0),COLORRED;
STICKLINE( 妖股出现,0,20,2.5,0),COLORYELLOW;
STICKLINE(妖股出现,20,40,2,0),COLORRED;
STICKLINE(妖股出现,40,80,1,0),COLORMAGENTA;
DRAWTEXT(妖股出现,68,' ----涨停诀'),COLORYELLOW ;
MA_1:= IF(4 > 1, MA(CLOSE,4), 1);
MA_2:= IF(8 > 1, MA(CLOSE,8), MA_1);
MA_3:= IF(12 > 1, MA(CLOSE,12), MA_1);
MA_4:= IF(16 > 1, MA(CLOSE,16), MA_1);
MA_5:= IF(20 > 1, MA(CLOSE,20), MA_1);
MAX_MA:= MAX(MA_1,MAX(MA_2,MAX(MA_3,MAX(MA_4,MA_4))));
MIN_MA:= MIN(MA_1,MIN(MA_2,MIN(MA_3,MIN(MA_4,MA_5))));
爆发点1:=(MAX_MA - MIN_MA) / MIN_MA * 100,NODRAW;
上攻力度:=ATAN((MA_1/REF(MA_1,1)-1) * 100)*180/3.1415926,NODRAW;
趋势:=DIF>DEA AND DEA>0 AND MACD>0 AND C/REF(C,1)>1.05 ;
变盘:=爆发点1 < 10 AND 上攻力度 >= 45 AND 上攻力度<= 82 AND C/REF(C,1)>1.05 AND C/O>1.05 ,NODRAW;
STICKLINE( 变盘,0,20,2.5,0),COLORYELLOW;
STICKLINE(变盘,20,40,2,0),COLORRED;
STICKLINE(变盘,40,80,1,0),COLORMAGENTA;
DRAWTEXT(变盘,72,' ----东山再起'),COLORYELLOW ;