在主图左上角显示有关财务数据和所属板块
分享给需要的股友方便看盘,将源码复制到用户看盘主图。
源码
A1:=STRCAT(STRCAT('总收入同比增长:',CON2STR(FINANCE(44),2)),'% ');
A2:=STRCAT(A1,STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(43),2)),'% '));
A3:=STRCAT(A2,STRCAT(STRCAT('资产负债率:',CON2STR(FINANCE(9),2)),'% '));
A4:=STRCAT(A3,STRCAT(STRCAT('每股现金流:',CON2STR(FINANCE(25)/FINANCE(1),2)),'元'));
DRAWTEXT_FIX(ISLASTBAR,0.001,0.00,0,STRCAT(A4,0)),COLORWHITE ;
B1:=STRCAT(DYBLOCK,' ');
B2:=STRCAT(B1,STRCAT(HYBLOCK,' '));
B3:=STRCAT(B2,STRCAT(FGBLOCK,' '));
B4:=STRCAT(B3,STRCAT(GNBLOCK,' '));
DRAWTEXT_FIX(ISLASTBAR,0.001,0.06,0,STRCAT(B4,0)),COLORYELLOW ;