同花顺自用收益公式
源码
★狂:STRLEFT('奔★',10),colormagenta;
收利盘:MONEY/VOL ,colorliblue;
重心线$1:MA(收利盘,N1),colorligray;
重心线$2:MA(收利盘,N2),colorlired;
主营利润率:=TOSTRING('主营利润率:',1);
利润率值:=TOSTRING(ZYYWLR/ZYYWSR*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.1,0,主营利润率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.1,0,利润率值),colormagenta;
主营增长率:=TOSTRING('主营增长率:',1);
主增率值:=TOSTRING((ZYYWSR-REP(&ZYYWSR,2))/REP(&ZYYWSR,2)*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.3,0,主营增长率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.3,0,主增率值),colormagenta;
净利润增长:=TOSTRING('净利润增长:',1);
净利增值:=TOSTRING((JLR-REP(&JLR,2))/REP(&JLR,2)*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.5,0,净利润增长),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.5,0,净利增值),colormagenta;
每股未分配:=TOSTRING('每股未分配:',1);
未分配值:=TOSTRING(WFPLR/ZGB,2);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.7,0,每股未分配),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.7,0,未分配值),colormagenta;
每股盈利:=TOSTRING('股最新收益:',1);
盈利值:=TOSTRING(MGSYX,2);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.9,0,每股盈利),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.9,0,盈利值),colormagenta;
流动负债率:=TOSTRING('流动负债率:',1);
流负债值:=TOSTRING(LDFZHJ/LDZCHJ*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.17,0.1,0,流动负债率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.1,0,流负债值),colormagenta;
资产负债率:=TOSTRING('资产负债率:',1);
资产负债值:=TOSTRING(FZHJ/ZCZJ*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.17,0.3,0,资产负债率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.3,0,资产负债值),colormagenta;
每股净资产:=TOSTRING('每股净资产:',1);
净资产值:=TOSTRING(MGJZC,2);
DRAWTEXT_FIX(ISLASTBAR,0.17,0.5,0,每股净资产),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.5,0,净资产值),colormagenta;
每股公积金:=TOSTRING('每股公积金:',1);
公积金值:=TOSTRING(MGGJJ,2);
DRAWTEXT_FIX(ISLASTBAR,0.17,0.7,0,每股公积金),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.7,0,公积金值),colormagenta;
每股净资产增长率:=TOSTRING('资产增长率:',1);
每股净资同比值:=TOSTRING((MGJZC-REP(&MGJZC,2))/REP(&MGJZC,2)*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.17,0.9,0,每股净资产增长率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.28,0.9,0,每股净资同比值),colormagenta;
流通股:=TOSTRING('流通股:',1);
流通股值:=SHGZG;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.1,0,流通股),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.1,0,流通股值),colormagenta;
总户数:=TOSTRING('总户数:',1);
总户数值:=GDZS;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.3,0,总户数),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.3,0,总户数值),colormagenta;
均持股:=TOSTRING('均持股:',1);
均持股值:=RJCGS;
DRAWTEXT_FIX(ISLASTBAR,0.37,0.5,0,均持股),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.5,0,均持股值),colormagenta;
每股现金流:=TOSTRING('现金流:',1);
现金流值:=TOSTRING(JYJE/ZGB,2);
DRAWTEXT_FIX(ISLASTBAR,0.37,0.7,0,每股现金流),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.7,0,现金流值),colormagenta;
净资产收益率:=TOSTRING('净资收益:',1);
收益率值:=TOSTRING(JLR/GDQYHJ*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.37,0.9,0,净资产收益率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.9,0,收益率值),colormagenta;
a=GETREPTYPE(&JLR);
b=JLR/ZGB;
d=b*4/a;
市盈动:=TOSTRING('市盈动:',1);
动态市盈率值:=CLOSE/d;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.1,0,市盈动),colormagenta;
市净率:=TOSTRING('市净率:',1);
DRAWTEXT_FIX(ISLASTBAR,0.68,0.1,0,动态市盈率值),colormagenta;
市净率:=TOSTRING('市净率:',1);
市净率值:=TOSTRING(CLOSE/MGJZC,2);
DRAWTEXT_FIX(ISLASTBAR,0.60,0.3,0,市净率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.68,0.3,0,市净率值),colormagenta;
市盈率:=TOSTRING('市盈率:',1);
市盈率值:=CLOSE*ZGB/YEARJLR;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.6,0,市盈率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.68,0.6,0,市盈率值),colormagenta;
毛利率:=TOSTRING('毛利率:',1);
毛利率值:=TOSTRING((ZYYWSR-ZYYWCB)/ZYYWSR*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.60,0.9,0,毛利率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.68,0.9,0,毛利率值),colormagenta;