DRAWTEXT_FIX(1,0,0.02,0,STRCAT(STRCAT(GNBLOCK,FGBLOCK),ZSBLOCK)),COLORMAGENTA;
上涨家数:="SZ399002$ADVANCE"+"SH999999$ADVANCE"-"SZ399108$ADVANCE";
下跌家数:="SZ399002$DECLINE"+"SH999999$DECLINE"-"SZ399108$DECLINE";
涨比%:=上涨家数/(上涨家数+下跌家数)*100;
跌比%:=下跌家数/(上涨家数+下跌家数)*100;
DRAWTEXT_FIX(1,0,0.06,0,'涨家:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.02,0.06,0,STRCAT('',CON2STR(上涨家数,0))),COLORRED;
DRAWTEXT_FIX(1,0.04,0.06,0,'跌家:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.06,0,STRCAT('',CON2STR(下跌家数,0))),COLORGREEN;
DRAWTEXT_FIX(1,0.08,0.06,0,'涨比:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.10,0.06,0,STRCAT('',CON2STR(涨比%,0))),COLORRED;
DRAWTEXT_FIX(1,0.12,0.06,0,'跌比:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.14,0.06,0,STRCAT('',CON2STR(跌比%,0))),COLORGREEN;
|