【基礎(chǔ)畫線】
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;
可以從圖中看出,該指標(biāo)線的基礎(chǔ)畫線公式中顯示的只有一條指標(biāo)線的走勢(shì),用來表示股價(jià)偏離均線的程度,當(dāng)兩個(gè)高點(diǎn)位置連接形成一條趨勢(shì)線的時(shí)候,在其交叉的位置就是一個(gè)買入點(diǎn)的位置,投資者可以把握對(duì)應(yīng)的股價(jià)操作機(jī)會(huì)。
【疊加K線】
MA5:MA(C,5),COLORFF00FF,LINETHICK2;
MA10:MA(C,10),COLOR00FFFF,LINETHICK2;
MA21:MA(C,21),COLORFFFFFF,LINETHICK2;
BIAS :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIASMA :=MA(BIAS,21);
AA:=BIAS>=BIASMA;
BB:=BIAS
STICKLINE(AA,C,O,3,0),COLORRED;
STICKLINE(AA,H,L,0.5,0),COLORRED;
STICKLINE(BB,C,O,3,0),COLOR00FF00;
STICKLINE(BB,H,L,0.5,0),COLOR00FF00;
在疊加K線中選擇的是5日、10日以及21日均線的形態(tài)走勢(shì)進(jìn)行分析,在指標(biāo)線的走勢(shì)圖中顯示的是帶狀柱的形態(tài),投資者可以進(jìn)行仔細(xì)的觀察,如果您還想要了解其他的軟件工具,請(qǐng)點(diǎn)擊江恩軟件或者咨詢?cè)诰€客服。
【角度計(jì)算】
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)勢(shì)出擊:=(大盤>REF(大盤,1) AND CROSS(個(gè)股,大盤));
STICKLINE(強(qiáng)勢(shì)出擊,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;
【趨勢(shì)分析】
M1:=2;M2:=60;
MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
乖離率:(SMA(MID1,M1,1)-MA(SMA(MID1,2,1),M2))/MA(SMA(MID1,2,1),M2)*100,COLOR999999;
MID:=乖離率;
MA1:(10*MID+9*REF(MID,1)+8*REF(MID,2)+7*REF(MID,3)+6*REF(MID,4)+5*REF(MID,5)
+4*REF(MID,6)+3*REF(MID,7)+2*REF(MID,8)+1*REF(MID,9))/55,COLOR0000DD;
MA2:EMA(MA1,8),COLORWHITE; {MA1取普通平均值}
IF(MA1<=REF(MA1,1) ,MA1,DRAWNULL),COLOR22FF22;
IF(MA2<=REF(MA2,1),MA2,DRAWNULL),COLOR33FF33;
{長(zhǎng)中短周期把握}
N1A:=BARSLAST(CROSS(C,MA(C,13)));
N2A:=BARSLAST(CROSS(MA(C,13),C));
短線跟蹤:IF(N1A
N1B:=BARSLAST(CROSS(C,MA(C,60)));
N2B:=BARSLAST(CROSS(MA(C,60),C));
中線跟蹤:IF(N1B
N1C:=BARSLAST(CROSS(C,MA(C,250)));
N2C:=BARSLAST(CROSS(MA(C,250),C));
長(zhǎng)線跟蹤:IF(N1C
V0:0,COLOR666666;{零軸};
從中可以把握其中國(guó)的短期、中期以及長(zhǎng)期的股價(jià)趨勢(shì)發(fā)展,如果您還想要了解更多的股市操作技巧,或者是源碼公式,請(qǐng)關(guān)注股票技術(shù)指標(biāo)公式欄目,為您提供詳細(xì)的源碼解析。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www.xinsheng8.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889