PB估值目标(通达信公式 副图 源码 测试图)

[复制链接]
查看99 | 回复0 | 2022-6-27 15:07:43 | 显示全部楼层 |阅读模式

 {估值目标}

{技术指标} {其他类型} {副图}
{公式描述: 估值目标 }
 
市净率:((CLOSE / FINANCE(34)) * IF((DATE < 1150830),1,0)),NODRAW;
净资产:(FINANCE(34) * IF((DATE < 1150830),1,0)),NODRAW;
市盈率:DYNAINFO(39),NODRAW;
重心:(DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL)) * IF((DATE < 1150830),1,0)),NODRAW,LINETHICK2,COLORRED;
股价:CLOSE,NODRAW,LINETHICK2;
值H:((((CAPITAL * 100) * HIGH) / 100000000) * IF((DATE < 1150830),1,0)),NODRAW,COLORGREEN;
值C:((((CAPITAL * 100) * CLOSE) / 100000000) * IF((DATE < 1150830),1,0)),NODRAW;
ROE:((FINANCE(30) / FINANCE(19)) * 100),NODRAW;
均价:((AMOUNT / VOL) / 100),NODRAW,COLORAAAA00;
VAR9:=(CONST(市净率) * IF((DATE < 1150830),1,0));
IF(((VAR9 < 300) AND (VAR9 > 150)),200,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(((VAR9 < 300) AND (VAR9 > 150)),150,DRAWNULL),COLORMAGENTA;
IF(((VAR9 < 300) AND (VAR9 > 150)),120,DRAWNULL),COLORMAGENTA;
IF(((VAR9 < 55) AND (VAR9 > 30)),45,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 35) AND (VAR9 > 16)),35,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 35) AND (VAR9 > 16)),27.5,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 30) AND (VAR9 > 15)),20,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(((VAR9 < 30) AND (VAR9 > 16)),17.5,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 30) AND (VAR9 > 16)),16.5,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 30) AND (VAR9 > 16)),15,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 16) AND (VAR9 > 4)),6,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(((VAR9 < 14) AND (VAR9 > 10)),14,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 14) AND (VAR9 > 10)),12,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 14) AND (VAR9 > 10)),10,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 12) AND (VAR9 > 8)),8,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 10) AND (VAR9 > 6)),9,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 10) AND (VAR9 > 6)),8,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 10) AND (VAR9 > 6)),7,DRAWNULL),DOTLINE,COLORMAGENTA;
IF(((VAR9 < 10) AND (VAR9 > 6)),6,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(((VAR9 < 10) AND (VAR9 > 5)),5.5,DRAWNULL),DOTLINE,COLORRED;
IF(((VAR9 < 10) AND (VAR9 > 4.5)),5.5,DRAWNULL),DOTLINE,COLORRED;
IF(((VAR9 < 10) AND (VAR9 > 5)),5,DRAWNULL),DOTLINE,COLORRED;
IF(((VAR9 < 8) AND (VAR9 > 5)),4,DRAWNULL),LINETHICK2,COLORRED;
IF(((VAR9 < 8) AND (VAR9 > 7)),4,DRAWNULL),DOTLINE,COLORRED;
IF(((VAR9 < 6) AND (VAR9 > 4)),6,DRAWNULL),LINETHICK2,COLORMAGENTA;
IF(((VAR9 < 6) AND (VAR9 > 4)),5,DRAWNULL),DOTLINE,COLOR00DDDD;
IF(((VAR9 < 6) AND (VAR9 > 4)),4.5,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 6) AND (VAR9 > 4)),4,DRAWNULL),LINETHICK2,COLORRED;
IF(((VAR9 < 6) AND (VAR9 > 4)),3,DRAWNULL),DOTLINE,COLORYELLOW;
IF(((VAR9 < 5) AND (VAR9 > 3)),4.5,DRAWNULL),DOTLINE,COLORRED;
IF(((VAR9 < 5) AND (VAR9 > 3)),3.5,DRAWNULL),DOTLINE,COLORYELLOW;
IF(((VAR9 < 5) AND (VAR9 > 3)),3.25,DRAWNULL),DOTLINE,COLORYELLOW;
IF(((VAR9 < 4) AND (VAR9 > 3)),4,DRAWNULL),LINETHICK2,COLORRED;
IF(((VAR9 < 4) AND (VAR9 > 3)),3.5,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 4) AND (VAR9 > 2)),3,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 4) AND (VAR9 > 2)),2.75,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 4) AND (VAR9 > 2)),2.5,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 4) AND (VAR9 > 2)),2.25,DRAWNULL),DOTLINE,COLOR00DDDD;
IF(((VAR9 < 3) AND (VAR9 > 2)),2,DRAWNULL),LINETHICK2,COLORGREEN;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),2,DRAWNULL),LINETHICK2,COLORGREEN;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),2.25,DRAWNULL),DOTLINE,COLORYELLOW;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),1.85,DRAWNULL),DOTLINE,COLORGREEN;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),1.75,DRAWNULL),DOTLINE,COLORGREEN;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),1.5,DRAWNULL),DOTLINE,COLORGREEN;
IF(((VAR9 < 3) AND (VAR9 > 1.5)),2,DRAWNULL),DOTLINE,COLORGREEN;
IF(((VAR9 < 2) AND (VAR9 > 1.5)),1.6,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 2) AND (VAR9 > 1.5)),1.5,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.75) AND (VAR9 > 1.35)),1.55,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.75) AND (VAR9 > 1.35)),1.5,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.75) AND (VAR9 > 1.35)),1.35,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.75) AND (VAR9 > 1.25)),1.35,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.75) AND (VAR9 > 1)),1.25,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.5) AND (VAR9 > 0.75)),1,DRAWNULL),LINETHICK2,COLORCYAN;
IF(((VAR9 < 1.25) AND (VAR9 > 0.7)),1.05,DRAWNULL),DOTLINE,COLORCYAN;
IF(((VAR9 < 1.25) AND (VAR9 > 0.7)),1,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 1.25) AND (VAR9 > 0.7)),0.925,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 1.25) AND (VAR9 > 0.7)),0.85,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 1.25) AND (VAR9 > 0.7)),0.75,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 1) AND (VAR9 > 0.7)),0.7,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 0.8) AND (VAR9 > 0.5)),0.7,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 0.8) AND (VAR9 > 0.5)),0.6,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 0.8) AND (VAR9 > 0.5)),0.55,DRAWNULL),DOTLINE,COLORBBDDDD;
IF(((VAR9 < 0.8) AND (VAR9 > 0.5)),0.5,DRAWNULL),DOTLINE,COLORBBDDDD;
VAR73:=(CLOSE / FINANCE(34));
VAR74:=(OPEN / FINANCE(34));
VAR75:=(HIGH / FINANCE(34));
VAR76:=(LOW / FINANCE(34));
DRAWKLINE(VAR75,VAR74,VAR76,VAR73);
E短线:EMA(VAR73,12),COLORRED;
E长线:EMA(VAR73,50),COLOR0088EE;
VAR80:=(((VAR73 - REF(VAR73,1)) / REF(VAR73,1)) > 0.098);
DRAWTEXT(VAR80,(VAR75 * 1.03),6),LINETHICK2,COLORYELLOW;
 
 

20224203541182726.png

20224203541182726.png
 

20224203535912354.rar

4.52 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

20224203535912354.rar

回复

使用道具 举报

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

本版积分规则