X_1:=CLOSE;
X_2:=LOW;
X_3:=OPEN;
X_4:=HIGH;
X_5:=EMA(X_1,6)-EMA(X_1,13);
X_6:=EMA(X_5,4);
X_7:=(X_5-X_6)*2;
X_8:=CROSS(X_5,X_6);
X_9:=(X_1-LLV(X_2,9))/(HHV(X_4,9)-LLV(X_2,9))*100;
X_10:=SMA(X_9,3,1);
X_11:=SMA(X_10,3,1);
X_12:=3*X_10-2*X_11;
X_13:=CROSS(X_10,X_11);
X_14:=(MA(X_1,5)+MA(X_1,10)+MA(X_1,20)+MA(X_1,30))/4;
X_15:=CROSS(X_1,X_14);
X_16:=6;
X_17:=REF(X_1,1);
X_18:=ABS(X_4-X_17);
X_19:=ABS(X_2-X_17);
X_20:=ABS(X_4-REF(X_2,1));
X_21:=ABS(X_17-REF(X_3,1));
X_22:=IF(X_18>X_19 AND X_18>X_20,X_18+X_19/2+X_21/4,IF(X_19>X_20 AND X_19>X_18,X_19+X_18/2+X_21/4,X_20+X_21/4));
X_23:=X_1-X_17+(X_1-X_3)/2+X_17-REF(X_3,1);
X_24:=16*X_23/X_22*MAX(X_18,X_19);
X_25:=SUM(X_24,0);
X_26:=X_16;
X_27:=CROSS(X_25,X_26);
X_28:=X_1-REF(X_1,12);
X_29:=CROSS(X_28,0);
X_30:=X_8+X_13+X_15+X_27+X_29=3;
X_31:=X_8+X_13+X_15+X_27+X_29=4;
X_32:=X_8+X_13+X_15+X_27+X_29=5;
X_33:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1);
X_34:=X_30 OR X_31 OR X_32 AND X_33;
STICKLINE(X_34,60,90,1,0),COLORRED;
STICKLINE(X_34,30,60,2,0),COLORBLUE;
STICKLINE(X_34,10,30,3,0),COLORCYAN;
DRAWTEXT(X_34,70,'擒'),COLORYELLOW;
DRAWTEXT(X_34,40,'龙'),COLORYELLOW;