【趨勢軌跡指標(biāo)】
主要是通過技術(shù)指標(biāo)macd、kdj、rsi等的走勢變化,尋找個股的趨勢軌跡,從中分析個股的買賣點位置,具體的源碼公式如下:
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)
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)
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_>=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;
如圖平安銀行的趨勢軌跡指標(biāo)中的走勢形態(tài),從最低點16.16開始向上拉升,然后在從17.49元的高點下跌回落,包含一個上漲趨勢一個下跌趨勢,在上漲中作買入,在下跌跡象出現(xiàn)的時候,及時賣出獲利。
【角度突破線】
當(dāng)股價向上運行突破下跌角度線,是上漲的信號:
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的走勢圖,以11.34元為高點向下畫出角度突破線,當(dāng)股價向上突破的時候,說明有反彈的跡象,投資者可以重點關(guān)注。
以上就是本文講解的股市中的趨勢軌跡指標(biāo)以及角度突破線的源碼公式,如果您還想要了解更加專業(yè)的技術(shù)形態(tài)分析,請關(guān)注股票技術(shù)指標(biāo)公式欄目進行研究學(xué)習(xí)。
上一篇:源碼解讀“底部介入”與“回
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:hbzcqc.cn
銷售熱線:0371-65350319
技術(shù)支持:13333833889