【bias角度計(jì)算】
Bias角度計(jì)算通過大盤的走勢以及強(qiáng)勢轉(zhuǎn)折等形態(tài)進(jìn)行分析,具體的公式源碼如下:
N1:=5;N2:=10;N3:=20;
BIAS1:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,LINETHICK1;
BIAS2:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,LINETHICK2;
BIAS3:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100,LINETHICK4;
MAXBIAS1:=IF(BIAS1>REF(BIAS1,1),BIAS1,0);
角度計(jì)算1:IF(BIAS1>REF(BIAS1,1),(MAXBIAS1-MIN(BIAS1,REF(BIAS1,1)))/
(ABS(BIAS1)+ABS(REF(BIAS1,1))),0),LINETHICK1;
MAXBIAS2:=IF(BIAS2>REF(BIAS2,1),BIAS2,0);
角度計(jì)算2:IF(BIAS2>REF(BIAS2,1),(MAXBIAS2-MIN(BIAS2,REF(BIAS2,1)))/
(ABS(BIAS2)+ABS(REF(BIAS2,1))),0),LINETHICK1;
MAXBIAS3:=IF(BIAS3>REF(BIAS3,1),BIAS3,0);
角度計(jì)算3:IF(BIAS3>REF(BIAS3,1),(MAXBIAS3-MIN(BIAS3,REF(BIAS3,1)))/
(ABS(BIAS3)+ABS(REF(BIAS3,1))),0),LINETHICK1;
三強(qiáng):=角度計(jì)算1>=1 AND 角度計(jì)算2>=1 AND 角度計(jì)算3>=1;
STICKLINE(三強(qiáng),0.5,1,0.5,0),COLORRED;
大盤6日:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6)*100;
大盤12日:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12)*100;
大盤24日:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24)*100;
大盤:=(大盤6日 + 大盤12日 + 大盤24日)/3;
個(gè)股6日:=(C-MA(C,6))/MA(C,6)*100;
個(gè)股12日:=(C-MA(C,12))/MA(C,12)*100;
個(gè)股24日:=(C-MA(C,24))/MA(C,24)*100;
個(gè)股:=(個(gè)股6日 + 個(gè)股12日 + 個(gè)股24日)/3;
強(qiáng)勢出擊:=(大盤>REF(大盤,1) AND CROSS(個(gè)股,大盤));
STICKLINE(強(qiáng)勢出擊,0,1,0,0),COLORRED;
轉(zhuǎn)折1:=REF(角度計(jì)算1,2)>REF(角度計(jì)算1,1) AND REF(角度計(jì)算1,1)<角度計(jì)算1
AND REF(角度計(jì)算1,2)<角度計(jì)算1;
轉(zhuǎn)折2:=REF(角度計(jì)算2,2)>REF(角度計(jì)算2,1) AND REF(角度計(jì)算2,1)<角度計(jì)算2
AND REF(角度計(jì)算2,2)<角度計(jì)算2;
轉(zhuǎn)折3:=REF(角度計(jì)算3,2)>REF(角度計(jì)算3,1) AND REF(角度計(jì)算3,1)<角度計(jì)算3
AND REF(角度計(jì)算3,2)<角度計(jì)算3;
同時(shí)轉(zhuǎn)折買點(diǎn):=轉(zhuǎn)折1 AND 轉(zhuǎn)折2 AND 轉(zhuǎn)折3;
DRAWICON(同時(shí)轉(zhuǎn)折買點(diǎn) AND C>MA(C,5)
AND MA(C,5)>REF(MA(C,5),1)
AND REF(MA(C,5),1)>REF(MA(C,5),2),
MIN(MIN(角度計(jì)算1,角度計(jì)算2),角度計(jì)算3),1);
DRAWICON(同時(shí)轉(zhuǎn)折買點(diǎn),角度計(jì)算1,1);
DRAWICON(同時(shí)轉(zhuǎn)折買點(diǎn),角度計(jì)算2,1);
DRAWICON(同時(shí)轉(zhuǎn)折買點(diǎn),角度計(jì)算3,1);
金屋頂:1,CIRCLEDOT,LINETHICK3,COLORRED;
從源碼中進(jìn)行分析,bias指標(biāo)通過3個(gè)角度計(jì)算大盤以及個(gè)股的走勢強(qiáng)弱,同時(shí)經(jīng)過轉(zhuǎn)折買賣點(diǎn)進(jìn)行頂部和底部的研判,具體的走勢如圖深桑達(dá)A的日K線走勢,從底部的7.70元向上拉升,在13.09元的點(diǎn)位階段性見頂,形成金屋頂?shù)淖邉荩顿Y者要注意高位投資風(fēng)險(xiǎn),及時(shí)賣出獲利。
【bias畫線】
Bias主要是通過趨勢線的走勢以及指標(biāo)線的偏離程度,進(jìn)行買入點(diǎn)的確定,具體的源碼公式如下:
N:=12;
B:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;
M:=INTPART(2*N/4);
A1:=REF(B,M)=HHV(B,2*M+1);
B1:=FILTER(A1,M);
C1:=BACKSET(B1,M+1);
D1:=FILTER(C1,M);
R3:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S1:=R3>REF(R3,1);
DRAWLINE(D1,B,S1,B,1),COLORRED;
M1:=INTPART(3*N/7);
A120:=REF(B,M1)=HHV(B,2*M1+1);
B120:=FILTER(A120,M1);
C321:=BACKSET(B120,M1+1);
D119:=FILTER(C321,M1);
R1:=BACKSET(ISLASTBAR,BARSLAST(D119)+1); S10:=R1>REF(R1,1);
DRAWLINE(D119,B,S10,B,1),COLORYELLOW;
M2:=INTPART(1*N/10);
A2:=REF(B,M2)=HHV(B,2*M2+1);
B2:=FILTER(A2,M2);
C2:=BACKSET(B2,M2+1);
D2:=FILTER(C2,M2);
R4:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); S2:=R4>REF(R4,1);
DRAWLINE(D2,B,S2,B,1),COLORBLUE;
如圖恒順醋業(yè)(600305)的股價(jià)走勢,從12.12元開始拉升,上下震蕩,并且經(jīng)歷了橫盤的調(diào)整走勢形態(tài),在bias線突破下降趨勢線的點(diǎn)位時(shí),提示買入的操作信號,同時(shí)股價(jià)開始啟動(dòng)拉升,投資者可以積極的買入,等待后市的上漲獲利拉升。
以上就是本文講解的關(guān)于bias角度計(jì)算以及bias畫線的指標(biāo)公式源碼,如果您還想要了解更加專業(yè)的技術(shù)形態(tài)分析,請點(diǎn)擊期指持倉量,了解基本的持倉問題。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www.xinsheng8.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889