【通達信】精準背離指標公式
攻城獅 2015.11.08 00:10
MA(C,5);
趨勢線:MA(C,12),COLORRED;
IF(趨勢線>REF(趨勢線,1),趨勢線,DRAWNULL),COLORRED;
IF(趨勢線 A1:=BARSLAST(REF(CROSS(“MACD.DIF”(12,26,9),”MACD.DEA”(12,26,9)),1));
B1:=REF(C,A1+1)>C AND REF(“MACD.DIF”(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
底背離MACD:DRAWTEXT(FILTER(B1>0,5),LOW,’△’),COLORYELLOW;
DRAWTEXT(FILTER(B1>0,5),LOW*0.98,’MACD底背離’),COLOR00FF00;
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));
底背離KDJ:DRAWTEXT(FILTER(B2>0,5),LOW,’△’),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),LOW*0.98,’KDJ底背離’),COLORRED;
A3:=BARSLAST(REF(CROSS(“RSI.RSI1″(8,55,55),”RSI.RSI2″(8,55,55)),1));
B3:=REF(C,A3+1)>C AND REF(“RSI.RSI1″(8,55,55),A3+1)<"RSI.RSI1"(8,55,55) AND CROSS("RSI.RSI1"(8,55,55),"RSI.RSI2"(8,55,55));
底背離RSI:DRAWTEXT(FILTER(B3>0,5),LOW,’△’),COLORYELLOW;
DRAWTEXT(FILTER(B3>0,5),LOW*0.98,’RSI底背離’),COLORF0F000;
C1:=BARSLAST(REF(CROSS(“MACD.DEA”(12,26,9),”MACD.DIF”(12,26,9)),1));
D1:=REF(C,C1+1)“MACD.DIF”(12,26,9) AND CROSS(“MACD.DEA”(12,26,9),”MACD.DIF”(12,26,9));
頂背離MACD:DRAWTEXT(FILTER(D1>0,5),HIGH*1.02,’▽’),COLOR00FF00;
DRAWTEXT(FILTER(D1>0,5),HIGH*1.04,’MACD頂背離’),COLORRED;
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));
頂背離KDJ:DRAWTEXT(FILTER(D2>0,5),HIGH*1.02,’▽’),COLOR00FF00;
DRAWTEXT(FILTER(D2>0,5),HIGH*1.04,’KDJ頂背離’),COLORF00FF0;
C3:=BARSLAST(REF(CROSS(“RSI.RSI2″(8,55,55),”RSI.RSI1″(8,55,55)),1));
D3:=REF(C,C3+1)“RSI.RSI1″(8,55,55) AND CROSS(“RSI.RSI2″(8,55,55),”RSI.RSI1″(8,55,55));
頂背離RSI:DRAWTEXT(FILTER(D3>0,5),HIGH*1.02,’▽’),COLOR00FF00;
DRAWTEXT(FILTER(D3>0,5),HIGH*1.04,’RSI頂背離’),COLORYELLOW;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.guangshenggb.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。