X_1:=HHV(HIGH,9)-LLV(LOW,9);
X_2:=HHV(HIGH,9)-CLOSE;
X_3:=CLOSE-LLV(LOW,9);
X_4:=X_2/X_1*100-70;
X_5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_6:=(2*CLOSE+HIGH+LOW)/4;
X_7:=SMA(X_3/X_1*100,3,1);
X_8:=LLV(LOW,34);
X_9:=SMA(X_7,3,1)-SMA(X_4,9,1);
X_10:=IF(X_9>100,X_9-100,0);
X_11:=HHV(HIGH,34);
X_12:=EMA((X_6-X_8)/(X_11-X_8)*100,8);
大仓持有:EMA(X_12,13),POINTDOT,COLORRED;
介入1:IF(REF(大仓持有,2)>REF(大仓持有,1) AND 大仓持有>REF(大仓持有,1),1,0);
XG:大仓持有>REF(大仓持有,1);
STICKLINE(X_12-大仓持有>0,X_12,大仓持有,3.5,0),COLORRED;
STICKLINE(X_12-大仓持有<0,X_12,大仓持有,3.5,0),COLORGREEN;
短:100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5)),COLORGRAY;
中:100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10)),COLORLIGRAY;
中长:100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20)),COLORBROWN;
长:100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30)),COLORRED,LINETHICK3;
20,POINTDOT;
50,POINTDOT;
80,POINTDOT;
甲:DRAWTEXT(短<10 AND 长>60,80,2),COLORCYAN;
乙:DRAWTEXT(短<6 AND 中<6 AND 长<6,50,6),COLORCYAN;
丙:DRAWTEXT(短=0 AND 中=0 AND 长=0,20,27),COLORCYAN;
丁:DRAWTEXT(短=100 AND 中=100 AND 长=100,80,28),COLORCYAN;