文華財經(jīng)海龜交易系統(tǒng)_第1頁
文華財經(jīng)海龜交易系統(tǒng)_第2頁
文華財經(jīng)海龜交易系統(tǒng)_第3頁
文華財經(jīng)海龜交易系統(tǒng)_第4頁
文華財經(jīng)海龜交易系統(tǒng)_第5頁
已閱讀5頁,還剩1頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、文華財經(jīng)海龜交易系統(tǒng)模型源碼文華財經(jīng)公式A:=REF(HHV(H,20),1);B:=REF(LLV(L,20),1);AA:=REF(HHV(H,10),1);BB:=REF(LLV(L,10),1);CROSS(H,A),BK;/突破20高點開多倉CROSS(AA,H),SP;/跌破10彳氐點平倉CROSS(B,L),SK;/突破20低點開空倉CROSS(BB,L),BP;/上傳10高點平倉C:=CLOSE;O:=OPEN;H:=HIGH;L:=LOW;STICKLINE(O>=C,C,O,COLORCYAN,0);DRAWLINE(O>=C,H,O>=C,L,COLOR

2、CYAN);STICKLINE(C>=O,C,O,COLORRED,1);DRAWLINE(C>=O,C,C>=O,H,COLORRED);DRAWLINE(C>=O,L,C>=O,O,COLORRED);LC:=REF(CLOSE,1);TR:=MAX(HIGH-LOW),MAX(HIGH-LC),(LC-LOW);ATR:=SMA(TR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR);BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1);SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=B

3、ARSLAST(BB)-1;SSSB:=BARSLAST(SSS)-1;B1:=(BBB=0)&&(REF(SSSB,1)<REF(BBB,1);B1B:=BARSLAST(B1);B2:=(BB=1)&&(B1B<SSSB)&&(B1B>0)&&(COUNT(BB,SSSB)<3);B2B:=BARSLAST(B2);B3:=(BB=1)&&(B2B<B1B)&&(COUNT(BB,SSSB)<4)&&(COUNT(BB,SSSB)>2);

4、B3B:=BARSLAST(B3);SS:=CROSS(MAX(AA,MA(CLOSE,13),CLOSE);SS1:=(SS&&(B3B<B2B)|(B2B<B1B)&&(SSSB>B1B)&&(COUNT(SS,B2B)<2);SS1B:=BARSLAST(SS1);SS2:=(SS&&(SS1B<SSSB)&&(B3B<B2B)&&(SS1B>0)&&(COUNT(SS,B2B)<3);SSSS:=(SSS&&(R

5、EF(SSSB,1)>REF(B1B,1);DRAWTEXT(B1=1),(LOW-0.25),'買1/2');DRAWTEXT(B2=1),(LOW-0.25),'買2/3');DRAWTEXT(B3=1),(LOW-0.25),'買1/3');DRAWTEXT(SS1=1),(HIGH+0.25),'賣100%');DRAWTEXT(SS2=1),(HIGH+0.25),'賣100%');DRAWTEXT(SSSS=1),(HIGH+0.25),'賣100%');STICKLINE(OPE

6、N>=CLOSE,CLOSE,OPEN,COLORCYAN,0);DRAWLINE(OPEN>=CLOSE,HIGH,OPEN>=CLOSE,LOW,COLORCYAN);STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,COLORRED,1);DRAWLINE(CLOSE>=OPEN,CLOSE,CLOSE>=OPEN,HIGH,COLORRED);DRAWLINE(CLOSE>=OPEN,LOW,CLOSE>=OPEN,OPEN,COLORRED);LC:=REF(CLOSE,1);TR:=MAX(HIGH-LOW),MAX(

7、HIGH-LC),(LC-LOW);ATR:=SMA(TR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR);BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1);SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=BARSLAST(BB)-1;SSSB:=BARSLAST(SSS)-1;B1:=(BBB=0)&&(REF(SSSB,1)<REF(BBB,1);B1B:=BARSLAST(B1);B2:=(BB=1)&&(B1B<SSSB)&&(B1B>0)&a

8、mp;&(COUNT(BB,SSSB)<3);B2B:=BARSLAST(B2);B3:=(BB=1)&&(B2B<B1B)&&(COUNT(BB,SSSB)<4)&&(COUNT(BB,SSSB)>2);B3B:=BARSLAST(B3);SS:=CROSS(MAX(AA,MA(CLOSE,13),CLOSE);SS1:=(SS&&(B3B<B2B)|(B2B<B1B)&&(SSSB>B1B)&&(COUNT(SS,B2B)<2);SS1B:

9、=BARSLAST(SS1);SS2:=(SS&&(SS1B<SSSB)&&(B3B<B2B)&&(SS1B>0)&&(COUNT(SS,B2B)<3);SSSS:=(SSS&&(REF(SSSB,1)>REF(B1B,1);DRAWTEXT(B1=1),(LOW-0.25),'買1/2');DRAWTEXT(B2=1),(LOW-0.25),'買2/3');DRAWTEXT(B3=1),(LOW-0.25),'買1/3');DRAWTE

10、XT(SS1=1),(HIGH+0.25),'賣100%');DRAWTEXT(SS2=1),(HIGH+0.25),'賣100%');DRAWTEXT(SSSS=1),(HIGH+0.25),'賣100%');捕捉強勢C:=CLOSE;L:=LOW;H:=HIGH;O:=OPEN;JJJ:1.0;ZJ:=(C+C+L+H)/4;ZJ5:=MA(ZJ,5);VAR1:=ZJ5/MA(C,20);VARAAA:ZJ5/MA(C,20);VAR2:=ZJ5/MA(C,50);A:=MA(C,5)>REF(MA(C,5),1);B:=MA(C,1

11、0)>=REF(MA(C,10),1);XIANFENG:IF(VAR1>1.02,1.03,VAR1),COLORYELLOW;STICKLINE(XIANFENG>1.019&&A,XIANFENG,XIANFENG-0.004,COLORGREEN,0);HOUYUAN:IF(VAR2>1,1,VAR2),COLORCYAN;STICKLINE(HOUYUAN=1&&B,1,0.995,COLORRED,0);VAR3:=REF(MA(ZJ,5),1);A1:=SMA(MAX(C-VAR3,0),9,1)/SMA(ABS(C-VAR

12、3),9,1)*100;B1:=100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14);STICKLINE(B1<5,0.925,0.935,COLORRED,0);STICKLINE(B1>95,0.910,0.92,COLORGREEN,0);STICKLINE(A1>B1&&A1>REF(A1,1),0.925,0.92,COLORMAGENTA,0);STICKLINE(A1<B1&&A1<REF(A1,1),0.925,0.92,COLORLIGHTGREEN,0);DRAWTEXT(VAR1&

13、gt;=REF(VAR1,1)&&VAR2>=REF(VAR2,1)&&BARSLAST(A1<B1&&A1<REF(A1,1)&&C>REF(C,1)=2,0.96,'-等回踩');RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;=K:=SMA(RSV,3,1);XX:=VAR1>REF(VAR1,1)&&K>REF(K,1)&&VAR2>REF(VAR2,1)&&A1&

14、gt;B1&&A1>REF(A1,1)&&BARSLAST(A1>B1&&A1>REF(A1,1)>2&&(C+O)/(REF(C,1)+REF(O,1)<1.024;IF(XX,0.95,0.92),COLORRED;DRAWLINE(XX,1.02,XX,0.90,COLORRED);DRAWTEXT(A1-B1>0,1.05,");KS13:=(C-SMA(C,13,1)/SMA(C,13,1)*(-100);AAA:=REF(KS13,1)>-13&&RE

15、F(KS13,1)/KS13>1.12&&(C-O)+(REF(C,1)-REF(O,1)/REF(C,1)>1.03&&(C-O)/ABS(REF(C,1)-REF(O,1)>1.0&&(H-C)/(O-L)<1;CHAODI:=IF(AAA&&REF(C,1)<MA(CLOSE,5),0.95,1),COLORWHITE;DRAWTEXT(CHAODI=0.95,0.935,'-抄底');DUO:=EMA(MA(CLOSE,1)*70,2);KONG:=EMA(MA(C*1.1,1

16、)-MA(C*0.9,1)*70,2);DRAWTEXT(DUO>KONG&&HOUYUAN=1&&B,1.05,'=');BUZHUO:IF(DUO>KONG&&C>O&&HOUYUAN=1&&B&&COUNT(DUO>KONG&&HOUYUAN=1&&B,5)=1,1.03,1),COLORRED;DRAWTEXT(BUZHUO=1.03,1.001,'突破或追漲');VAR6:=MA(ZJ,27);VAR7

17、:=(ZJ-VAR6)/VAR6;E:=MA(VAR7,2);F:=BARSLAST(CROSS(-0.1,E)=1);G:=E<-0.1&&F>3;FILLRGN(G,0.99,1,COLORYELLOW);DRAWTEXT(G&&BARSLAST(G)>2,0.98,'底');FILLRGN(VAR2<0.82,0.98,1,COLORGREEN);FILLRGN(VAR2<0.8,0.97,1,COLORWHITE);BIAS1:=(C-MA(C,6)/MA(C,6)*100;BIAS2:=(C-MA(C,12

18、)/MA(C,12)*100;BIAS3:=(C-MA(C,24)/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;GUAILI:=MA(BIAS,3);FILLRGN(GUAILI<-6&&GUAILI>=-12,0.9985,1,COLORYELLOW);FILLRGN(GUAILI<-12&&GUAILI>=-18,0.995,1,COLORGREEN);FILLRGN(GUAILI<-18,0.975,1,COLORWHITE);C:=CLOSE;O:=OPEN;H:=HIGH;L:

19、=LOW;STICKLINE(O>=C,C,O,COLORCYAN,0);DRAWLINE(O>=C,H,O>=C,L,COLORCYAN);STICKLINE(C>=O,C,O,COLORRED,1);DRAWLINE(C>=O,C,C>=O,H,COLORRED);DRAWLINE(C>=O,L,C>=O,O,COLORRED);LC:=REF(CLOSE,1);TR:=MAX(HIGH-LOW),MAX(HIGH-LC),(LC-LOW);ATR:=SMA(TR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR);BB:=CRO

20、SS(CLOSE,REF(HHV(HIGH,55),1);SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=BARSLAST(BB)-1;SSSB:=BARSLAST(SSS)-1;B1:=(BBB=0)&&(REF(SSSB,1)<REF(BBB,1);B1B:=BARSLAST(B1);B2:=(BB=1)&&(B1B<SSSB)&&(B1B>0)&&(COUNT(BB,SSSB)<3);B2B:=BARSLAST(B2);B3:=(BB=1)&&(

21、B2B<B1B)&&(COUNT(BB,SSSB)<4)&&(COUNT(BB,SSSB)>2);B3B:=BARSLAST(B3);SS:=CROSS(MAX(AA,MA(CLOSE,13),CLOSE);SS1:=(SS&&(B3B<B2B)|(B2B<B1B)&&(SSSB>B1B)&&(COUNT(SS,B2B)<2);SS1B:=BARSLAST(SS1);SS2:=(SS&&(SS1B<SSSB)&&(B3B<B2B)

22、&&(SS1B>0)&&(COUNT(SS,B2B)<3);SSSS:=(SSS&&(REF(SSSB,1)>REF(B1B,1);DRAWTEXT(B1=1),(LOW-0.25),'買1/2');DRAWTEXT(B2=1),(LOW-0.25),'買2/3');DRAWTEXT(B3=1),(LOW-0.25),'買1/3');DRAWTEXT(SS1=1),(HIGH+0.25),'賣100%');DRAWTEXT(SS2=1),(HIGH+0.25),&#

23、39;賣100%');DRAWTEXT(SSSS=1),(HIGH+0.25),'賣100%');蘭色見底買入,紅色見頂賣出DF:=7*SMA(CLOSE-LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1)-3*SMA(SMA(CLOSE-LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1),3,1)-SMA(SMA(SMA(CLOSE-LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1),3,1),2,1);DF,COLORMAGENTA;KF:EMA(

24、MA(DF,5),7),COLORLIGHTGREY;STICKLINE(DF>=KF,DF,KF,3,0);STICKLINE(DF<KF,DF,KF,3,0);STICKLINE(DF>78&&DF>=KF,DF,78,COLORRED,0);STICKLINE(KF<=DF,KF,DF,COLORMAGENTA,0);STICKLINE(KF>DF,KF,DF,COLORLIGHTGREY,0);STICKLINE(KF<15&&KF<=DF,KF,15,COLORBLUE,0);海海龜交易系統(tǒng)(文華用技術(shù)指

25、標主圖)原創(chuàng)2010-3-2718:48:44C:=CLOSE;O:=OPEN;H:=HIGH;L:=LOW;STICKLINE(O>=C,C,O,COLORCYAN,0);DRAWLINE(O>=C,H,O>=C,L,COLORCYAN);STICKLINE(C>=O,C,O,COLORRED,1);DRAWLINE(C>=O,C,C>=O,H,COLORRED);DRAWLINE(C>=O,L,C>=O,O,COLORRED);LC:=REF(CLOSE,1);TR:=MAX(HIGH-LOW),MAX(HIGH-LC),(LC-LOW);ATR:=SMA(TR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR);BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1);SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=BARSLAST(BB)-1;SSSB:=BARSLAST(SSS)-1;

溫馨提示

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

評論

0/150

提交評論