在個(gè)股的實(shí)戰(zhàn)案例分析中,每一種股票都是具有自身獨(dú)特的屬性的,并且其股性的活躍度是不同的,那么就不能夠簡(jiǎn)單的使用股票走勢(shì)軟件進(jìn)行分析,還需要借助個(gè)股中股性評(píng)測(cè)系統(tǒng)指標(biāo)的源碼公式進(jìn)行分析,下面就通過(guò)軟件工具進(jìn)行指標(biāo)源碼的展示。
【個(gè)股股性評(píng)測(cè)系統(tǒng)指標(biāo)】
由于股性的活躍度除了本身具有的屬性,還要結(jié)合基本面資金、主力介入情況進(jìn)行分析,其具體的源碼公式如下:
P:=5;{副圖設(shè)置顯示小數(shù) 設(shè)為:固定一位}
DRAWTEXT_FIX(CLOSE>0,0.79,0.00,0,'┏━━┳━━━━┳━━━┳━━━┳━━━┳━━━┓')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.05,0,'┃股性┃最高連板┃漲停數(shù)┃開(kāi)板數(shù)┃跌停數(shù)┃封板率┃')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.10,0,'┣━━╋━━━━╋━━━╋━━━╋━━━╋━━━┫')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.15,0,'┃ ┃ ┃ ┃ ┃ ┃ ┃')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.20,0,'┣━━┻━━━━┻━━━╋━━━┻━━━┻━━━┫')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.25,0,'┃ 漲停次日平均 ┃ 開(kāi)板次日平均 ┃')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.30,0,'┣━━┳━━┳━━┳━━╋━━┳━━┳━━┳━━┫')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.35,0,'┃ 開(kāi) ┃ 低 ┃ 高 ┃ 收 ┃ 開(kāi) ┃ 低 ┃ 高 ┃ 收 ┃')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.40,0,'┣━━╋━━╋━━╋━━╋━━╋━━╋━━╋━━┫')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.45,0,'┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.50,0,'┗━━┻━━┻━━┻━━┻━━┻━━┻━━┻━━┛')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.58,0,' ①★統(tǒng)計(jì)周期★【 交易日】')COLORYELLOW;
DRAWTEXT_FIX(CLOSE>0,0.79,0.68,0,' ②統(tǒng)計(jì)數(shù)據(jù)剔除未開(kāi)板的一字板')COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.863,0.58,0,P),COLORRED;{顯示統(tǒng)計(jì)周期}
DRAWTEXT_FIX(C>0,0.986,0.15,0,'%'),COLORRED;
//從以上的源碼中能夠簡(jiǎn)單的發(fā)現(xiàn),該指標(biāo)公式在圖例中顯示的有統(tǒng)計(jì)周期、股價(jià)形成的漲停板數(shù)量以及漲停板封板的概率以及高、低價(jià)格的變化。
漲停價(jià):=ZTPRICE(REF(CLOSE,1),0.1);
跌停價(jià):=DTPRICE(REF(CLOSE,1),0.1);
開(kāi)板:=((HIGH>=漲停價(jià)) AND (CLOSE<漲停價(jià)));
漲停數(shù):=COUNT((C>=漲停價(jià)) AND L!=C,P) NODRAW;
開(kāi)板數(shù):=COUNT(開(kāi)板,P) NODRAW;
跌停數(shù):=COUNT(C<=跌停價(jià),P) NODRAW;
封板率:=(1-(開(kāi)板數(shù)/(漲停數(shù)+開(kāi)板數(shù))))*100;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.87,0.15,0,漲停數(shù)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.905,0.15,0,開(kāi)板數(shù)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.94,0.15,0,跌停數(shù)),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.97,0.15,0,封板率),COLORRED;
漲停次日收:=IF(REF(C>=漲停價(jià) AND L!=C,1), C/REF(C,1)-1,0);
TTJ:=IF(漲停次日收,1,0);
TTJ1:=SUM(漲停次日收,P);
TTJ2:=SUM(TTJ,P);
次日平均漲幅收:=TTJ1/TTJ2*100 NODRAW;
DRAWNUMBER_FIX(次日平均漲幅收>0 AND CURRBARSCOUNT=1,0.876,0.45,0,次日平均漲幅收),COLORRED;
DRAWNUMBER_FIX(次日平均漲幅收<=0 AND CURRBARSCOUNT=1,0.876,0.45,0,次日平均漲幅收),COLORGREEN;
漲停次日開(kāi):=IF(REF(C>=漲停價(jià) AND L!=C,1), O/REF(C,1)-1,0);
TTJ3:=IF(漲停次日開(kāi),1,0);
TTJ4:=SUM(漲停次日開(kāi),P);
TTJ5:=SUM(TTJ3,P);
次日平均漲幅開(kāi):=TTJ4/TTJ5*100 NODRAW;
DRAWNUMBER_FIX(次日平均漲幅開(kāi)>0 AND CURRBARSCOUNT=1,0.80,0.45,0,次日平均漲幅開(kāi)),COLORRED;
DRAWNUMBER_FIX(次日平均漲幅開(kāi)<=0 AND CURRBARSCOUNT=1,0.80,0.45,0,次日平均漲幅開(kāi)),COLORGREEN;
漲停次日低:=IF(REF(C>=漲停價(jià) AND L!=C,1), L/REF(C,1)-1,0);
TTJ6:=IF(漲停次日低,1,0);
TTJ7:=SUM(漲停次日低,P);
TTJ8:=SUM(TTJ6,P);
次日平均漲幅低:=TTJ7/TTJ8*100 NODRAW;
DRAWNUMBER_FIX(次日平均漲幅低>0 AND CURRBARSCOUNT=1,0.828,0.45,0,次日平均漲幅低),COLORRED;
DRAWNUMBER_FIX(次日平均漲幅低<=0 AND CURRBARSCOUNT=1,0.828,0.45,0,次日平均漲幅低),COLORGREEN;
漲停次日高:=IF(REF(C>=漲停價(jià) AND L!=C,1), H/REF(C,1)-1,0);
TTJ9:=IF(漲停次日高,1,0);
TTJ10:=SUM(漲停次日高,P);
TTJ11:=SUM(TTJ9,P);
次日平均漲幅高:=TTJ10/TTJ11*100 NODRAW;
DRAWNUMBER_FIX(次日平均漲幅高>0 AND CURRBARSCOUNT=1,0.854,0.45,0,次日平均漲幅高),COLORRED;
DRAWNUMBER_FIX(次日平均漲幅高<=0 AND CURRBARSCOUNT=1,0.854,0.45,0,次日平均漲幅高),COLORGREEN;
開(kāi)板次日開(kāi):=IF(REF(開(kāi)板,1) AND L!=C, O/REF(C,1)-1,0);
TTTJ:=IF(開(kāi)板次日開(kāi),1,0);
TTTJ1:=SUM(開(kāi)板次日開(kāi),P);
TTTJ2:=SUM(TTTJ,P);
開(kāi)板次日平均開(kāi):=TTTJ1/TTTJ2*100 NODRAW;
DRAWNUMBER_FIX(開(kāi)板次日平均開(kāi)>0 AND CURRBARSCOUNT=1,0.899,0.45,0,開(kāi)板次日平均開(kāi)),COLORRED;
DRAWNUMBER_FIX(開(kāi)板次日平均開(kāi)<=0 AND CURRBARSCOUNT=1,0.899,0.45,0,開(kāi)板次日平均開(kāi)),COLORGREEN;
開(kāi)板次日低:=IF(REF(開(kāi)板,1) AND L!=C, L/REF(C,1)-1,0);
TTTJ3:=IF(開(kāi)板次日低,1,0);
TTTJ4:=SUM(開(kāi)板次日低,P);
TTTJ5:=SUM(TTTJ3,P);
開(kāi)板次日平均低:=TTTJ4/TTTJ5*100 NODRAW;
DRAWNUMBER_FIX(開(kāi)板次日平均低>0 AND CURRBARSCOUNT=1,0.925,0.45,0,開(kāi)板次日平均低),COLORRED;
DRAWNUMBER_FIX(開(kāi)板次日平均低<=0 AND CURRBARSCOUNT=1,0.925,0.45,0,開(kāi)板次日平均低),COLORGREEN;
開(kāi)板次日高:=IF(REF(開(kāi)板,1) AND L!=C, H/REF(C,1)-1,0);
TTTJ6:=IF(開(kāi)板次日高,1,0);
TTTJ7:=SUM(開(kāi)板次日高,P);
TTTJ8:=SUM(TTTJ6,P);
開(kāi)板次日平均高:=TTTJ7/TTTJ8*100 NODRAW;
DRAWNUMBER_FIX(開(kāi)板次日平均高>0 AND CURRBARSCOUNT=1,0.955,0.45,0,開(kāi)板次日平均高),COLORRED;
DRAWNUMBER_FIX(開(kāi)板次日平均高<=0 AND CURRBARSCOUNT=1,0.955,0.45,0,開(kāi)板次日平均高),COLORGREEN;
開(kāi)板次日收:=IF(REF(開(kāi)板,1) AND L!=C, C/REF(C,1)-1,0);
TTTJ9:=IF(開(kāi)板次日收,1,0);
TTTJ10:=SUM(開(kāi)板次日收,P);
TTTJ11:=SUM(TTTJ9,P);
開(kāi)板次日平均收:=TTTJ10/TTTJ11*100 NODRAW;
DRAWNUMBER_FIX(開(kāi)板次日平均收>0 AND CURRBARSCOUNT=1,0.975,0.45,0,開(kāi)板次日平均收),COLORRED;
DRAWNUMBER_FIX(開(kāi)板次日平均收<=0 AND CURRBARSCOUNT=1,0.975,0.45,0,開(kāi)板次日平均收),COLORGREEN;
漲停:=C>=漲停價(jià) AND L!=C;
最高連板:=HHV(BARSLAST(NOT(漲停)),P);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.837,0.15,0,最高連板),COLORRED;
股性分?jǐn)?shù):=最高連板*3+漲停數(shù)*2+開(kāi)板數(shù)-跌停數(shù)+封板率;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.795,0.15,0,股性分?jǐn)?shù)),COLORRED;
由以上的源碼共振可以看出,漲停板以及跌停板的走勢(shì)變化是不同的,但是每一次的最高最低價(jià)格都是可以進(jìn)行計(jì)算的,股性的分?jǐn)?shù)也可以進(jìn)行計(jì)算得出。
以上就是本文講解的測(cè)試個(gè)股股性的指標(biāo)公式源碼,如果您還想要了解更加專業(yè)的技術(shù)知識(shí)分析,請(qǐng)點(diǎn)擊股票知識(shí)大全,進(jìn)行研究學(xué)習(xí)。