通达信对应行业指数指标公式

X_1:=REF(HY_INDEXC,1);
HYDB:DRAWKLINE(HY_INDEXH,HY_INDEXO,HY_INDEXL,HY_INDEXC);
X_2:=CONST(HY_INDEXC);
行业涨幅%:IF(X_1>0,(HY_INDEXC-X_1)*100/X_1,0),NODRAW,COLORWHITE;
行业涨跌±:HY_INDEXC-REF(HY_INDEXC,1),NODRAW,COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.17,0.95,0,22327),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.24,0.95,0,3358),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.215,0.95,0,行业涨幅%),COLORGREEN;
MA5:MA(HYDB,5),COLORWHITE;
MA10:MA(HYDB,10),COLORYELLOW;
MA30:MA(HYDB,30),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.02,0.55,0,22328),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.55,0,HYZSCODE),COLORRED;
X_3:=STRCAT(22329,CON2STR(HY_INDEXADV,0));
X_4:=STRCAT(22330,CON2STR(HY_INDEXDEC,0));
DRAWTEXT_FIX(ISLASTBAR,0.12,0.55,0,X_3),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.19,0.55,0,X_4),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.02,0.95,0,22331),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.95,0,HYBLOCK),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.95,0,VAR2STR(CONST(HY_INDEXC),2)),COLORGREEN;
上涨家数:DYNAINFO(60),NODRAW,COLORRED;
下跌家数:DYNAINFO(61),NODRAW,COLORGREEN;
行业上涨数:HY_INDEXADV,NODRAW,COLORLIRED;
行业下跌数:HY_INDEXDEC,NODRAW,COLORLIGREEN;
行业涨跌比:行业上涨数/行业下跌数,NODRAW,COLORWHITE;




未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图