VAR1:=EMA(CLOSE,40);
VAR2:=VAR1*1.12;
VAR3:=VAR1*0.96;
VAR4:=EVERY(VAR2/REF(VAR2,1)< 1.01,10);
VAR5:=EVERY(VAR2>REF(VAR2,1),10);
VAR6:=VAR4 AND VAR5;
VAR7:=VAR2>EMA(CLOSE,249);
VAR8:=VAR6 OR REF(VAR6,1) AND crOSS(CLOSE,VAR2) AND VAR7;
VAR9:=EMA(EMA(HIGH,3),3);
VAR10:=EMA(EMA(HIGH,9),9);
VAR11:=CROSS(CLOSE,VAR9) AND VAR9>VAR10;
VAR12:=AMOUNT/REF(AMOUNT,1)>1.99;
VAR13:=EXIST(VAR11,4) AND REF(EXIST(VAR12,9),1);
VAR14:=EMA((2*CLOSE+HIGH+LOW)/4,6);
VAR15:=EMA(LOW,50)*1.05;
VAR16:=EMA(LOW,50)*1.08;
VAR17:=EMA(LOW,50)*1.12;
VAR18:=EMA(LOW,50)*1.17;
VAR19:=EMA(LOW,50)*1.23;
VAR20:=EMA(HIGH,3);
VAR21:=CROSS(VAR20,VAR15) OR CROSS(VAR20,VAR16) OR CROSS(VAR20,VAR17) OR CROSS(VAR20,VAR18) OR CROSS(VAR20,VAR19);
妖龙闹海:VAR8 AND VAR13 AND LOW< VAR14 AND VAR21;
A0:=0.01*AMOUNT/V;
DIF:=(EMA(A0,12)-EMA(A0,26));
DEA:=(EMA(DIF,9));
macd:=(DIF-DEA)*2;
SH:=CODELIKE('00') OR CODELIKE('60');
SZ:=CODELIKE('30') OR CODELIKE('68');
SS:=CODELIKE('4') OR CODELIKE('8');
X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));
ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);
SB:=ZT AND COUNT(ZT,5)=1;
LBTS:=BARSLASTCOUNT(ZT);
ZB:=C<H AND H>=ZTPRICE(REF(C,1),X1);
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*Abs(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
N1:=BARSLAST(DATE=1241008);
T1:=IF(SH,HHV(LBTS,N1)<3,IF(SZ,HHV(LBTS,N1)<2,0)) AND C<REF(H,N1) AND ABS((C/REF(H,N1)-1)*100)<10;
N2:=BARSLAST(crOSS(DEA,DIF) AND DEA>0 AND DATE>1250301);
N3:=BARSLAST(CROSS(DIF,DEA) AND DEA<0);
T2:=EVERY(V<REF(HHV(V,10),N2),N2);
T3:=T2 AND T1 AND N2>N3 AND N3>0;
XG:REF(T3,1) AND CROSS(C,REF(H,N1));

