FL:=ma(CLOSE,17)+Abs(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORRED;
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORRED;
BB:IF(MA(CLOSE,17)<FS,FS,MA(CLOSE,17)),COLORRED;
年线:=ema(C,250);
A:=BB-(EMA(C,3)-BB),COLORRED;
difF:EMA((年线-(EMA(C,3)-年线)),5),LINETHICK2;
IF(BB=FS,BB,BB), COLORRED,LINETHICK2;
追涨跌破止损: EMA(COST(81),10) COLORWHITE,LINETHICK2;
牛熊线: EMA(COST(27),120),DOTLINE;
MA10:=MA(CLOSE,10),COLORBLUE,LINETHICK0;
MA54:=MA(CLOSE,54),COLORFFCCCC,LINETHICK0;
PL1:=(((CLOSE - MA54) / MA54) < 0.1);
PL2:=(((CLOSE - MA10) / MA10) < 0.3);
偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);
平台突破:=((((偏离率 = 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * 1);
DRAWTEXT(平台突破,L,'↖牛牛'),COLORBLUE;
EMA14:MA(C,14)COLOR000000;
【抢筹】:=COUNT(CLOSE<EMA14,5)=4 AND
CLOSE/EMA14>1.004 AND crOSS(CLOSE,EMA14) AND EMA14>=
REF(EMA14,1),LINETHICK,COLORWHITE;
DRAWTEXT(【抢筹】,LOW*0.95,''),COLORWHITE;
DRAWICON(【抢筹】,LOW*0.95-0.99,29);