1、日線量比
指的是股價走勢當天日線的量比比那話,可以用日量比和分時量比進行對比分析:
TT:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
P:=IF(PERIOD=5,FROMOPEN,TT);
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);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,VOL),NODRAW;
S1:=IF(PERIOD=4,60,IF(PERIOD=3,30,IF(PERIOD=2,15,IF(PERIOD=1,5,1))));
S2:=IF(PERIOD=5,4,IF(PERIOD=4,8,IF(PERIOD=3,16,IF(PERIOD=2,48,240))));
S3:=P/S1,NODRAW;
分時量比:=SUM(VOL,S3)/S3/DYNAINFO(16)/TOTAL;
日量比:=VVOL/REF(MA(VOL,5),1);
量比:IF(PERIOD<5,分時量比,IF(PERIOD=5,日量比,0));
結(jié)合源碼分析實戰(zhàn)中的操作案例,如圖平安銀行從8.93元向上連續(xù)拉升到9.80元的日K線走勢圖,其量比指標的走勢是隨著股價上漲下跌而變化的,目前對應的量比值是在0.8。
2、量比走勢
量比走勢的變化是通過數(shù)據(jù)天數(shù)、即時虛擬量進行即時量比的研究分析,其具體的股票指標公式如下:
數(shù)據(jù)天數(shù):BARSSINCE(CLOSE>0)+1,NODRAW;
即時虛擬量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL/FROMOPEN*240,DRAWNULL),NODRAW;
虛擬量:=IF(CURRBARSCOUNT>1,VOL,即時虛擬量);
即時量比:虛擬量/REF(MA(虛擬量,5),1),COLORWHITE,LINETHICK2;
STICKLINE(C>=O,即時量比*0.99,0,0,0),COLORRED;
STICKLINE(C
{DRAWTEXT(即時量比>1.5 AND 即時量比<1.8,即時量比*1.1,'放量'),COLORYELLOW;}
DRAWNUMBER(即時量比>=1.5 AND 即時量比<1.8,即時量比*1.11,即時量比);
{DRAWTEXT(即時量比>=1.8 AND 即時量比<3,即時量比*1.11,'倍量'),COLORYELLOW;}
DRAWNUMBER(即時量比>=1.8 AND 即時量比<3,即時量比*1.15,即時量比);
{DRAWTEXT(即時量比>=3 AND 即時量比<5,即時量比*1.12,'大量'),COLORYELLOW;}
DRAWNUMBER(即時量比>=3 AND 即時量比<5,即時量比*1.2,即時量比),COLORYELLOW;
DRAWTEXT(即時量比>=5 ,即時量比*1.115,'巨量'),COLORYELLOW;
IF(即時量比>10,即時量比,DRAWNULL),COLORBLUE,LINETHICK2;
IF(即時量比<10 AND 即時量比>2.5,即時量比,DRAWNULL),COLORRED,LINETHICK2;
IF(即時量比<1 ,即時量比,DRAWNULL),COLORGREEN,LINETHICK2;
IF(即時量比<0.5 ,即時量比,DRAWNULL),COLORBLUE,LINETHICK2;
1;
然而不同的數(shù)據(jù)天數(shù),其量比走勢是會發(fā)生變化的,如圖深振業(yè)A的股價日K線運行趨勢,從7.16元上漲到10.95元,拉升將近3個點,對應的量比走勢是上下震蕩的走勢,其中在股價對應的低點位置,持續(xù)愛你了兩次巨量的波的形態(tài),是投資者可以考慮介入的點位,其中數(shù)據(jù)天數(shù)是420天,即時虛擬量在71254.00,對應的即時量比則是0.69。
3、量比漲跌
股價的漲跌與量比漲跌變化是一致的,主要運行的是量比、漲跌、角度、換手,四個方面進行股價買賣位置的提示分析,具體的操作源碼如下:
VAR22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
獲利盤: WINNER(CLOSE)*100;
VAR33:=SMA(VAR22,3,1);
VAR44:=SMA(VAR33,9,1);
VAR55:=3*VAR33-2*VAR44;
VAR66:=VOL;
量比: VOL/MA(VOL,5);
漲跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
換手: VOL/CAPITAL*100;
VAR77:=SUM(換手,30);
VAR88:=LLV(INDEXL,5);
VAR99:=HHV(INDEXH,5);
VARAA:=EMA((INDEXC-VAR88)/(VAR99-VAR88)*100,4);
VARBB:=MA(EMA(0.667*REF(VARAA,1)+0.333*VARAA,2),9);
VARCC:=MA(VARBB,30);
VARDD:=EMA(獲利盤,4);
本盤億股: CAPITAL/1000000,;
V5: MA(VOL,5)*2;
VARE:=MA(V5,3);
V34: MA(VOL,34)*2;
VARF:=(漲跌>VARDD AND 角度<-30 AND 漲跌>3);
CROSS(VARBB,VARCC) AND VARCC<29;
CROSS(VARCC,VARBB) AND VARCC>58;
STICKLINE(VOL AND VAR33>VAR44,0,VOL,3,1),COLORRED;
STICKLINE(VOL AND VAR33<=VAR44,0,VOL,3,1),COLORCYAN;
DRAWTEXT(CROSS(VARBB,VARCC) AND 角度<-18 AND VARCC<29,VOL*1.2,'買 '),COLORYELLOW;
W:DRAWTEXT(CROSS(VARCC,VARBB) AND VARCC>58,VOL*1.2,'賣'),COLORWHITE;
DRAWTEXT(CROSS(VARE,V5) AND 角度>22,V5,'<----');
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
如圖平安銀行的日K線圖,從8.52元上漲拉升到9.80元的價格,對應的量比是向上拉升的,此時的獲利盤在44.30,漲跌幅度為0.66,并且提示了相應的賣出點,希望投資者能夠及時把握操作機會。
本文通過三個方面講解了量比指標的源碼公式,如果您還想要了解更加專業(yè)的技術(shù)指標知識,請點擊:bias是什么意思。
上一篇:“角線攻擊”與“獲利線”主
服務中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www74.com.cn
銷售熱線:0371-65350319
技術(shù)支持:13333833889