X_1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_2:=IF(CLOSE>OPEN,X_1*(HIGH-LOW),IF(CLOSE<OPEN,X_1*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_3:=IF(CLOSE>OPEN,0-X_1*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-X_1*(HIGH-LOW),0-VOL/2));
X_4:=X_2+X_3;
STICKLINE(X_4<0,0,X_4,1,0),COLORFF6600;
STICKLINE(X_4<0,0,X_4,3,0),COLORFF9900;
STICKLINE(X_4<0,0,X_4,1.5,0),COLORFFCC00;
STICKLINE(X_4<0,0,X_4,0.5,0),COLORCYAN;
STICKLINE(X_4>0,0,X_4,3,0),COLOR000099;
STICKLINE(X_4>0,0,X_4,3,0),COLOR0000CC;
STICKLINE(X_4>0,0,X_4,1,0),COLORRED;
STICKLINE(X_4>0,0,X_4,0.5,0),COLORCC66FF;
X_5:=1;
X_6:=(HIGH+LOW+CLOSE)/3;
X_7:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
X_8:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-X_6);
X_9:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
X_10:=IF(HIGH=LOW,1,X_6-MIN(CLOSE,OPEN));
X_11:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
X_12:=MACD.DIF>MACD.DEA AND MACD.DEA<0;
X_13:=KDJ.K>KDJ.D AND KDJ.D<30;
X_14:=MACD.DIF<MACD.DEA;
X_15:=KDJ.K<KDJ.D AND KDJ.K>80;
特大:X_10*X_11,NODRAW;
大单:X_9*X_11,NODRAW;
中单:X_7*X_11,NODRAW;
小单:X_8*X_11,NODRAW;
X_16:=SUM(大单,X_5)+SUM(特大,X_5);
X_17:=SUM(小单,X_5)+SUM(中单,X_5);
X_18:=特大>大单 AND 大单>小单;
X_19:=特大<小单 AND 大单<小单;
X_20:=X_12 AND X_13;
X_21:=X_14 AND X_15;
X_22:=X_16-X_17;
X_23:=IF(X_22>0,X_22,0);
X_24:=IF(X_22<0,X_22,0);
STICKLINE(X_23,0,X_23,1,0),COLOR000044;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA;
主力筹码集中度:CLOSE*100,COLORRED;