通达信板块分析指标公式源码详解
<img src="https:////res/437584.jpg" alt="通达信<a href=" gushiyaowen="" 290163.html'="">板块分析指标公式源码详解'>
A:=REF(HY_INDEXC,1);VAR1:=SMA(HY_INDEXA,10,1)/10000; VAR2:=REF(VAR1,1);
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK),COLOR00C0C0;
HYDB:=DRAWKLINE(HY_INDEXH,HY_INDEXO,HY_INDEXL,HY_INDEXC);
STICKLINE(VAR1>VAR2,HY_INDEXO,HY_INDEXC,2.5,0),COLORRED;
STICKLINE(VAR1<VAR2,HY_INDEXO,HY_INDEXC,2.5,0),COLORGREEN;
趋势线:MA(HY_INDEXC,20),LINETHICK2,COLORMAGENTA;短线操作线:MA(HY_INDEXC,3),COLORWHITE;
板块指数:HY_INDEXC,LINETHICK0;
IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(趋势线<=REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORCYAN;
涨家数:HY_INDEXADV,NODRAW,COLORRED;跌家数:HY_INDEXDEC,NODRAW,COLORGREEN;
赞 (0)