<img src="https:////res/437584.jpg" alt="通達(dá)信<a href=" gushiyaowen="" 290163.html'="">板塊分析指標(biāo)公式源碼詳解'> A:=REF(HY_INDEXC,1);VAR1:=SMA(HY_INDEXA,10,1)/10000; VAR2:=REF(VAR1,1); 行業(yè)漲幅: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; 趨勢(shì)線:MA(HY_INDEXC,20),LINETHICK2,COLORMAGENTA;短線操作線:MA(HY_INDEXC,3),COLORWHITE; 板塊指數(shù):HY_INDEXC,LINETHICK0; IF(趨勢(shì)線>REF(趨勢(shì)線,1),趨勢(shì)線,DRAWNULL),LINETHICK2,COLORMAGENTA; IF(趨勢(shì)線<=REF(趨勢(shì)線,1),趨勢(shì)線,DRAWNULL),LINETHICK2,COLORCYAN; 漲家數(shù):HY_INDEXADV,NODRAW,COLORRED;跌家數(shù):HY_INDEXDEC,NODRAW,COLORGREEN; |
|