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