首頁(yè) > 股票投資 > 股票技術(shù)指標(biāo)公式 > 正文

股票技術(shù)指標(biāo)公式——趨勢(shì)軌跡pk角度突破線

來源:【贏家江恩】責(zé)任編輯:fanxiaonan添加時(shí)間:2017-01-24 10:02:08
  在股票技術(shù)指標(biāo)的應(yīng)用中,想要捕捉走勢(shì)良好的個(gè)股,首先要判斷股票的趨勢(shì)軌跡,然后尋找股價(jià)的突破點(diǎn)位,由此趨勢(shì)軌跡指標(biāo)以及角度突破線指標(biāo)就應(yīng)運(yùn)而生,下面贏家財(cái)富網(wǎng)就通過股票技術(shù)指標(biāo)公式源碼展現(xiàn)給大家。

  【趨勢(shì)軌跡指標(biāo)】

  主要是通過技術(shù)指標(biāo)macd、kdj、rsi等的走勢(shì)變化,尋找個(gè)股的趨勢(shì)軌跡,從中分析個(gè)股的買賣點(diǎn)位置,具體的源碼公式如下:

  SHORT:=12;

  LONG:=26;

  M:=9;

  DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);

  DEA_:= EMA(DIFF,M);

  MACD_ := 2*(DIFF-DEA_),COLORSTICK;

  MACD:MACD_,colorwhite;

  DIF:DIFF,colorwhite;

  DEA:DEA_,coloryellow;

  A1:=BARSLAST(REF(CROSS(DIFF,DEA_),1));

  B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)

  A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));

  B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

  A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

  B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

  C1:=BARSLAST(REF(CROSS(DEA_,DIFF),1));

  D1:=REF(C,C1+1)DIFF AND CROSS(DEA_,DIFF);

  C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));

  D2:=REF(C,C2+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));

  C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));

  D3:=REF(C,C3+1)"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));

  MACD底背:IF(B1>0,-0.1,0),colorred,POINTDOT;

  KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;

  RSI底背:IF(B3>0,-0.1,0),coloryellow,POINTDOT;

  MACD頂背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;

  KDJ頂背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;

  RSI頂背:IF(D3>0,0.1,0),colorwhite,POINTDOT;

  STICKLINE(MACD_>REF(MACD_,1) AND MACD_>0,0,MACD_,0,0),colorred;

  STICKLINE(MACD_<=REF(MACD_,1) AND MACD_>0,0,MACD_,0,0),coloryellow;

  STICKLINE(MACD_

  STICKLINE(MACD_>=REF(MACD_,1) AND MACD_<0,0,MACD_,0,0),colormagenta;

  STICKLINE(C>0,0,0,50,1),colorblue;

  PARTLINE(DIFF,DIFF>MA(DIFF,2),colorred,DIFF

  PARTLINE(DEA_,DEA_>MA(DEA_,2),colormagenta,DEA_

  A:=REF(DIFF,1)REF(DIFF,1);

  B:=REF(DIFF,1)>REF(DIFF,2) AND REF(DIFF,2)>REF(DIFF,3) AND DIFF

  買:IF(CROSS(DIFF,DEA_),DIFF,NULL),CIRCLEDOT,colorred;

  賣:IF(CROSS(DEA_,DIFF),DIFF,NULL),CIRCLEDOT,colorgreen;

  如圖平安銀行的趨勢(shì)軌跡指標(biāo)中的走勢(shì)形態(tài),從最低點(diǎn)16.16開始向上拉升,然后在從17.49元的高點(diǎn)下跌回落,包含一個(gè)上漲趨勢(shì)一個(gè)下跌趨勢(shì),在上漲中作買入,在下跌跡象出現(xiàn)的時(shí)候,及時(shí)賣出獲利。

平安銀行趨勢(shì)軌跡

  【角度突破線】

  當(dāng)股價(jià)向上運(yùn)行突破下跌角度線,是上漲的信號(hào):

  JD:=15;

  T20:=20;

  T40:=40;

  X_1:=FILTERX(CURRBARSCOUNT>20 AND CURRBARSCOUNT<120 AND HIGH=HHV(HIGH,120),100);

  X_2:=BARSLAST(X_1);

  X_3:=REF(HIGH,X_2);

  X_4:=10/TAN(JD*3.1416/180);

  X_5:=X_3*0.1/X_4;

  L15:IF(RANGE(X_2,(-1),100),X_3-X_5*X_2,DRAWNULL),colormagenta;

  X_6:=IF(X_2=T20,(X_3-HIGH)/T20,DRAWNULL);

  X_7:=IF(CURRBARSCOUNT=1 AND X_2>T20,REF(X_6,X_2-T20),DRAWNULL);

  X_8:=CONST(X_7);

  X_9:=IF(RANGE(X_2,(-1),100),X_3-X_8*X_2,DRAWNULL);

  X_10:=IF(CURRBARSCOUNT<10,CONST(X_9),DRAWNULL);

  L20:IF(EVERY(LOW>X_9,10),DRAWNULL,X_9),colorgreen;

  STICKLINE(X_2=T20,LLV(LOW,T20)*0.95,X_3,0,0),colorligray;

  X_11:=IF(X_2=T40,(X_3-HIGH)/T40,DRAWNULL);

  X_12:=IF(CURRBARSCOUNT=1 AND X_2>T40,REF(X_11,X_2-T40),DRAWNULL);

  X_13:=CONST(X_12);

  X_14:=IF(RANGE(X_2,(-1),100),X_3-X_13*X_2,DRAWNULL);

  X_15:=IF(CURRBARSCOUNT<10,CONST(X_14),DRAWNULL);

  L40:X_14,coloryellow;

  STICKLINE(X_2=T40,LLV(LOW,T40)*0.95,X_3,0,0),colorligray;

  X_16:=X_2>40 AND REF(CROSS(LOW,L15),1) AND CLOSE

  X_17:=X_2>40 AND REF(CROSS(LOW,L15),1) AND CLOSE>OPEN;

  DRAWICON(X_17,LOW*0.95,1);

  如圖深圳業(yè)A的走勢(shì)圖,以11.34元為高點(diǎn)向下畫出角度突破線,當(dāng)股價(jià)向上突破的時(shí)候,說明有反彈的跡象,投資者可以重點(diǎn)關(guān)注。

角度突破線

  以上就是本文講解的股市中的趨勢(shì)軌跡指標(biāo)以及角度突破線的源碼公式,如果您還想要了解更加專業(yè)的技術(shù)形態(tài)分析,請(qǐng)關(guān)注股票技術(shù)指標(biāo)公式欄目進(jìn)行研究學(xué)習(xí)。

鄭州亨瑞軟件開發(fā)有限公司
版權(quán)所有

服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:datuav.com

銷售熱線:0371-65350319
技術(shù)支持:13333833889

注冊(cè)下載;