VAR1_P1:=DMA(EMA(CLOSE,12), SUM(vol,5)/3/CAPITAL);
VAR2_P1:=EMA(HIGH,30)*1.15;
VAR3_P1:=EMA(HIGH,3)*1.03;
VAR4_P1:=EMA(LOW,3)*0.97;
VAR5_P1:=EMA(LOW,30)*0.85;
VAR6_P1:=IF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.097,1,0);
XG_P1:=crOSS(CLOSE,VAR3_P1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.04;
ZF:=(1-REF(C,1)/C)*100;
STZF:=(1-REF(C,3)/C)*100;
VAR1_P2:=(3*C+H+L+O)/6;
VAR2_P2:=7*REF(VAR1_P2,1);
VAR3_P2:=6*REF(VAR1_P2,2);
VAR4_P2:=5*REF(VAR1_P2,3);
VAR5_P2:=4*REF(VAR1_P2,4);
VAR6_P2:=3*REF(VAR1_P2,5);
VAR7_P2:=2*REF(VAR1_P2,6);
VAR8_P2:=REF(VAR1_P2,8);
短线:=(8*VAR1_P2+VAR2_P2+VAR3_P2+VAR4_P2+VAR5_P2+VAR6_P2+VAR7_P2+VAR8_P2)/36;
VAR13:=LLV(DMA(CLOSE,VOL/CAPITAL),120);
龙抬头:=100*(CLOSE-VAR13)/VAR13;
VAR14:=0.01*EMA(AMOUNT,13)/EMA(VOL,13);
拉升线:=(CLOSE-VAR14)/VAR14 * 1000;
共振选股: XG_P1 AND ZF > 9 AND STZF < 18 AND 短线 >= REF(短线,1) AND (拉升线 - REF(拉升线,1) > 70) AND REF(拉升线,1) < 50 AND 龙抬头 > 0;
VARG:=C;
VAR1:=1;
VAR3:=LLV(H,240);
VAR4:=100*(VARG-VAR3)/VAR3*VAR1;
VAR5:=REF(LLV(VARG,480),1)*VAR1;
VAR6:=REF(HHV(VARG,480),1)*VAR1;
VAR7:=100*(VARG-VAR5)/(VAR6-VAR5)*VAR1;
VAR8:=(VARG-LLV(VARG,981))/(HHV(VARG,981)-LLV(VARG,981))*100*VAR1;
VAR9:=(VARG-LLV(VARG,393))/(HHV(VARG,393)-LLV(VARG,393))*100*VAR1;
VARA:=(VARG-LLV(LOW,981))/(HHV(H,981)-LLV(LOW,981))*100*VAR1;
VARB:=(VARG-LLV(LOW,393))/(HHV(H,393)-LLV(LOW,393))*100*VAR1;
VARC:=EMA(100*(VARG-LLV(LOW,100))/(HHV(H,100)-LLV(LOW,100)),5)/4*VAR1;
VARD:=IF(VARC>23.16,VARC,0)*VAR1;
VARE:=VARC< 1*VAR1;
VARF:=VARD*VAR1;
VAR10:=VAR4< 0 AND VAR7< 0;
VAR11:=1;
VAR12:=(H+LOW+VARG*2)/4*VAR11;
VAR13:=EMA(VAR12,21);
VAR14:=STD(VAR12,21);
VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;
VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11;
VAR17:=EMA(VAR16,5)*1.22*VAR11;
VAR18:=EMA(VAR17,3)*VAR11;
VAR19:=3*VAR17-2*VAR18*VAR11;
VAR1A:=IF(crOSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) AND CROSS(VAR17,VAR18),1,0);
VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) AND CROSS(VAR18,VAR17),1,0);
VAR1C:=EMA(100*(VARG-LLV(LOW,100))/(HHV(H,100)-LLV(LOW,100)),13)/4*VAR1;
VAR1D:=EMA(VARG,2)-EMA(VARG,89)*VAR1;
VAR1E:=EMA(VAR1D,30)*VAR1;
VAR1F:=2*(VAR1D-VAR1E)*10*VAR1;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1;
VAR21:=SQRT(SQRT(LOW*H*OPEN*VARG));
VAR22:=EMA(VAR21*0.97,3)*VAR1;
VAR23:=(H+LOW+VARG)/3*VAR1;
VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14))*VAR1;
VAR25:=IF(VAR1F>0.015,VAR20,0)/45*VAR1;
拉升资金:=VAR25,COLORRED,LINETHICK3;
VAR26:=EMA(VARG,2)-EMA(VARG,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*H*OPEN*VARG));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(H+LOW+VARG)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
主力资金:=IF(VAR28>0.1,VAR29,0)*5;
HSL:=V/CAPITAL*100>5;
XG:CROSS(拉升资金,主力资金) AND (主力资金*2)< 拉升资金 AND HSL;

