當前位置:首頁 > 财經 > 正文

主圖上顯示流通盤 流通市值 通達信公式

{總股本}
DRAWTEXT_FIX(1>0,0,0.05,0,'■總股本(億)'),COLORFFBF00;
DRAWNUMBER_FIX(1>0,0,0.1,0,FINANCE(1)/100000000),COLORFFBF00;
{流通盤}
DRAWTEXT_FIX(1>0,0.08,0.05,0,'■流通盤(億)'),COLORD0E040;
DRAWNUMBER_FIX(1>0,0.08,0.1,0,FINANCE(7)/100000000),COLORD0E040;
{流通市值}
流通市值:=C*FINANCE(7)/100000000;
DRAWTEXT_FIX(1>0,0.16,0.05,0,'■流通市值'),COLORD4FF7F;
DRAWNUMBER_FIX(1>0,0.16,0.1,0,流通市值),COLORD4FF7F;
{市淨率}
市淨率:=C/FINANCE(34);
DRAWTEXT_FIX(1>0,0.25,0.05,0,'■市淨率'),COLORD0E040;
DRAWNUMBER_FIX(1>0,0.25,0.1,0,市淨率),COLORD0E040;
{市盈率}
市盈率:=C/FINANCE(33);
DRAWTEXT_FIX(1>0,0.33,0.05,0,'■市盈率'),COLOREBCE87;
DRAWNUMBER_FIX(1>0,0.33,0.1,0,市盈率),COLOREBCE87;


​主圖上顯示流通盤 流通市值 通達信公式
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA43:MA(CLOSE,43)COLORGRAY;
MA120:MA(CLOSE,120)COLORLICYAN;
MA250:MA(CLOSE,250)COLORLIRED;
總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億');
流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億');
上市天數:=STRCAT(' 上市天數: ',CON2STR(FINANCE(42),0));
A:=DAYTODATE(DATETODAY(CONST(DATE))-FINANCE(42))+19000000;
上市日期:=STRCAT(' 上市日期: ',CON2STR(A,0));
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(總股本,流通盤),全流通),市值),上市天數),上市日期));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,股本市值),COLORLICYAN;



​ 總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億');
流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億');
上市天數:=STRCAT(' 上市天數: ',CON2STR(FINANCE(42),0));
上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(總股本,流通盤),全流通),市值),上市天數));
DRAWTEXT_FIX(ISLASTBAR,0.00,0.36,0,股本市值),COLORGREEN;


​改了後現在在K顯示隻顯示流通盤了,很高興,但是在分時線上顯示還是搞不出來
總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億');
流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億');
上市天數:=STRCAT(' 上市天數: ',CON2STR(FINANCE(42),0));
上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
股本市值:=STRCAT('股本市值: ',流通盤);
DRAWTEXT_FIX(ISLASTBAR,0.00,0,0,股本市值),COLORGREEN;​




你可能想看:

有話要說...

取消
掃碼支持 支付碼