在线检测未来函数

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

来源:Internet,编辑:股旁网,2022-06-01

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;

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

相关文章