自用主图公式,可以参考

[复制链接]
查看25 | 回复0 | 2022-7-24 06:12:01 | 显示全部楼层 |阅读模式

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;
 

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则