U8:=SUM(VOL*CLOSE,8)/SUM(VOL,8);
UU8:=IF(U8 =0,CLOSE,U8);
MS8:UU8,colorblack;
DRAWTEXT(ISLASTBAR,MS8,'8'),ALIGN0,SHIFT2,colorblack;
U16:=SUM(VOL*CLOSE,16)/SUM(VOL,16);
UU16:=IF(U16 =0,CLOSE,U16);
MS16:UU16,coloryellow,LINETHICK1;
DRAWTEXT(ISLASTBAR,MS16,'16'),ALIGN0,SHIFT2,coloryellow;
U32:=SUM(VOL*CLOSE,32)/SUM(VOL,32);
UU32:=IF(U32 =0,CLOSE,U32);
MS32:UU32,colorred,LINETHICK1;
DRAWTEXT(ISLASTBAR,MS32,'32'),ALIGN0,SHIFT2,colorred;
U64:=SUM(VOL*CLOSE,64)/SUM(VOL,64);
UU64:=IF(U64 =0,CLOSE,U64);
MS64:UU64,COLORCC9900,LINETHICK2;
DRAWTEXT(ISLASTBAR,MS64,'64'),ALIGN0,SHIFT2,COLORCC9900;
U128:=SUM(VOL*CLOSE,128)/SUM(VOL,128);
UU128:=IF(U128 =0,CLOSE,U128);
MS128:UU128,COLOR6666CC,LINETHICK1;
DRAWTEXT(ISLASTBAR,MS128,'128'),ALIGN0,SHIFT2,COLOR6666CC;
U256:=SUM(VOL*CLOSE,256)/SUM(VOL,256);
UU256:=IF(U256 =0,CLOSE,U256);
MS256:UU256,LINETHICK1;
DRAWTEXT(ISLASTBAR,MS256,'256'),ALIGN0,SHIFT2,colorwhite;
U512:=SUM(VOL*CLOSE,512)/SUM(VOL,512);
UU512:=IF(U512 =0,CLOSE,U512);
MS512:UU512,LINETHICK1;
DRAWTEXT(ISLASTBAR,MS512,'512'),ALIGN0,SHIFT2,colorblack;
WS:=MOD(REF(C,1)*100,10)/100;
FD:=REF(C,1)/10-IF(WS 0.05,WS,WS-0.10)/10;
:=C=REF(C,1)+FD;
跌停:=C=REF(C,1)-FD;
STICKLINE(涨停,L,C,2,1),colorred;
STICKLINE(跌停,L,O,2,1),colorgreen;
!聚集最新热门的股票指标公式源码,包含同花顺、通达信、大智慧等最新热门指标公式,还可以发布股票指标公式编写需求及解答网友的指标公式疑问获取更多积分。