以下是通达信成交量副图源码新版的
今K换:VOL/CAPITAL*100,NODRAW,COLORBLUE;
三K换:SUM(今K换,3),NODRAW,COLORBLACK;
量比: V/MA(REF(V,1),5),NODRAW,COLORBLACK;
金额亿:AMOUNT/100000000,NODRAW,COLORRED;
振幅K:(H-L)/L*100,NODRAW,COLORBLACK;
VOLUME:VOL,VOLSTICK,COLORBLACK;
字:=STRCAT(STRCAT(STRCAT('',STKNAME),' ◆ '),CODE);
DRAWTEXT_FIX(ISLASTBAR,0.02,0.02,0,字),COLORBLACK;
流通市值:=STRCAT(STRCAT('流通市值:',CON2STR((CAPITAL/1000000)*C,2)),' 亿');
DRAWTEXT_FIX(ISLASTBAR,0.22,0.02,0,流通市值),COLORBLACK;
V9:MA(VOLUME,9);
M18:MA(VOLUME,18),COLORMAGENTA;
M30:MA(VOLUME,30),COLORBLACK;
{市场涨跌数量}
LSSZS:=STRCAT('沪深总上涨 ',CON2STR(DYNAINFO(60),0));
LSXDS:=STRCAT('沪深总下跌 ',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0.02,0.18,0,LSSZS),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.22,0.18,0,LSXDS),COLORBLUE;