研究股票的股性在很多人看来是没有什么用的,但是也有些人还是挺重要的,不过作为一个选股的参考标准之一,还是可以稍微的了解下的,下面给大家分享一个股性指标公式。
一、股性指标公式
P:=250;
DRAWTEXT_FIX(CLOSE>0,0.79,0.00,0,'┏━━┳━━━━┳━━━┳━━━┳━━━┳━━━┓')COLORGREEN;
DRAWTEXT_FIX(CLOSE>0,0.79,0.05,0,'┃股性┃最高连板┃涨停数┃开板数┃跌停数┃封板率┃')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,'①★统计周期★【交易日】')COLORYELLOW;
DRAWTEXT_FIX(CLOSE>0,0.79,0.68,0,'②统计数据剔除未开板的一字板')COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.863,0.58,0,P),COLORRED;{显示统计周期}
DRAWTEXT_FIX(C>0,0.986,0.15,0,'%'),COLORRED;
涨停价:=ZTPRICE(REF(CLOSE,1),0.1);
跌停价:=DTPRICE(REF(CLOSE,1),0.1);
开板:=((HIGH>=涨停价)AND(CLOSE<涨停价));
涨停数:=COUNT((C>=涨停价)ANDL!=C,P)NODRAW;
开板数:=COUNT(开板,P)NODRAW;
跌停数:=COUNT(C<=跌停价,P)NODRAW;
封板率:=(1-(开板数/(涨停数+开板数)))*100;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.87,0.15,0,涨停数),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.905,0.15,0,开板数),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.94,0.15,0,跌停数),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.97,0.15,0,封板率),COLORRED;
涨停次日收:=IF(REF(C>=涨停价ANDL!=C,1),C/REF(C,1)-1,0);
TTJ:=IF(涨停次日收,1,0);
TTJ1:=SUM(涨停次日收,P);
TTJ2:=SUM(TTJ,P);
次日平均涨幅收:=TTJ1/TTJ2*100NODRAW;
DRAWNUMBER_FIX(次日平均涨幅收>0ANDCURRBARSCOUNT=1,0.876,0.45,0,次日平均涨幅收),COLORRED;
DRAWNUMBER_FIX(次日平均涨幅收<=0ANDCURRBARSCOUNT=1,0.876,0.45,0,次日平均涨幅收),COLORGREEN;
涨停次日开:=IF(REF(C>=涨停价ANDL!=C,1),O/REF(C,1)-1,0);
TTJ3:=IF(涨停次日开,1,0);
TTJ4:=SUM(涨停次日开,P);
TTJ5:=SUM(TTJ3,P);
次日平均涨幅开:=TTJ4/TTJ5*100NODRAW;
DRAWNUMBER_FIX(次日平均涨幅开>0ANDCURRBARSCOUNT=1,0.80,0.45,0,次日平均涨幅开),COLORRED;
DRAWNUMBER_FIX(次日平均涨幅开<=0ANDCURRBARSCOUNT=1,0.80,0.45,0,次日平均涨幅开),COLORGREEN;
涨停次日低:=IF(REF(C>=涨停价ANDL!=C,1),L/REF(C,1)-1,0);
TTJ6:=IF(涨停次日低,1,0);
TTJ7:=SUM(涨停次日低,P);
TTJ8:=SUM(TTJ6,P);
次日平均涨幅低:=TTJ7/TTJ8*100NODRAW;
DRAWNUMBER_FIX(次日平均涨幅低>0ANDCURRBARSCOUNT=1,0.828,0.45,0,次日平均涨幅低),COLORRED;
DRAWNUMBER_FIX(次日平均涨幅低<=0ANDCURRBARSCOUNT=1,0.828,0.45,0,次日平均涨幅低),COLORGREEN;
涨停次日高:=IF(REF(C>=涨停价ANDL!=C,1),H/REF(C,1)-1,0);
TTJ9:=IF(涨停次日高,1,0);
TTJ10:=SUM(涨停次日高,P);
TTJ11:=SUM(TTJ9,P);
次日平均涨幅高:=TTJ10/TTJ11*100NODRAW;
DRAWNUMBER_FIX(次日平均涨幅高>0ANDCURRBARSCOUNT=1,0.854,0.45,0,次日平均涨幅高),COLORRED;
DRAWNUMBER_FIX(次日平均涨幅高<=0ANDCURRBARSCOUNT=1,0.854,0.45,0,次日平均涨幅高),COLORGREEN;
开板次日开:=IF(REF(开板,1)ANDL!=C,O/REF(C,1)-1,0);
TTTJ:=IF(开板次日开,1,0);
TTTJ1:=SUM(开板次日开,P);
TTTJ2:=SUM(TTTJ,P);
开板次日平均开:=TTTJ1/TTTJ2*100NODRAW;
DRAWNUMBER_FIX(开板次日平均开>0ANDCURRBARSCOUNT=1,0.899,0.45,0,开板次日平均开),COLORRED;
DRAWNUMBER_FIX(开板次日平均开<=0ANDCURRBARSCOUNT=1,0.899,0.45,0,开板次日平均开),COLORGREEN;
开板次日低:=IF(REF(开板,1)ANDL!=C,L/REF(C,1)-1,0);
TTTJ3:=IF(开板次日低,1,0);
TTTJ4:=SUM(开板次日低,P);
TTTJ5:=SUM(TTTJ3,P);
开板次日平均低:=TTTJ4/TTTJ5*100NODRAW;
DRAWNUMBER_FIX(开板次日平均低>0ANDCURRBARSCOUNT=1,0.925,0.45,0,开板次日平均低),COLORRED;
DRAWNUMBER_FIX(开板次日平均低<=0ANDCURRBARSCOUNT=1,0.925,0.45,0,开板次日平均低),COLORGREEN;
开板次日高:=IF(REF(开板,1)ANDL!=C,H/REF(C,1)-1,0);
TTTJ6:=IF(开板次日高,1,0);
TTTJ7:=SUM(开板次日高,P);
TTTJ8:=SUM(TTTJ6,P);
开板次日平均高:=TTTJ7/TTTJ8*100NODRAW;
DRAWNUMBER_FIX(开板次日平均高>0ANDCURRBARSCOUNT=1,0.955,0.45,0,开板次日平均高),COLORRED;
DRAWNUMBER_FIX(开板次日平均高<=0ANDCURRBARSCOUNT=1,0.955,0.45,0,开板次日平均高),COLORGREEN;
开板次日收:=IF(REF(开板,1)ANDL!=C,C/REF(C,1)-1,0);
TTTJ9:=IF(开板次日收,1,0);
TTTJ10:=SUM(开板次日收,P);
TTTJ11:=SUM(TTTJ9,P);
开板次日平均收:=TTTJ10/TTTJ11*100NODRAW;
DRAWNUMBER_FIX(开板次日平均收>0ANDCURRBARSCOUNT=1,0.975,0.45,0,开板次日平均收),COLORRED;
DRAWNUMBER_FIX(开板次日平均收<=0ANDCURRBARSCOUNT=1,0.975,0.45,0,开板次日平均收),COLORGREEN;
涨停:=C>=涨停价ANDL!=C;
最高连板:=HHV(BARSLAST(NOT(涨停)),P);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.837,0.15,0,最高连板),COLORRED;
股性分数:=最高连板*3+涨停数*2+开板数-跌停数+封板率;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.795,0.15,0,股性分数),COLORRED;
以上就是股性指标公式的全部内容了,上面的这个公式是通达信股性评测系统指标公式,可以帮助大家去判断一只股票的股性是不是活跃。
二、大智慧股性活跃度指标公式
REFLINE:2;
CS:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
M20:=MA(C,20);
M30:=MA(C,30);
M2:=M20>REF(M20,1);
M3:=M30>REF(M30,1);
MCS:=CS>REF(CS,1);
TRD:=M2+M3+MCS>1;LBARS:=LLVBARS(L,21);
BARS:=IF(LBARS<13,13,LBARS);
ACT:=SMA(MAX(ABS(C-O),ABS(C-REF(C,1)))/REF(C,1)*100,10,1);YD:=ACT>LLV(ACT,13)*1.2;A1:=ACT<2ANDNOT(YD);A2:=ACT<2ANDYD;A3:=ACT>=2ANDTRD;A4:=ACT>=2ANDNOT(TRD);partline(ACT,A1,RGB(0,50,238),A2,RGB(238,130,98),A3,RGB(255,0,0),A4,RGB(0,255,0)),PRECIS2,LINETHICK2;
三、股性活跃选股公式
股性活跃(每天上下振幅较大)的股票操作性较强,即使暂时被套,未来解套的机会较大(可以高抛低吸降低成本),所以在大盘震荡或熊市行情,寻找这样的股票做波段或做T也是一种不错的操作思路。现把本人总结的选取股性活跃股票的选股公式分享出来,希望能对大家有所帮助,抛砖引玉。
ST股:=NAMELIKE('S')ORNAMELIKE('*');
{ST股若涨跌停且振幅<5%,将振幅设为5%;非ST股若涨跌停且振幅<10%,将振幅设为10%。}
当天涨跌幅:=IF(ST股AND(C/REF(C,1)>1.049ORC/REF(C,1)<0.951)AND(HIGH-LOW)/REF(C,1)<0.05,0.05,IF(NOT(ST股)AND(C/REF(C,1)>1.099ORC/REF(C,1)<0.901)AND(HIGH-LOW)/REF(C,1)<0.1,0.1,(HIGH-LOW)/REF(C,1)));
日平均振幅:=SUM(当天涨跌幅,50)/COUNT(VOL>0,50);{计算近50日,日平均涨跌幅}
(ST股AND日平均振幅>0.05)OR(NOT(ST股)AND日平均振幅>0.1)ANDDYNAINFO(8)>0ANDFINANCE(42)>365;{新股因为比较活跃,不具备分析价值,这里过滤掉。}