大智慧海市蜃樓成交量指標公式
- 指標類別: 大智慧指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 成交量
- 畫線方法: 副圖
- 日期:2018-12-20 來源:互聯網
大智慧海市蜃樓成交量指標公式:含有未來函數
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;
大智慧海市蜃樓成交量指標公式實例圖解:
大智慧海市蜃樓成交量指標公式