最大值:=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;
多头:=((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)))
倍量:=V REF(V,1)*1.9 AND C
量比:=V/REF(MA(V,5),1) 2 AND C
千里马:=乖离 8 AND C =最大值 AND 倍量 AND 量比;
DRAWICON(千里马,L,1);
DRAWTEXT(千里马,最小值*0.98,'启动');
季报: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;{每股收益比每股现金流};
公式模块:
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;
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;
倍量:=V REF(V,1)*1.9 AND C
量比:=V/REF(MA(V,5),1) 2 AND C
启动:乖离 8 AND C =最大值 AND 倍量 AND 量比;