M1:=IF(CAPITAL<1,EMA(VOL,55),C);
M2:=IF(CAPITAL<1,WMA(M1,360),DMA(M1,VOL/CAPITAL));
M3:=IF(CAPITAL<1,DMA(MA(C,5),VOL/VOL/CAPITAL),DMA(MA(C,5),VOL/CAPITAL));
STICKLINE(M1>M2,MA(C,14)*0.97,M3*0.97,1,0),COLORMAGENTA;
STICKLINE(M1<M2,MA(C,14)*0.97,M3*0.97,1,0),COLOR008000;
持股线:EMA(C,15),COLORRED,LINETHICK2;
生命线:EMA(C,25),COLORGREEN;
牛熊线:EMA(C,250),COLORWHITE,LINETHICK3;
STICKLINE(C<持股线,H,L,0,1),COLORGREEN;
STICKLINE(C<持股线,O,C,2,1),COLORGREEN;
STICKLINE(C>持股线,H,L,0,0),COLORRED;
STICKLINE(C>持股线,O,C,2,0),COLORRED;
DRAWTEXT(CROSS(持股线,生命线),持股线,'入场')COLORMAGENTA;
DRAWTEXT(CROSS(生命线,持股线),生命线,'离场');