再发一个自制的“对应大盘”用于“股性评价”
A:=REF(HY_INDEXC,1);{对应行业}
{股票指标网}
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),NODRAW,COLORMAGENTA;
对应上涨家数:=INDEXADV{,LINETHICK0};
对应下跌家数:=INDEXDEC{,LINETHICK0};
DRAWTEXT_FIX(1,0.070,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.210,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),COLORGREEN;
DRAWTEXT_FIX(1,0.350,0.000,0,STRCAT(STRCAT('对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),COLORRED;
DRAWTEXT_FIX(1,0.490,0.000,0,STRCAT(STRCAT('对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A赋值:1日前的HY_INDEXC
输出{对应行业}
{股票指标网}
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),NODRAW,COLORMAGENTA
对应上涨家数赋值:INDEXADV{,LINETHICK0}
对应下跌家数赋值:INDEXDEC{,LINETHICK0}
DRAWTEXT_FIX(1,0.070,0.000,0,STRCAT(STRCAT('大盘总上涨家数: ',CON2STR(DYNAINFO(60),0)),' 家')),画红色
DRAWTEXT_FIX(1,0.210,0.000,0,STRCAT(STRCAT('大盘总下跌家数: ',CON2STR(DYNAINFO(61),0)),' 家')),画绿色
DRAWTEXT_FIX(1,0.350,0.000,0,STRCAT(STRCAT('输出对应上涨家数: ',CON2STR(INDEXADV,0)),' 家')),画红色
DRAWTEXT_FIX(1,0.490,0.000,0,STRCAT(STRCAT('输出对应下跌家数: ',CON2STR(INDEXDEC,0)),' 家')),画绿色