【通達(dá)信】漲跌家數(shù)統(tǒng)計指標(biāo)公式
攻城獅 2015.11.08 02:16
滬A漲家數(shù):=”999999$ADVANCE”,COLORRED,NODRAW;
滬A跌家數(shù):=”999999$DECLINE”,COLORGREEN,NODRAW;
深A(yù)漲家數(shù):=”399107$ADVANCE”,COLORRED,NODRAW;
深A(yù)跌家數(shù):=”399107$DECLINE”,COLORGREEN,NODRAW;
上漲總家數(shù):滬A漲家數(shù)+深A(yù)漲家數(shù),COLORRED,NODRAW;
上漲總家數(shù)比:(滬A漲家數(shù)+深A(yù)漲家數(shù))/(滬A漲家數(shù)+滬A跌家數(shù)+深A(yù)漲家數(shù)+深A(yù)跌家數(shù))*100,COLORRED,NODRAW;
下跌總家數(shù):滬A跌家數(shù)+深A(yù)跌家數(shù),COLORGREEN,NODRAW;
下跌總家數(shù)比:(滬A跌家數(shù)+深A(yù)跌家數(shù))/(滬A漲家數(shù)+滬A跌家數(shù)+深A(yù)漲家數(shù)+深A(yù)跌家數(shù))*100,COLORGREEN,NODRAW;
STICKLINE(上漲總家數(shù)>0,0,上漲總家數(shù),1,0),COLORRED;
STICKLINE(下跌總家數(shù)>0,2500,2500+下跌總家數(shù),1,0),COLORGREEN;
AAA1:=STRCAT(‘上漲總家數(shù) ‘,CON2STR(上漲總家數(shù),0) );
DRAWTEXT_FIX(ISLASTBAR,0.7,0.00,0,AAA1),COLORRED;
AAA2:=STRCAT(STRCAT(‘上漲總家數(shù)比 ‘,CON2STR(上漲總家數(shù)比,0)),’ %’);
DRAWTEXT_FIX(ISLASTBAR,0.7,0.06,0,AAA2),COLORRED;
AAA3:=STRCAT(‘下跌總家數(shù) ‘,CON2STR(下跌總家數(shù),0) );
DRAWTEXT_FIX(ISLASTBAR,0.7,0.12,0,AAA3),COLORGREEN;
AAA4:=STRCAT(STRCAT(‘下跌總家數(shù)比 ‘,CON2STR(下跌總家數(shù)比,0)),’ %’);
DRAWTEXT_FIX(ISLASTBAR,0.7,0.18,0,AAA4),COLORGREEN;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。