一、公式如下: 總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億');流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億');全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億');上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(總股本,流通盤),全流通),市值),上市日期));市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));市銷率:=STRCAT(' 市銷率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市凈率:=STRCAT(' 市凈率: ',CON2STR(C/FINANCE(34),2));凈資收益率:=STRCAT(' 凈資收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));凈利潤率:=STRCAT(' 凈利潤率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主營利潤率:=STRCAT(' 主營利潤率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));當(dāng)前業(yè)績:=STRCAT('當(dāng)前業(yè)績: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市銷率),市凈率),凈資收益率),毛利率),凈利潤率),主營利潤率));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;預(yù)警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'輕警','無警'));財務(wù)預(yù)警:=STRCAT('財務(wù)預(yù)警: ',STRCAT(預(yù)警,STRCAT('-Z值: ',CON2STR(Z值,3))));優(yōu)質(zhì)資產(chǎn)率:=STRCAT(' 優(yōu)質(zhì)資產(chǎn)率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));現(xiàn)金負(fù)債比:=STRCAT(' 現(xiàn)金負(fù)債比: ',CON2STR(FINANCE(25)/FINANCE(15),3));財務(wù)系數(shù):=STRCAT('風(fēng)險系數(shù): ',STRCAT(STRCAT(財務(wù)預(yù)警,優(yōu)質(zhì)資產(chǎn)率),現(xiàn)金負(fù)債比));DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,財務(wù)系數(shù)),COLOR888888;DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,當(dāng)前業(yè)績),COLOR888888;DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLOR888888;DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公眾號:歐歐量化'),COLORRED;AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);凈流入萬元:=(AAA2-AAA3-0.5*AAA4);PMB:=REF(PMA,1)<1 AND PMA;密碼:(EMA(MA(B1萬元,2),2))/100000,COLORYELLOW,NODRAW;XGG:=PMB AND 密碼>REF(密碼,1) AND 二日比>1,COLORRED,NODRAW;MA5:MA(C,5);MA10:MA(C,10);MA30:MA(C,30);DRAWNUMBER(XGG=1 ,L,密碼),COLORYELLOW;STICKLINE(XGG,C,O,3,0),COLORYELLOW;STICKLINE(XGG,H,L,0,0),COLORYELLOW;二、主力密碼選股公式:
AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);凈流入萬元:=(AAA2-AAA3-0.5*AAA4);PMB:=REF(PMA,1)<1 AND PMA;密碼:=(EMA(MA(B1萬元,2),2))/100000;XGG:PMB AND 密碼>REF(密碼,1) AND 二日比>1;測試一下,平倉規(guī)則是,不論盈虧,以持股5天后平倉為條件,勝率為59.51% 風(fēng)險提示:本指標(biāo)公式僅作為知識分享,模擬測試不構(gòu)成任何投資建議,不作投資依據(jù)。
|