通达信审股主图指标源码

[复制链接]
查看81 | 回复0 | 2021-8-20 15:02:15 | 显示全部楼层 |阅读模式

以下是通达信审股主图指标源码(无源码的请下载附件导入)

DRAWRECTREL(0,0,200,450,RGB(25,55,144));
 DRAWTEXT_FIX(DYNAINFO(39)<100,0.01,0.0,0,STRCAT('动态市盈率:',CON2STR(DYNAINFO(39),2))),COLORMAGENTA;
 DRAWTEXT_FIX(DYNAINFO(39)>100,0.01,0.0,0,STRCAT('动态市盈率:',CON2STR(DYNAINFO(39),2))),COLORGREEN;
 DRAWTEXT_FIX(FINANCE(40)/100000000<10,0.01,0.05,0,STRCAT('流通市值(亿): ',CON2STR(FINANCE(40)/100000000,2))),COLORMAGENTA;
 DRAWTEXT_FIX(FINANCE(40)/100000000>10,0.01,0.05,0,STRCAT('流通市值(亿): ',CON2STR(FINANCE(40)/100000000,2))),COLORGREEN;
 DRAWTEXT_FIX(FINANCE(11)/FINANCE(15)>1.2,0.01,0.10,0,STRCAT('流动比例: ',CON2STR(FINANCE(11)/FINANCE(15),1))),COLORMAGENTA;
 DRAWTEXT_FIX(FINANCE(11)/FINANCE(15)<=1.2,0.01,0.10,0,STRCAT('流动比例: ',CON2STR(FINANCE(11)/FINANCE(15),1))),COLORGREEN;
 DRAWTEXT_FIX((FINANCE(11)-FINANCE(27))/FINANCE(15)>1.2,0.01,0.15,0,STRCAT('速动比例:',CON2STR((FINANCE(11)-FINANCE(27))/FINANCE(15),1))),COLORMAGENTA;
 DRAWTEXT_FIX((FINANCE(11)-FINANCE(27))/FINANCE(15)<=1.2,0.01,0.15,0,STRCAT('速动比例:',CON2STR((FINANCE(11)-FINANCE(27))/FINANCE(15),1))),COLORGREEN;
 DRAWTEXT_FIX(FINANCE(9)<45,0.01,0.20,0,STRCAT('资产负债率: ',CON2STR(FINANCE(9),2))),COLORMAGENTA;
 DRAWTEXT_FIX(FINANCE(9)>=45,0.01,0.20,0,STRCAT('资产负债率: ',CON2STR(FINANCE(9),2))),COLORGREEN;
 DRAWTEXT_FIX(FINANCE(34)>2,0.01,0.25,0,STRCAT('每股净资产: ',CON2STR(FINANCE(34),2))),COLORRED;
 DRAWTEXT_FIX(FINANCE(34)<=2,0.01,0.25,0,STRCAT('每股净资产: ',CON2STR(FINANCE(34),2))),COLORGREEN;
 DRAWTEXT_FIX(FINANCE(43)>1,0.01,0.30,0,STRCAT('利润同比:',CON2STR(FINANCE(43),2))),COLORRED;
 DRAWTEXT_FIX(FINANCE(43)<1,0.01,0.30,0,STRCAT('利润同比:',CON2STR(FINANCE(43),2))),COLORCYAN;
 DRAWTEXT_FIX(FINANCE(44)>1,0.01,0.35,0,STRCAT('收入同比:',CON2STR(FINANCE(44),2))),COLORRED;
 DRAWTEXT_FIX(FINANCE(44)<1,0.01,0.35,0,STRCAT('收入同比:',CON2STR(FINANCE(44),2))),COLORCYAN;

DRAWRECTREL(0,800,350,999,RGB(25,55,144));
 DRAWTEXT_FIX(1,0.01,0.80,0,HYBLOCK),COLORYELLOW;{行业}
DRAWTEXT_FIX(1,0.01,0.85,0,DYBLOCK),COLORWHITE;{地域}
DRAWTEXT_FIX(1,0.01,0.90,0,GNBLOCK),COLORWHITE;{板块}
DRAWTEXT_FIX(1,0.01,0.95,0,FGBLOCK),COLORWHITE;{风格};

总涨跌比:=DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100;
 DRAWTEXT_FIX(1,0.01,0.40,0,STRCAT('总涨跌比: ',CON2STR(总涨跌比,2))),COLORYELLOW;

718500113.jpg

718500113.jpg

回复

使用道具 举报

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

本版积分规则