DRAWTEXT_FIX(1,0.1,0.01,1,'股票名稱:'),COLORRED;
DRAWTEXT_FIX(1,0.155,0.01,1,STKNAME),COLORYELLOW;
品種類型:=FINANCE(3);
所屬板塊:=HYBLOCK;
上市天數(shù):=FINANCE(42);
{股總市值:=ROUND(FINANCE(41)/100000000);}
流通盤:=(CAPITAL/1000000);
流通市值:=ROUND(FINANCE(40)/100000000);
股東人數(shù):=FINANCE(8);
人均持股:=ROUND(FINANCE(7)/FINANCE(8));
DRAWTEXT_FIX(1,0.08,0.15,1,'品種類型:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.25,1,'所屬板塊:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.35,1,'上市天數(shù):'),COLORYELLOW;
{DRAWTEXT_FIX(1,0.1,0.45,1,'股總市值:'),COLORYELLOW;}
DRAWTEXT_FIX(1,0.08,0.45,1,'流通盤:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.55,1,'流通市值:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.65,1,'股東人數(shù):'),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0.75,1,'人均持股:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.15,0.25,1,HYBLOCK),COLORLIGREEN;
DRAWNUMBER_FIX(1,0.15,0.35,1,上市天數(shù)),COLORWHITE;
DRAWNUMBER_FIX(1,0.15,0.45,1,流通盤),COLORWHITE;
DRAWNUMBER_FIX(1,0.15,0.55,1,流通市值),COLORWHITE;
DRAWNUMBER_FIX(1,0.15,0.65,1,股東人數(shù)),COLORWHITE;
DRAWNUMBER_FIX(1,0.15,0.75,1,人均持股),COLORWHITE;
DRAWTEXT_FIX(品種類型=1,0.15,0.15,1,'滬深A股'),COLORMAGENTA;
{DRAWTEXT_FIX(品種類型=2,0.15,0.15,1,' 中 小 板'),COLORMAGENTA;}
DRAWTEXT_FIX(品種類型=3,0.15,0.15,1,' 創(chuàng) 業(yè) 板'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.18,0.35,1,'天'),COLORCYAN;
DRAWTEXT_FIX(1,0.185,0.45,1,' 億股'),COLORCYAN;
DRAWTEXT_FIX(1,0.185,0.55,1,' 億元'),COLORCYAN;
DRAWTEXT_FIX(1,0.18,0.65,1,'人'),COLORCYAN;
DRAWTEXT_FIX(1,0.18,0.75,1,'股'),COLORCYAN;
{一以上是:文字數(shù)字分開寫法}
DRAWTEXT_FIX(1,0.326,0.01,1,'業(yè)績指標(如下):'),COLORRED;
凈資收益率:=(FINANCE(33)/FINANCE(34)*100);
銷售毛利率:=CONST(((FINANCE(20)-FINANCE(21))/FINANCE(20)*100));
凈利潤比率:=(FINANCE(30)/FINANCE(20)*100);
主營利潤率:=(FINANCE(23)/FINANCE(20)*100);
優(yōu)質資產率:=((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19));{理論上越大越好但不同行業(yè)有不同標準};
現(xiàn)金負債比:=(FINANCE(25)/FINANCE(15));{缺長期負債或負債總額,理論上越大越好但不同行業(yè)有不同標準};
凈利同增率:=FINANCE(43);
總市值(億):FINANCE(41)/100000000,NODRAW; 凈資產:FINANCE(34),NODRAW;
銷凈利率:FINVALUE(199),NODRAW; 凈利潤(萬):FINANCE(30)/10000,NODRAW; 凈利增長率:=FINVALUE(184),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.15,0,STRCAT('凈資收益率:',CON2STR(凈資收益率,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.25,0,STRCAT('營業(yè)毛利率:',CON2STR(銷售毛利率,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.35,0,STRCAT('營業(yè)凈利率:',CON2STR(凈利潤比率,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.45,0,STRCAT('營業(yè)利潤率:',CON2STR(主營利潤率,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.55,0,STRCAT('優(yōu)質資產率:',CON2STR(優(yōu)質資產率,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.65,0,STRCAT('現(xiàn)金負債比:',CON2STR(現(xiàn)金負債比,2)))COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.75,0,STRCAT('凈利同增率:',CON2STR(凈利同增率,2)))COLORWHITE;
DRAWTEXT_FIX(1,0.49,0.01,1,'財務指標(如下):'),COLORRED;
PB:=CONST(DYNAINFO(7) / FINANCE(34));
市銷率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));
{每股收益季:=CONST(FINANCE(33)/(5-FINANCE(37)));}
每股收益:=CONST(FINANCE(38));{最近一期}
每股現(xiàn)金流:=CONST((FINANCE(25)/FINANCE(1)));
每股未分配:=CONST(FINANCE(32));
每股公積金:=CONST(FINANCE(18));
PE:=CONST(C/FINANCE(33));
DRAWTEXT_FIX(ISLASTBAR,0.37,0.15,0,STRCAT('市凈率:',CON2STR(PB,2)))COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.25,0,STRCAT('市銷率:',CON2STR(市銷率,2)))COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.35,0,STRCAT('市盈率:',CON2STR(PE,2)))COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.45,0,STRCAT('每股收益:',CON2STR(每股收益,2)))COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.55,0,STRCAT('每股現(xiàn)金流:',CON2STR(每股現(xiàn)金流,2)))COLORYELLOW;
{DRAWTEXT_FIX(ISLASTBAR,0.37,0.65,0,STRCAT('每股未分配:',CON2STR(每股未分配,2)))COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.75,0,STRCAT('每股公積金:',CON2STR(每股公積金,2)))COLORYELLOW;
{DRAWTEXT_FIX(1,0.37,0.15,0,STRCAT(STRCAT('市凈率:',CON2STR(PB,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.25,0,STRCAT(STRCAT('市銷率:',CON2STR(市銷率,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.35,0,STRCAT(STRCAT('市盈率:',CON2STR(PE,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.45,0,STRCAT(STRCAT('每股收益:',CON2STR(每股收益,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.55,0,STRCAT(STRCAT('每股現(xiàn)金流:',CON2STR(每股現(xiàn)金流,2)),' ')),COLORYELLOW;}
DRAWTEXT_FIX(1,0.37,0.65,0,STRCAT(STRCAT('每股未分配:',CON2STR(每股未分配,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.75,0,STRCAT(STRCAT('每股公積金:',CON2STR(每股公積金,2)),' ')),COLORYELLOW;
{二以上是文字數(shù)字一起寫,用或不用ISLASTBAR函數(shù)}
主力籌碼估算:=EMA(WINNER(CLOSE)*70,3),NODRAW,LINETHICK0;
散戶籌碼估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;
散戶套牢比率:=散戶籌碼估算/(主力籌碼估算+散戶籌碼估算)*100,NODRAW;
主力控盤比率:=主力籌碼估算/(主力籌碼估算+散戶籌碼估算)*100,NODRAW;
DRAWTEXT_FIX(1,0.0,0.93,0,STRCAT(STRCAT('■主力籌碼估算: ',CON2STR(主力籌碼估算,2)),'%')),COLORLIRED;
DRAWTEXT_FIX(1,0.205,0.93,0,STRCAT(STRCAT('主力控盤比率: ',CON2STR(主力控盤比率,2)),'%')),COLORLIRED;
{三以上是文字數(shù)字一起寫,不用ISLASTBAR函數(shù)}
{風險系數(shù)}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公積用資本公積金代替}
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺長期負債或負債總額}
X5:=FINANCE(20)/FINANCE(15)*0.999;
LC:=REF(CLOSE,1);
Wrsi:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(Abs(CLOSE-LC),5,1)*100;
獲利籌碼:=CONST(WINNER(C)*100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能飽和:=(IF(SAT>1,1,SAT)*100);
wr10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活躍:=(WRSI-WR10);
活躍度比:=IF(活躍>=0,(活躍+100)/2,100-ABS((活躍-100)/2));
DRAWTEXT_FIX(1,0.97,0.16,1,STRCAT(STRCAT('量能飽和: ',CON2STR(量能飽和,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.97,0.26,1,STRCAT(STRCAT('活躍度比: ',CON2STR(活躍度比,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.962,0.36,1,STRCAT(STRCAT('獲利籌碼: ',CON2STR(獲利籌碼,2)),'%')),COLORYELLOW;
{DRAWTEXT_FIX(1,0.96,0.01,1,'大盤趨勢:'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.95,0.16,1,'∧向上∧'),COLORRED;
{DRAWTEXT_FIX( CONST(INDEXC) >sar(4,2,20),0.95,0.11,1,'∧∧∧∧'),COLORRED;}
{DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.16,1,'∨向下∨'),COLORGREEN;
{DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.95,0.11,1,'∨∨∨∨'),COLORGREEN;}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.53,0.93,0,'數(shù)據(jù)日期: '),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.83,0.93,0,' 財報更新第:'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.925,0.93,0,FINANCE(37)),,COLORMAGENTA;
DRAWTEXT_FIX(1,0.97,0.93,1,'季度'),COLORCYAN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.63,0.93,0,MACHINEDATE+19000000),COLORMAGENTA;
{-----優(yōu)秀-------}
ER1:=凈資收益率>=13.58;
ER2:=主營利潤率>=22.4;
ER5:=凈利潤比率>=19.42;
SAX1:=每股收益>=0.175;
SAX4:=每股未分配>=2.57;
SAX5:=每股公積金>=3.53;
DP3:=銷售毛利率>=49.13;
ZL:=IF((EMA(WINNER(CLOSE)*70,3))>41 AND ISLASTBAR,1,0);
優(yōu)秀:=ER1 AND ER2 AND ER5 AND SAX1
AND SAX4 AND SAX5 AND DP3 AND ZL ;
DRAWTEXT_FIX(1,0.70,0.01,1,'基本面評估:'),COLORRED;
DRAWTEXT_FIX(優(yōu)秀 AND ISLASTBAR,0.75,0.01,1,'[優(yōu)秀]'),COLORYELLOW;
{較好}
ER12:=凈資收益率<13.59 AND 凈資收益率>6.23;
ER22:=主營利潤率>=8.34;
ER52:=凈利潤比率>=7.31;
SAX12:= 每股收益>=0.061;
SAX42:=每股未分配>=1.185;
SAX52:=每股公積金>1.62;
DP32:=銷售毛利率>=28.68;
ZL1:=IF((EMA(WINNER(CLOSE)*70,3))>=11.26 AND ISLASTBAR,1,0);
{ER42:=主營業(yè)增長率>1; SAX22:=每股凈資產>0.2; DP42:=換手率>0.5; WMF12:=量比>0.5;}
較好:=ER12 AND ER22 AND ER52 AND SAX12
AND SAX42 AND SAX52 AND DP32 AND ZL1;
DRAWTEXT_FIX(較好 AND ISLASTBAR,0.75,0.01,1,'[良好]'),COLORYELLOW;
{指標偏低}
ER偏低:=凈資收益率<=0.27;
ER2偏低:=主營利潤率<=-1.27;
ER3偏低:=凈利潤比率<=0.34;
SAX偏低:=每股收益<=0.002;
SAX2偏低:=每股未分配<=0.26;
SAX3偏低:=每股公積金<=0.39;
DP偏低:=銷售毛利率<=4.2;{排名后100}
ZL偏低:=IF(((EMA(WINNER(CLOSE)*70,3))<2.81 AND ISLASTBAR),1,0);
偏低:=IF((ER偏低 OR ER2偏低 OR ER3偏低 OR SAX偏低
OR SAX2偏低 OR SAX3偏低 OR DP偏低 OR ZL偏低) AND ISLASTBAR=1,1,0) ;
{一般};
一般:=IF((較好!=1 AND 優(yōu)秀!=1 AND ZL偏低!=1 AND ISLASTBAR=1),1,0);
DRAWTEXT_FIX(一般 AND ISLASTBAR=1,0.75,0.01,1,'[一般]'),COLORYELLOW;
壞賬:=FINVALUE(11)/(FINANCE(19));
投資:=FINVALUE(35)/(FINANCE(19));
負債:=FINVALUE(210)/100;
存貨:=FINVALUE(17)/(FINANCE(19));
合計:=(壞賬+投資+負債+存貨)/4,COLORBROWN,LINETHICK2;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.168,0,STRCAT('綜合評估:',CON2STR(合計,2)))COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.26,0,STRCAT('壞賬評估:',CON2STR(壞賬,2))),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.36,0,STRCAT('投資評估:',CON2STR(投資,2))),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.46,0,STRCAT('負債評估:',CON2STR(負債,2))),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.56,0,STRCAT('存貨評估:',CON2STR(存貨,2))),COLORLIGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.832,0.46,0,STRCAT('壞賬等級:',IF(壞賬<0.15 AND 壞賬>=0 ,'低',IF(壞賬<0.35 AND 壞賬>=0.15 ,'正常',IF(壞賬<0.45 AND 壞賬>=0.35 ,'中',IF(壞賬>=0.45 OR 壞賬<0 ,'高','__')))))),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.832,0.56,0,STRCAT('負債等級:',IF(負債<0.25 AND 負債>=0 ,'低',IF(負債<0.45 AND 負債>=0.25,'正常',IF(負債<0.65 AND 負債>=0.45 ,'中',IF(負債>=0.65 OR 負債<0 ,'高','__')))))),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.832,0.66,0,STRCAT('財務風險等級:',IF(合計<0.3 AND 合計>=0 ,'低風險',IF(合計<0.5 AND 合計>=0.3 ,'中風險',IF(合計>=0.5 OR 合計<0 ,'高風險','__'))))),,COLORGREEN;
市盈率:=DYNAINFO(39);
市凈率:=FINANCE(34)/C;
每股收益1:=FINANCE(33);
資產報酬率:=FINANCE(29)/FINANCE(10)*100;
股本報酬率:=FINANCE(29)/FINANCE(1)*100;
凈值報酬率:=FINANCE(29)/FINANCE(19)*100;
營業(yè)純益率:=FINANCE(29)/FINANCE(20)*100;
主營業(yè)務利潤率:=FINANCE(21)/FINANCE(20)*100;
負債比率:=(FINANCE(15)+FINANCE(16))/FINANCE(10)*100;
存貨周轉率:=(FINANCE(20)-FINANCE(23))/FINANCE(27);
固定資產周轉率:=FINANCE(20)/FINANCE(12);
市盈率評分:=IF(市盈率<=20 AND 市盈率>0,10,IF(市盈率<=40 AND 市盈率>20,9,
IF(市盈率<=60 AND 市盈率>40,8,IF(市盈率<=80 AND 市盈率>60,7,
IF(市盈率<=100 AND 市盈率>80,6,IF(市盈率<=130 AND 市盈率>100,5,
IF(市盈率<=160 AND 市盈率>130,4,IF(市盈率<=190 AND 市盈率>160,3,
IF(市盈率<=220 AND 市盈率>190,2,IF(市盈率<=250 AND 市盈率>220,1,0))))))))));
市凈率評分:=IF(市凈率>=1,10,IF(市凈率<=1 AND 市凈率>=0.9,9,
IF(市凈率<=0.9 AND 市凈率>0.8,8,IF(市凈率<=0.8 AND 市凈率>0.7,7,
IF(市凈率<=0.7 AND 市凈率>0.6,6,IF(市凈率<=0.6 AND 市凈率>0.5,5,
IF(市凈率<=0.5 AND 市凈率>0.4,4,IF(市凈率<=0.4 AND 市凈率>0.3,3,
IF(市凈率<=0.3 AND 市凈率>0.2,2,IF(市凈率<=0.2 AND 市凈率>0,1,0))))))))));
每股收益評分:=IF(每股收益>=2.7,10,IF(每股收益<2.7 AND 每股收益>=2.4,9,
IF(每股收益1<2.4 AND 每股收益1>=2.1,8,IF(每股收益1<2.1 AND 每股收益1>=1.8,7,
IF(每股收益1<1.8 AND 每股收益1>=1.5,6,IF(每股收益1<1.5 AND 每股收益1>=1.2,5,
IF(每股收益1<1.2 AND 每股收益1>=0.9,4,IF(每股收益1<0.9 AND 每股收益1>=0.6,3,
IF(每股收益1<0.6 AND 每股收益1>=0.3,2,IF(每股收益1<0.3 AND 每股收益1>=0,1,0))))))))));
資產報酬率評分:=IF(資產報酬率>=27,10,IF(資產報酬率<27 AND 資產報酬率>=24,9,
IF(資產報酬率<24 AND 資產報酬率>=21,8,IF(資產報酬率<21 AND 資產報酬率>=18,7,
IF(資產報酬率<18 AND 資產報酬率>=15,6,IF(資產報酬率<15 AND 資產報酬率>=12,5,
IF(資產報酬率<12 AND 資產報酬率>9,4,IF(資產報酬率<9 AND 資產報酬率>6,3,
IF(資產報酬率<6 AND 資產報酬率>=3,2,IF(資產報酬率<3 AND 資產報酬率>0,1,0))))))))));
股本報酬率評分:=IF(股本報酬率>=135,10,IF(股本報酬率<135 AND 股本報酬率>120,9,
IF(股本報酬率<120 AND 股本報酬率>=105,8,IF(股本報酬率<105 AND 股本報酬率>90,7,
IF(股本報酬率<90 AND 股本報酬率>=75,6,IF(股本報酬率<75 AND 股本報酬率>60,5,
IF(股本報酬率<60 AND 股本報酬率>=45,4,IF(股本報酬率<45 AND 股本報酬率>30,3,
IF(股本報酬率<30 AND 股本報酬率>=15,2,IF(股本報酬率<15 AND 股本報酬率>0,1,0))))))))));
凈值報酬率評分:=IF(凈值報酬率>=100,10,IF(凈值報酬率<100 AND 凈值報酬率>80,9,
IF(凈值報酬率<80 AND 凈值報酬率>=70,8,IF(凈值報酬率<70 AND 凈值報酬率>60,7,
IF(凈值報酬率<60 AND 凈值報酬率>=50,6,IF(凈值報酬率<50 AND 凈值報酬率>40,5,
IF(凈值報酬率<40 AND 凈值報酬率>=30,4,IF(凈值報酬率<30 AND 凈值報酬率>20,3,
IF(凈值報酬率<20 AND 凈值報酬率>=10,2,IF(凈值報酬率<10 AND 凈值報酬率>=0,1,0))))))))));
營業(yè)純益率評分:=IF(營業(yè)純益率>=60,10,IF(營業(yè)純益率<60 AND 營業(yè)純益率>=50,9,
IF(營業(yè)純益率<50 AND 營業(yè)純益率>=40,8,IF(營業(yè)純益率<40 AND 營業(yè)純益率>=30,7,
IF(營業(yè)純益率<30 AND 營業(yè)純益率>=20,6,IF(營業(yè)純益率<20 AND 營業(yè)純益率>15,5,
IF(營業(yè)純益率<15 AND 營業(yè)純益率>=10,4,IF(營業(yè)純益率<10 AND 營業(yè)純益率>5,3,
IF(營業(yè)純益率<5 AND 營業(yè)純益率>=3,2,IF(營業(yè)純益率<3 AND 營業(yè)純益率>=0,1,0))))))))));
主營利潤率評分:=IF(主營業(yè)務利潤率>=60,10,IF(主營業(yè)務利潤率<60 AND 主營業(yè)務利潤率>50,9,
IF(主營業(yè)務利潤率<50 AND 主營業(yè)務利潤率>=45,8,IF(主營業(yè)務利潤率<45 AND 主營業(yè)務利潤率>=40,7,
IF(主營業(yè)務利潤率<40 AND 主營業(yè)務利潤率>=35,6,IF(主營業(yè)務利潤率<35 AND 主營業(yè)務利潤率>=30,5,
IF(主營業(yè)務利潤率<30 AND 主營業(yè)務利潤率>=25,4,IF(主營業(yè)務利潤率<25 AND 主營業(yè)務利潤率>=20,3,
IF(主營業(yè)務利潤率<20 AND 主營業(yè)務利潤率>=10,2,IF(主營業(yè)務利潤率<10 AND 主營業(yè)務利潤率>=0,1,0))))))))));
負債比率評分:=IF(負債比率<=0,10,IF(負債比率>0 AND 負債比率<10,9,
IF(負債比率>10 AND 負債比率<=20,8,IF(負債比率>20 AND 負債比率<=30,7,
IF(負債比率>30 AND 負債比率<=40,6,IF(負債比率>40 AND 負債比率<=50,5,
IF(負債比率>50 AND 負債比率<=60,4,IF(負債比率>60 AND 負債比率<=70,3,
IF(負債比率>70 AND 負債比率<=80,2,IF(負債比率>80 AND 負債比率<=100,1,0))))))))));
存貨周轉率評分:=IF(存貨周轉率>=80,5,IF(存貨周轉率<80 AND 存貨周轉率>=60,4,
IF(存貨周轉率<60 AND 存貨周轉率>=40,3,IF(存貨周轉率<40 AND 存貨周轉率>=20,2,
IF(存貨周轉率<20 AND 存貨周轉率>=0,1,0)))));
資產周轉率評分:=IF(固定資產周轉率>=20,5,IF(固定資產周轉率<20 AND 固定資產周轉率>=15,4,
IF(固定資產周轉率<15 AND 固定資產周轉率>=10,3,IF(固定資產周轉率<10 AND 固定資產周轉率>=5,2,
IF(固定資產周轉率<5 AND 固定資產周轉率>=0,1,0)))));
估值評分:=市盈率評分+市凈率評分+每股收益評分,COLORRED,NODRAW;
收益評分:=資產報酬率評分+股本報酬率評分+凈值報酬率評分+營業(yè)純益率評分+主營利潤率評分,NODRAW;
資產評分:=負債比率評分+存貨周轉率評分+資產周轉率評分,COLORYELLOW,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.26,0,STRCAT('估值評分:',CON2STR(估值評分,2))),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.36,0,STRCAT('收益評分:',CON2STR(收益評分,2))),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.46,0,STRCAT('資產評分:',CON2STR(資產評分,2))),COLORLIRED;
評分:=估值評分+收益評分+資產評分;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.56,0,STRCAT('總評分:',CON2STR(評分,2))),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.53,0.66,0,STRCAT('經營狀況等級:',IF(評分<40 AND 評分>=30 ,'(合格)',IF(評分<50 AND 評分>=40 ,'(良好)',IF(評分<30 AND 評分>=0 ,'(不合格)',IF(評分>=50,'(優(yōu)秀)','__')))))),COLORRED;
DRAWTEXT_FIX(1,0.775,0.66,1,'說明:估值評分沒顯示表示業(yè)績虧損'),COLORRED;
DRAWTEXT_FIX(1,0.805,0.76,1,'說明:資產評分沒顯示表示為金融類行業(yè)'),COLORRED;
DRAWTEXT_FIX(1,0.753,0.095,1,'備注:需下載專業(yè)財務數(shù)據(jù)(盤后)'),COLORRED;