地域:DRAWTEXT_FIX(ISLASTBAR,0.78,0,1,BLOCK(2,1)),coloryellow;
所属行业:DRAWTEXT_FIX(ISLASTBAR,0.85,0,1,BLOCK(1,1)),coloryellow;
主概念:DRAWTEXT_FIX(ISLASTBAR,0.1,0,1,BLOCK(3,1)),colorred;
lastjly:=REP(&JLR,2);
lastyear:=YEARREP(&JLR,1);
IF(lastyear==JLR)
xxx:=0;
ELSE
xxx:=lastyear-lastjly;
/*市盈率TTMa:CLOSE*ZGB/(xxx+JLR);*/ /*在除权下使用*/
aaa:=REFX(&PRE,1);
市盈率TTM除10:aaa*ZGB/(xxx+JLR)/10,colorred;
市净率:aaa*ZGB/GDQYHJ,colorgreen;
滚动市盈率TTM:CLOSE*ZGB/(YEARREP(&JLR,1)-QUARTERREP(&JLR,2)+QUARTERREP(&JLR,1)),colorgreen;
静态市盈率LYR:CLOSE*ZGB/YEARJLR,colorred;
a=GETREPTYPE(&JLR);
b=JLR/ZGB;
d=b*4/a;
动态市盈率:CLOSE/d,coloryellow