在线检测未来函数

同花顺三种市盈率指标公式

来源:Internet,编辑:股旁网,2021-05-19

地域: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

同花顺三种市盈率指标公式

相关文章