VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=(3*C+L+O+H)/6;
VAR5:=(20*VAR4+19*REF(VAR4,1)+18*REF(VAR4,2)+17*REF(VAR4,3)+16*REF(VAR4,4)+15*REF(VAR4,5)+14*REF(VAR4,6)+13*REF(VAR4,7)+12*REF(VAR4,8)+11*REF(VAR4,9)+10*REF(VAR4,10)+9*REF(VAR4,11)+8*REF(VAR4,12)+7*REF(VAR4,13)+6*REF(VAR4,14)+5*REF(VAR4,15)+4*REF(VAR4,16)+3*REF(VAR4,17)+2*REF(VAR4,18)+REF(VAR4,20))/210;
VAR6:=LLV(LOW,21);
VAR7:=HHV(HIGH,21);
VAR8:=EMA((((CLOSE-VAR6)/(VAR7-VAR6))*100),5);
VAR9:=EMA((((CLOSE-VAR6)/(VAR7-VAR6))*50),13);
VAR10:=CROSS(VAR8,VAR9);
VAR11:=VAR10=1;
VAR12:=AMOUNT/VOL;
VAR13:=LOW<VAR12*0.9;
VAR14:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
VAR15:=LOW<MA(C,5)*0.921;
VAR16:=VOL<MA(VOL,5)*1.5;
VAR17:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
VAR18:=VAR11 OR (VAR13 AND VAR14 AND VAR15 AND VAR16);
VAR19:=EMA(CLOSE,5);
VAR20:=EMA(EMA(CLOSE,90)*1.01,10);
VAR21:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR22:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((H)/(C)<1.01) AND (VAR21>0),91,0);
VAR23:=BARSLAST(CROSS(VAR2,VAR1)) AND CROSS(VAR1,VAR2);
VAR24:=(REF(CLOSE,9+1)<CLOSE);
VAR28:=REF(CLOSE,1);
VAR29:=SMA(MAX(C-VAR28,0),6,1)/SMA(ABS(C-VAR28),6,1)*100;
主力成本:EMA(VAR5,13),COLORFF00FF;
短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
IF(MA(CLOSE,3),MA(CLOSE,3),DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA(CLOSE,9),MA(CLOSE,9),DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MA(CLOSE,23.5),MA(CLOSE,23.5),DRAWNULL),COLORWHITE;
飞跃龙门:VAR17<50 AND VAR18,COLOR0099FF,NODRAW;
迎上水:CROSS(VAR19,VAR20),COLOR00FF00,NODRAW;
蓄势待发:FILTER((VAR22>90),45),COLOR00FFFF,NODRAW;
DRAWTEXT_FIX(C>O,0,0.07,0,'VAR28:VAR29'),COLORMAGENTA;
龙门关:VAR23 AND VAR1>VAR3 AND VAR2>VAR3 AND VAR2>REF(VAR2,1),COLORRED,NODRAW;
风险警示:FILTER((VAR24>-0.5),84) OR CROSS(82,VAR29),COLORFFFFFF,NODRAW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT(龙门关,LOW-0.2,'★龙门关'),COLORRED;
DRAWTEXT(迎上水,VAR19+0.05,'迎上水'),COLOR00FF00;
DRAWTEXT(飞跃龙门,LOW*0.998,' 飞跃龙门'),COLOR0099FF;
DRAWTEXT(蓄势待发,LOW*0.98,'★蓄势待发'),COLOR00FFFF;
DRAWTEXT(风险警示,HIGH*1.01,'风险警示'),COLORFFFFFF;