粉色五成仓:CLOSE<0,COLORLIRED;
红色加满仓:CLOSE<0,COLORRED;
灰色减五成仓:CLOSE<0,COLORGRAY;
黑色清仓走人:CLOSE<0,COLORBROWN;
X_1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
X_2:=EMA(EMA(EMA(X_1,4),4),4);
X_3:=(X_2-REF(X_2,1))/REF(X_2,1)*100;
X_4:=MA(X_3,2);
X_5:=EMA(CLOSE,5)-EMA(CLOSE,55);
X_6:=EMA(X_5,10);
STICKLINE(X_3>X_4 AND X_5<X_6,0,0.5,3.7,0),COLORLIRED;
STICKLINE(X_3>X_4 AND X_5>X_6,0,1,3.7,0),COLORRED;
STICKLINE(X_3<X_4 AND X_5>X_6,0,0.5,3.7,0),COLORGRAY;
STICKLINE(X_3<X_4 AND X_5<X_6,0,0.5,3.7,0),COLORBLACK;
DRAWICON(X_3>X_4 AND X_5<X_6 AND REF((X_3>X_4 AND X_5<X_6)<1,1),0.4,38);
DRAWICON(X_3>X_4 AND X_5>X_6 AND REF((X_3>X_4 AND X_5>X_6)<1,1),0.9,23);
DRAWICON(X_3<X_4 AND X_5>X_6 AND REF((X_3<X_4 AND X_5>X_6)<1,1),0.4,39);
DRAWICON(X_3<X_4 AND X_5<X_6 AND REF((X_3<X_4 AND X_5<X_6)<1,1),0.1,15);