X_1:=1231212;
X_2:=IF(DATE<X_1,1,DRAWNULL);
X_3:=(2*CLOSE+HIGH+LOW)/4*X_2;
X_4:=LLV(LOW,34)*X_2;
X_5:=HHV(HIGH,34)*X_2;
X_6:=Ema((X_3-X_4)/(X_5-X_4)*100,9)*X_2;
X_7:=EMA(0.667*REF(X_6,1)+0.333*X_6,2)*X_2;
多头:EMA((X_3-X_4)/(X_5-X_4)*100,30)*X_2,COLORRED;
空头:EMA(多头,5)*X_2,COLORGREEN;
stICKLINE(空头>=X_6,空头,X_6,1,0)*X_2,COLORGREEN;
STICKLINE(空头>=X_6,X_7,多头,0,0)*X_2,COLORGREEN;
STICKLINE(空头<=X_6,空头,X_6,1,0)*X_2,COLORRED;
STICKLINE(空头<=X_6,X_7,多头,0,0)*X_2,COLORRED;