炒股指标

显示 收起

大智慧海市蜃楼成交量指标公式

大智慧海市蜃楼成交量指标公式:含有未来函数

input:起始点(0,0,1000),结束点(0,0,1000);
成交量:VOL,pRECIS0,VOLSTICK;
{主动买卖盘}
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2));
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- BB*(HIGH-LOW),0-VOL/2));
净买卖:=主动买+主动卖;
STICKLINE(净买卖>0,0,净买卖,5,0),LAYER1,COLOR5B5BFF;
{预测成交量}
T:=CURRENTTIME;
H1:=intpart(T / 10000);
MM:=intpart(mod(T,10000)/100);
A1:=if(between(t,93000,113000),60*(h1-9)+mm-30,120);
A2:=if(between(t,130000,150000) and t>113000,60*(h1-13)+mm+120,240);
A:=if(t<130000,a1,a2);
预测量:IF(BARSTATUS=2,VOL*240/A,VOL),pRECIS0,linethick0,COLORFB64D6;
STICKLINE(预测量>vol and t>93000 and t<150000,0,预测量,2,0),LAYER6,COLORFB64D6;
{15日最小量}
stickline(v=llv(v,15),0,v,5,0),COLORWHITE;
{突变}
突变:=v+ref(v,1)>=(ref(v,2)+ref(v,3)+ref(v,4)+ref(v,5)+ref(v,6))/5*3 and v<2*ref(v,1) and c>o and c>ma(c,21);
stickline(突变,0,v,5,0),COLOR5D5D5D;
{变盘}
V2:=IF(BARSTATUS=2,预测量/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1,0,v,5,0),COLOR5D5D5D;
{大盘变盘}
大盘变盘:=c>=hhv(c,15) and v>=hhv(v,15);
stickline(大盘变盘,0,v,5,0),COLOR5D5D5D;
{饱和度}
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C) /(HHV(AMOUNT,20)/HHV(C,20))*100),COLORBA75FF,precis0,LINETHICK0;
{定点线}
起始日:=filter(backset(BARSTATUS=2,起始点),起始点);
结束日:=filter(backset(BARSTATUS=2,结束点),结束点);
VERTLINE(起始日,1),LAYER0,coloryellow;
VERTLINE(结束日,1),LAYER0,colorgreen;
天数:起始点-结束点+1,pRECIS0,linethick0,colorwhite;
{换手率}
换手率:=v/capital*100;
累计涨跌:sum((c/ref(c,1)-1)*100,天数),pRECIS2,linethick0,COLOR8C8CFF;
累计换手:sum(换手率,天数),pRECIS2,linethick0,COLOR77CBFD;
{成交量布林线}
下布林线: MA(vol,20),precis0,LAYER7,DOTLINE,COLOR5D5D5D;
上布林线:下布林线 + 2*STDDEV(v,20),precis0,LAYER7,DOTLINE,COLOR5D5D5D;

大智慧海市蜃楼成交量指标公式实例图解:

大智慧海市蜃楼成交量指标公式