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