VAR8:=VOL>2*MA(VOL,30);
VAR9:="DMI.ADX"(12,6);
VARA:="DMI.ADXR"(12,6);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)<4;
VARF1:=PEAKBARS(3,15,1)<4;
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),colorwhite;
IF(多空>0,多空,DRAWNULL),LINETHICK3,colorred;
IF(多空<0,多空,DRAWNULL),LINETHICK3,colorgreen;
IF((多空<0 AND 多空>REF(多空,1)),多空,DRAWNULL),LINETHICK3,colorlimagenta;
STICKLINE(FILTER(VARF=1,5) AND 多空<-10,31,0,6,0),colorred;
STICKLINE(FILTER(VARF=1,5),28,0,4,0),colorred;
STICKLINE(FILTER(VARF1=1,5) AND 多空>10,31,0,5,0),colormagenta;
STICKLINE(FILTER(VARF1=1,5),28,0,4,0),colorgreen;
DRAWTEXT(FILTER(VARF=1,3),25,'起涨'),colorred;
DRAWTEXT(FILTER(VARF1=1,3),25,'杀跌'),colorlimagenta;
STICKLINE(多空<-10,0,多空,1.1,0),coloryellow;
STICKLINE(多空>10,0,多空,0.9,0),colorred;
STICKLINE(多空>0,0,0.1,5,0),colorred;
STICKLINE(多空<0,0,0.1,5,0),colorgreen;
STICKLINE (VARF=1,0,VARF,8,0),colormagenta;
STICKLINE (VARF1=1,0,VARF1,8,0),colorwhite;
X_1:=IF(CLOSE>REF(CLOSE,1),88,0);
X_2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND X_1>0,91,0);
龙头:FILTER(X_2>90,45)=1,colorred;
STICKLINE(龙头,20,0,8,0),colorred;
X_3:=CLOSE>MA(CLOSE,20) AND CLOSE>MA(CLOSE,60);
X_4:=MA(CLOSE,20);
X_5:=CLOSE>X_4;
X_6:=SMA(HIGH,21,2)*1.05;
X_7:=SMA(LOW,21,2)*0.95;
X_8:=SMA(LOW,5,1);
X_9:=(HIGH-CLOSE)/CLOSE*100<1;
X_10:=CLOSE/REF(CLOSE,1)>1.03;
X_11:=SMA(CLOSE,2,1);
X_12:=IF(CROSS(X_11,X_8),X_6*1.05,X_8);
X_13:=IF(CROSS(X_11,X_6),X_6*1.1,X_7);
龙抬头:X_13>X_7 OR X_12>X_8 AND X_9 AND X_10 AND X_3 AND X_5;
STICKLINE(龙抬头,0,30,4,0),colormagenta;
DRAWTEXT(龙抬头,27,'启动'),colormagenta;