X_1:=HHV(HIGH,10);
X_2:=LLV(LOW,10);
X_3:=(X_1+X_2)/2;
X_4:=HIGH=HHV(HIGH,10);
X_5:=LOW=LLV(LOW,10);
X_6:=BARSLAST(X_4);
X_7:=BARSLAST(X_5);
X_8:=DRAWLINE(X_5,REF(LOW,X_7),X_4,REF(HIGH,X_6),0);
X_9:=IF(X_6 REF(X_6,1),REF(HIGH,X_6),DRAWNULL);
X_10:=IF(X_8=DRAWNULL,X_9,DRAWNULL);
X_11:=IF(X_6 REF(X_6,1),REF(LOW,X_7),DRAWNULL);
X_12:=X_8=DRAWNULL AND X_9=REF(X_9,1);
X_13:=X_12 REF(X_12,1);
X_14:=IF(X_12,REF(X_11,BARSLAST(X_13)),X_11);
X_15:=IF(X_14=DRAWNULL,0,X_14);
X_16:=IF(X_15=0,REF(X_14,BARSLAST(X_15 0)),X_14);
X_17:=IF(X_8=DRAWNULL,0,1);
X_18:=IF(X_17=0,REF(X_16,BARSLAST(X_17 0)),X_16);
X_19:=TOTALBARSCOUNT
TJ:(X_10/X_18-1)*100 牛股涨幅 AND X_19;