股性评价祝大家新年快乐!自制的指标
GGJJ:=(CLOSE-REF(C,1))/REF(C,1);
DYDP:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
GDC:=(GGJJ-DYDP)*100;
{股票指标网WWW.}
股性廿日:((CLOSE-REF(C,20))/REF(C,20)-(INDEXC-REF(INDEXC,20))/REF(INDEXC,20))*100,COLORWHITE,LINETHICK3;
DRAWBAND(股性廿日,RGB(80,0,0),0,RGB(0,50,0));
股性五日:((CLOSE-REF(C,5))/REF(C,5)-(INDEXC-REF(INDEXC,5))/REF(INDEXC,5))*100,COLORYELLOW,LINETHICK2;
股性十日:((CLOSE-REF(C,10))/REF(C,10)-(INDEXC-REF(INDEXC,10))/REF(INDEXC,10))*100,COLORRED,LINETHICK2;
股性60日:((CLOSE-REF(C,60))/REF(C,60)-(INDEXC-REF(INDEXC,60))/REF(INDEXC,60))*100,COLORMAGENTA;
STICKLINE(GDC>0,0,GDC,3,0),COLORRED;
STICKLINE(GDC<0,0,GDC,3,0),COLORGREEN;
个股涨幅:(CLOSE-REF(C,1))/REF(C,1)*100,COLORRED,NODRAW;
对应大盘涨幅:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,NODRAW;{对应}
换手率:VOL/CAPITAL*100,COLORWHITE,NODRAW;
预测换手:IF(CURRBARSCOUNT=1 AND PERIOD=5,换手率*240/FROMOPEN,DRAWNULL),COLORMAGENTA,NODRAW;
日量比:V/REF(MA(V,5),1),NODRAW,COLORWHITE;
量比:DYNAINFO(17),NODRAW,COLORWHITE;
个股振幅:=(H-L)/L*100;
大盘振幅:=(INDEXH-INDEXL)/INDEXL*100;
今日波幅:=100*(DYNAINFO(5)-DYNAINFO(6))/DYNAINFO(6);
今日价差:=DYNAINFO(5)-DYNAINFO(6);
{股票指标网WWW.}
DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('今日个股振幅: ',CON2STR(今日波幅,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.120,0.000,0,STRCAT(STRCAT('今日个股高低价差: ',CON2STR(今日价差,2)),' 元')),COLORWHITE;
DRAWTEXT_FIX(1,0.260,0.000,0,STRCAT(STRCAT('今日大盘振幅: ',CON2STR(大盘振幅,2)),' %')),COLORWHITE;
DRAWTEXT_FIX(1,0.380,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.520,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),COLORGREEN;
DRAWTEXT_FIX(1,0.660,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.800,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),COLORGREEN;
DRAWTEXT_FIX(C>0,0,0.08,0,'(【对应、大盘总】:1.对应,是专指个股与对应大盘的关系。对应大盘是指上证指数、深圳成指、中小盘指和创业板指;港股则是恒生指数。2.大盘总,是指沪深大盘总的上涨或下跌家数。)'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.16,0,'(【柱状图、曲线】:1.柱状图,表示当日的股性,即个股与对应大盘对比的强弱。2.曲线,表示不同时间段个股的股性,即强弱。)'),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
GGJJ赋值:(收盘价-1日前的C)/1日前的C
DYDP赋值:(INDEXC-1日前的INDEXC)/1日前的INDEXC
GDC赋值:(GGJJ-DYDP)*100
输出{股票指标网WWW.}
股性廿日:((收盘价-20日前的C)/20日前的C-(INDEXC-20日前的INDEXC)/20日前的INDEXC)*100,画白色, 线宽为3
DRAWBAND(股性廿日,RGB(80,0,0),0,RGB(0,50,0))
输出股性五日:((收盘价-5日前的C)/5日前的C-(INDEXC-5日前的INDEXC)/5日前的INDEXC)*100,画黄色, 线宽为2
输出股性十日:((收盘价-10日前的C)/10日前的C-(INDEXC-10日前的INDEXC)/10日前的INDEXC)*100,画红色, 线宽为2
输出股性60日:((收盘价-60日前的C)/60日前的C-(INDEXC-60日前的INDEXC)/60日前的INDEXC)*100,画洋红色
当满足条件GDC>0时,在0和GDC之间画柱状线
当满足条件GDC<0时,在0和GDC之间画柱状线
输出个股涨幅:(收盘价-1日前的C)/1日前的C*100,画红色,NODRAW
输出对应大盘涨幅:(INDEXC-1日前的INDEXC)/1日前的INDEXC*100,NODRAW
输出{对应}
换手率:成交量/当前流通股本*100,画白色,NODRAW
如果 到最后交易的周期=1 AND PERIOD=5返回换手率*240/FROM开盘价否则返回DRAWNULL
输出日量比:V/REF(V的5日简单移动平均,1),NODRAW,画白色
输出量比:DYNAINFO(17),NODRAW,画白色
个股振幅赋值:(H-L)/L*100
大盘振幅赋值:(INDEXH-INDEXL)/INDEXL*100
今日波幅赋值:100*(DYNAINFO(5)-DYNAINFO(6))/DYNAINFO(6)
今日价差赋值:DYNAINFO(5)-DYNAINFO(6)
{股票指标网WWW.}
DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('今日输出个股振幅: ',CON2STR(今日波幅,2)),' %')),画白色
输出DRAWTEXT_FIX(1,0.120,0.000,0,STRCAT(STRCAT('今日个股高低价差: ',CON2STR(今日价差,2)),' 元')),画白色
DRAWTEXT_FIX(1,0.260,0.000,0,STRCAT(STRCAT('今日输出大盘振幅: ',CON2STR(大盘振幅,2)),' %')),画白色
输出DRAWTEXT_FIX(1,0.380,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),画红色
输出DRAWTEXT_FIX(1,0.520,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),画绿色
输出DRAWTEXT_FIX(1,0.660,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),画红色
输出DRAWTEXT_FIX(1,0.800,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),画绿色
DRAWTEXT_FIX(C>0,0,0.08,0,'(【对应、大盘总】:1.对应,是专指个股与对应大盘的关系。对应大盘是指上证指数、深圳成指、中小盘指和创业板指;港股则是恒生指数。2.大盘总,是指沪深大盘总的上涨或下跌家数。)'),画白色
DRAWTEXT_FIX(C>0,0,0.16,0,'(【柱状图、曲线】:1.柱状图,表示当日的股性,即个股与对应大盘对比的强弱。2.曲线,表示不同时间段个股的股性,即强弱。)'),画白色