資源描述:
《【股票指標(biāo)公式下載】-【通達(dá)信】真正背離(底背離、頂背離、macd、kdj、rsi)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫(kù)。
1、【通達(dá)信】真正背離(底背離、頂背離、macd、kdj、rsi)-指標(biāo)公式源碼{參數(shù)N為5,10,5}DIFIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEAEA1:=EMA(DIFIF1,9);MACD1:=2*(DIFIF1-DEAEA1),STICK;MACD2:=EMA(MACD1,3);STICKLINE(MACD1>MACD2ANDMACD1>0,0,MACD1,1,0),COLORRED;STICKLINE(MACD1>MACD2ANDMACD1<0,0,MACD1,1,0),COLORGREEN;STICKLINE(MACD12、,0),COLORCBCBC0;STICKLINE(MACD1>=0ORMACD1<=0,0,0,50,1),COLORWHITE;DIFIF1,COLOR33FF33,LINETHICK2;DEAEA1,COLORYELLOW,LINETHICK2;MACD:MACD1,NODRAW,COLORMAGENTA;強(qiáng):IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;弱:=IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;DRAWICON(CROSS(DIFIF1,DEA
3、EA1),DIFIF1+0.1,1);DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));B1:=REF(C,A1+1)>CANDREF("MACD.DIF",A1+1)<"MACD.DIF"ANDCROSS("MACD.DIF","MACD.DEA");DRAWTEXT(B1>0,-0.8,'MACD底背'),COLORFF00FF;A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));B2:=REF(C,A2+1)>CANDREF("K
4、DJ.K",A2+1)<"KDJ.K"ANDCROSS("KDJ.K","KDJ.D");DRAWTEXT(B2,-0.6,'KDJ底離'),COLORYELLOW;{KDJ底背離};A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));B3:=REF(C,A3+1)>CANDREF("RSI.RSI1",A3+1)<"RSI.RSI1"ANDCROSS("RSI.RSI1","RSI.RSI2");DRAWTEXT(B3>0,-0.3,'RSI底離'),COLORCYAN;{RSI底背離};C1:=BARSLAST(REF(CROSS("MACD
5、.DEA","MACD.DIF"),1));D1:=REF(C,C1+1)"MACD.DIF"ANDCROSS("MACD.DEA","MACD.DIF");DRAWTEXT(D1>0,0.4,'MACD頂離'),COLORBLUE;{MACD頂背離}C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));D2:=REF(C,C2+1)"KDJ.K"ANDCROSS("KDJ.D","KDJ.K");DRAWTEXT(D2>0,0.6,'KDJ頂離'),COLORL
6、IGRAY;{KDJ頂背離}C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));D3:=REF(C,C3+1)"RSI.RSI1"ANDCROSS("RSI.RSI2","RSI.RSI1");DRAWTEXT(D3>0,0.8,'RSI頂離'),COLORGREEN;{RSI頂背離};【通達(dá)信】真正背離(底背離、頂背離、macd、kdj、rsi)-指標(biāo)公式效果圖下載次數(shù):02010-12-1111:43下載(65.59KB)2010-12-1111:41(文檔來(lái)源:若水財(cái)經(jīng)社區(qū))