MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA21:MA(CLOSE,21),COLORMAGENTA;
MA48:MA(CLOSE,48),COLORRED;
MA89:MA(CLOSE,89),COLORGREEN;
MA144:MA(CLOSE,144),COLORBLUE;
年线:MA(CLOSE,288),COLORWHITE;
神线:MA(CLOSE,576),COLORYELLOW;
MA60:=MA(C,60);
最大值:=MAX(MAX(MAX(MA5,MA10),MAX(MA21,MA48)),MAX(MAX(MA89,MA144),年线));
最小值:=MIN(MIN(MIN(MA5,MA10),MIN(MA21,MA48)),MIN(MIN(MA89,MA144),年线));
乖离:(最大值/最小值-1)*100,NODRAW;
IF(MA5>=MA10,MA5,DRAWNULL),LINETHICK2,COLORWHITE;
IF(MA10>=MA21,MA10,DRAWNULL),LINETHICK2,COLORYELLOW;
IF(MA21>=MA48,MA21,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(MA48>=MA89,MA48,DRAWNULL),LINETHICK2,COLORRED;
IF(MA89>=MA144,MA89,DRAWNULL),LINETHICK2,COLORGREEN;
IF(MA144>=年线,MA144,DRAWNULL),LINETHICK2,COLORBLUE;
IF(年线>=神线,年线,DRAWNULL),LINETHICK2,COLORWHITE;
IF(神线>=REF(神线,1),神线,DRAWNULL),LINETHICK2,COLORYELLOW;
多头:=((MA5>REF(MA5,1))+(MA10>REF(MA10,1))+(MA21>REF(MA21,1))+(MA48>REF(MA48,1))+(MA89>REF(MA89,1))
+(MA144>REF(MA144,1))+(年线>REF(年线,1))+(神线>REF(神线,1)))>=5;
倍量:=V>REF(V,1)*1.9 AND C>O ;
量比:=V/REF(MA(V,5),1)>2 AND C>O ;
千里马:=乖离<8 AND C>=最大值 AND 倍量 AND 量比;
DRAWICON(千里马,L,1);
DRAWTEXT(千里马,最小值*0.98,'低调买');
获利盘:100*WINNER(C),NODRAW;
套牢盘:100*(1-WINNER(C)),NODRAW;
五六零乖离:IF(MA60>MA5,(MA60/MA5-1)*100,(MA5/MA60-1)*100),NODRAW;
季报:FINANCE(37),NODRAW,COLORRED;
每股净营运比:C/(FINANCE(11)-FINANCE(15))*FINANCE(1),NODRAW,COLORGREEN;{市值比(流动资产-流动负债)}
应收占比:FINANCE(22)/FINANCE(20)*100,NODRAW,COLORGREEN;{应收占营收}
存货占比:FINANCE(27)/FINANCE(10)*100,NODRAW,COLORGREEN;{存货比总资产}
固比:FINANCE(12)/FINANCE(10)*100,NODRAW,COLORGREEN;{固定资产比总资产}
总周转率:FINANCE(20)/FINANCE(10),NODRAW,COLORGREEN;
毛利率:(FINANCE(20)-FINANCE(21))/FINANCE(20)*100,NODRAW,COLORYELLOW;
净利率:FINANCE(30)/FINANCE(20)*100,NODRAW,COLORYELLOW;
ROE:FINANCE(30)/FINANCE(19)*100,NODRAW,COLORYELLOW;
流率:FINANCE(11)/FINANCE(15),NODRAW,COLORRED;
速率:(FINANCE(11)-FINANCE(27))/FINANCE(15),NODRAW,COLORRED;
权益比:FINANCE(19)/FINANCE(10)*100,NODRAW,COLORRED;
PS:FINANCE(41)/FINANCE(20),NODRAW,COLORRED;
PB:C/FINANCE(34),NODRAW,COLORRED;
PCF:C/FINANCE(25)*FINANCE(1),NODRAW,COLORRED;
营收同比:FINANCE(44),NODRAW,COLORYELLOW;
净利同比:FINANCE(43),NODRAW,COLORYELLOW;
PEG:C/FINANCE(33)/FINANCE(44),NODRAW,COLORGREEN;{PEG=PE/企业营收增长率}
PEG2:C/FINANCE(33)/FINANCE(43),NODRAW,COLORGREEN;{PEG=PE/企业净利增长率}
EM:FINANCE(33)/FINANCE(25)*FINANCE(1),NODRAW,COLORGREEN;{每股收益比每股现金流};
抄底:=CROSS(C,MA5) AND EXIST(获利盘<1,3) AND 五六零乖离>24;
DRAWTEXT(抄底,L,'抄底');
{WWW.88GS.COM}
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF;