分時(shí)背離指標(biāo)_第1頁(yè)
分時(shí)背離指標(biāo)_第2頁(yè)
分時(shí)背離指標(biāo)_第3頁(yè)
分時(shí)背離指標(biāo)_第4頁(yè)
分時(shí)背離指標(biāo)_第5頁(yè)
已閱讀5頁(yè),還剩2頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、通達(dá)信KDJ,MACD,RSI頂?shù)妆畴x分時(shí)指標(biāo)公式來(lái)源:Internet,編輯:股旁網(wǎng),2016-09-19DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);H1:=MAX(DYNAINFO(3),DYNAINFO(5);L1:=MIN(DYNAINFO(3),DYNAINFO(6);P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撐:=L1+P1*0.5/8,COLORRED;中線:=(支撐+阻力)/2,COLORWHITE,POINTDOT;V11:=3*SMA(C-LLV(L,55)/(H

2、HV(H,55)-LLV(L,55)*100,5,1)-2*SMA(SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1),3,1);趨勢(shì)線:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趨勢(shì)線-REF(趨勢(shì)線,1)/REF(趨勢(shì)線,1)*100;準(zhǔn)備買入:STICKLINE(趨勢(shì)線<11,趨勢(shì)線,11,5,0),COLORYELLOW;AA:=(趨勢(shì)線<11) AND FILTER(趨勢(shì)線<=11),15) AND C<中線;BB0:=REF(趨勢(shì)線,1)<11 AND CROSS(趨勢(shì)

3、線,11) AND C<中線;BB1:=REF(趨勢(shì)線,1)<11 AND REF(趨勢(shì)線,1)>6 AND CROSS(趨勢(shì)線,11);BB2:=REF(趨勢(shì)線,1)<6 AND REF(趨勢(shì)線,1)>3 AND CROSS(趨勢(shì)線,6);BB3:=REF(趨勢(shì)線,1)<3 AND REF(趨勢(shì)線,1)>1 AND CROSS(趨勢(shì)線,3);BB4:=REF(趨勢(shì)線,1)<1 AND REF(趨勢(shì)線,1)>0 AND CROSS(趨勢(shì)線,1);BB5:=REF(趨勢(shì)線,1)<0 AND CROSS(趨勢(shì)線,0);BB:=BB1=1

4、OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;下單買入:STICKLINE(BB=1 AND C<中線,11,50,5,0),COLORRED;DRAWICON(BB=1 AND C<中線,55,1);DRAWTEXT(BB0,60,'買'),COLORRED;DRAWTEXT(AA,16,'準(zhǔn)備買入'),COLORYELLOW;準(zhǔn)備賣出:STICKLINE(趨勢(shì)線>89,趨勢(shì)線,89,5,0),COLORWHITE;CC:=(趨勢(shì)線>89) AND FILTER(趨勢(shì)線>89),15) AND C>

5、中線;DD0:=REF(趨勢(shì)線,1)>89 AND CROSS(89,趨勢(shì)線) AND C>中線;DD1:=REF(趨勢(shì)線,1)>89 AND REF(趨勢(shì)線,1)<94 AND CROSS(89,趨勢(shì)線);DD2:=REF(趨勢(shì)線,1)>94 AND REF(趨勢(shì)線,1)<97 AND CROSS(94,趨勢(shì)線);DD3:=REF(趨勢(shì)線,1)>97 AND REF(趨勢(shì)線,1)>99 AND CROSS(97,趨勢(shì)線);DD4:=REF(趨勢(shì)線,1)>99 AND REF(趨勢(shì)線,1)<100 AND CROSS(99,趨勢(shì)線);

6、DD5:=REF(趨勢(shì)線,1)>100 AND CROSS(100,趨勢(shì)線);DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;下單賣出:STICKLINE(DD=1 AND C>中線,89,50,5,0),COLORGREEN;DRAWICON(DD=1 AND C>中線,45,2);DRAWTEXT(DD0,40,'賣'),COLORGREEN;DRAWTEXT (CC,84,'準(zhǔn)備賣出'),COLORWHITE;頂:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT

7、,COLORWHITE; DRAWTEXT(ISLASTBAR,頂,'頂'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;上出下買+三背A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1); B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:IF(MA(CLOSE,17)<B,B,M

8、A(CLOSE,17),COLORFF00FF; 操作線:分水嶺-(EMA(C,3)-分水嶺),COLOR00FFFF; PM:MA(C,5),COLORWHITE; IF(PM> REF(PM,1),PM,DRAWNULL),COLORRED; IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED; IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF9900; S:=(PM> 操作線); DD11:=分水嶺<REF(分水嶺,1); IF(DD11

9、,分水嶺,DRAWNULL),COLOR00FF00; IF(S,分水嶺,DRAWNULL),COLOR00FF00; DRAWICON(CROSS(分水嶺,操作線),分水嶺-0.1,1);買入紅箭頭 A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1); B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF&quo

10、t;,"MACD.DEA"); DRAWTEXT(B1> 0,L-0.02,'MACD底背離'),COLOR00FFFF;MACD底背離 A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1); B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); DRA

11、WTEXT(B2,L-0.10,'KDJ底背離'),COLORFF00FF;KDJ底背離 A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1); B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2"); DRAWTEXT(B3> 0,L-0.18,&#

12、39;RSI底背離'),COLOR0000FF;RSI底背離 C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1); D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF"); DRAWTEXT(D1> 0,H+0.16,'MACD頂背離'),C

13、OLOR00FF00;MACD頂背離 C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1); D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)> "KDJ.K" AND CROSS("KDJ.D","KDJ.K"); DRAWTEXT(D2> 0,H+0.08,'KDJ頂背離'),COLORFFFFCC;KDJ頂背離 C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1);

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論