持股线:MA(C,10),COLORYELLOW,LINETHICK1;
主力线:=FORCAST(EMA(C,19),7),COLORMAGENTA,DOTLINE,LINETHICK1;
多空线:=MA(C,36),COLORGREEN,LINETHICK1;
牛熊线:=FORCAST(EMA(C,55),7),COLORBLUE,LINETHICK1;
MA89:=MA(C,89);
MA144:=MA(C,144);
MA233:=MA(C,233);
MA377:=MA(C,377);
上围:主力线+2*STD(C,20),COLORWHITE,DOTLINE;
下围:主力线-2*STD(C,20),COLORWHITE,DOTLINE;
涨停:=(C-REF(C,1))*100/REF(C,1)>=9.85 AND C=H;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(涨停,OPEN,CLOSE,9,0),COLORRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,OPEN,CLOSE,9,0),COLORGREEN;
LC:=REF(C,1);
RSI:=((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100);
FF:=EMA(C,3);
EMA21:=EMA(C,21);
DRAWICON(CROSS(FF,EMA21),L*0.99,1);
DRAWICON(CROSS(85,RSI),H*1.01,2);
A1:=EMA(C,14);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORRED,LINETHICK2;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORBLUE,LINETHICK2;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR215E21;
临界建仓:=CROSS(C,多空线) AND 持股线<多空线 AND C>(REF(L,1)+REF(H,1))/2 OR (L<多空线 AND C>多空线
AND CROSS(持股线,多空线) AND C>(REF(L,1)+REF(H,1))/2);
DRAWTEXT(临界建仓=1,L*0.985,'