TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
预估成交量:=IF((CURRBARSCOUNT=1 AND DYnaINFO(8)>1),vol*TOTAL/CTIME,DRAWNULL),NODRAW;
{ STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),预估成交量,0, 4,-1),COLORFF00FF,LINETHICK2;}
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
{STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;}
VOL2:VOL,VOLSTICK;
AA:= VOL>=REF(V,1)*1.91 && C>REF(C,1);
A2:= VOL>=REF(V,2)*1.91 && C>REF(C,2);{如果今天仍然是前天量的2倍,显示金柱量}
A3:= AMOUNT >= REF(AMOUNT, 2)*1.91 && AMOUNT>=REF(AMOUNT,2);
AA1:=VOL<REF(LLV(VOL,21),1);
AA2:=VOL<REF(LLV(VOL,55),1);
AA3:=Abs(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;
STICKLINE(AA1,0,V,1,0),COLORCYAN;
STICKLINE(AA2,0,V,1,0),COLORmaGENTA;
STICKLINE(AA3,0,V,1,0),COLORRED;
STICKLINE(AA,0,V,1,0),COLORBLUE;
STICKLINE(A2,0,V,1,0),COLORBLUE;
STICKLINE(A3,0,V,1,0),COLORBLUE;
倍缩量1 := VOL/REF(VOL,1) < 0.5,COLORYELLOW;
倍缩量2 := VOL/REF(VOL,2) < 0.5,COLORYELLOW;
STICKLINE(倍缩量1, 0, V, 3, 0),COLORYELLOW;
STICKLINE(倍缩量2, 0, V, 3, 0),COLORYELLOW;
{
个股能量线:=ema(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
大盘能量线:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);
VOL_210 := HHV(VOL, 150);
个股线: 个股能量线 * VOL_210 / 100 /10000,COLORWHITE,LINETHICK2;
大盘线: 大盘能量线 * VOL_210 / 100 /10000,COLORCYAN,LINETHICK2;
出头鸟:=crOSS(个股线, 大盘线);
DRAWTEXT(出头鸟, 大盘线, '出头鸟'), COLORYELLOW;
}
{MV1:MA(VOL,5);
MV2:MA(VOL,10);
{MV3:MA(VOL,20);};
总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
{流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');}
全流通:=STRCAT(' 流通比: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
流通值:=(CAPITAL/1000000)*C;
市值:=STRCAT(STRCAT(' 流通: ',CON2STR(流通值,2)),'亿');
股本市值:=STRCAT('市值: ',STRCAT(STRCAT(STRCAT(总股本,全流通),市值),''));
{DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLORYELLOW;}
换手率5 : IF( HHV(DYNAINFO(37), 180) > 0.05, 0.05 * CAPITAL, 0), COLOR000080; {DYNAINFO(37)>0.25即25%,市值大于800亿的不显示此线}
换手率10 : IF( HHV(DYNAINFO(37), 180) > 0.10, 0.10 * CAPITAL, 0), COLORWHITE, LINETHICK2{如果180内有换手率大于10%的成交量,就显示此线,否则不显示};
换手率20 : IF( HHV(DYNAINFO(37), 180) > 0.20, 0.20 * CAPITAL, 0),COLORFFFF00 ;
{换手率20 : IF(流通值<200, 换手20, 0);};
五日量:MA(V,5), DOTLINE, LINETHICK2, COLORWHITE;