TDX源碼開心輪回線

上傳人:仙*** 文檔編號(hào):36089808 上傳時(shí)間:2021-10-29 格式:DOC 頁數(shù):18 大?。?47.50KB
收藏 版權(quán)申訴 舉報(bào) 下載
TDX源碼開心輪回線_第1頁
第1頁 / 共18頁
TDX源碼開心輪回線_第2頁
第2頁 / 共18頁
TDX源碼開心輪回線_第3頁
第3頁 / 共18頁

下載文檔到電腦,查找使用更方便

0 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《TDX源碼開心輪回線》由會(huì)員分享,可在線閱讀,更多相關(guān)《TDX源碼開心輪回線(18頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、 輪回DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26); 輪回DEA:= EMA(輪回DIFF,9); 上穿:=CROSS(輪回DEA,0) ; 下穿:=CROSS(0,輪回DEA) ; 上穿周期:=BARSLAST(上穿); 下穿周期:=BARSLAST(下穿); 最低點(diǎn)周期:=BARSLAST(L=LLV(L,下穿周期) AND 輪回DEA<0); 最高點(diǎn)周期:=BARSLAST(H=HHV(H,最低點(diǎn)周期)); 輪高點(diǎn)TJ1:=下穿;{最后一天的條件} 輪高點(diǎn)TJ2:=BACKSET(輪高點(diǎn)TJ1,最高點(diǎn)周期+1); 輪高點(diǎn):=輪高點(diǎn)TJ2>

2、REF(輪高點(diǎn)TJ2,1); MA(C,SW5); MA(C,SW6); 輪低最高點(diǎn)周期:=BARSLAST(H=HHV(H,上穿周期) AND 輪回DEA>0); 輪低最低點(diǎn)周期:=BARSLAST(L=LLV(L,輪低最高點(diǎn)周期)); 輪低點(diǎn)TJ1:=上穿;{最后一天的條件} 輪低點(diǎn)TJ2:=BACKSET(輪低點(diǎn)TJ1,輪低最低點(diǎn)周期+1); 輪低點(diǎn):=輪低點(diǎn)TJ2>REF(輪低點(diǎn)TJ2,1); DRAWLINE(輪高點(diǎn),H,輪低點(diǎn),L,0)COLORGREEN LINETHICK2; {畫下輪回線} DRAWLINE(輪低點(diǎn),L,輪高點(diǎn),H,0)COLOR

3、RED LINETHICK2; {畫上輪回線}; {輪回點(diǎn)要標(biāo)出當(dāng)下斜率,命名斜率1,分輪高點(diǎn)和輪低點(diǎn)兩種情況} 輪回點(diǎn):=輪高點(diǎn) OR 輪低點(diǎn); NZ1:=BARSLAST(輪回點(diǎn));{最近轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間,如果現(xiàn)在是輪回點(diǎn),值為0} NZ2:=REF(NZ1,NZ1+1)+NZ1+1;{第二轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間}; NZ3:=REF(NZ2,NZ2)+NZ2;{第3轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間} 最后點(diǎn)TJ:=BACKSET(ISLASTBAR,BARSLAST(輪低點(diǎn) OR 輪高點(diǎn))+1); 最后點(diǎn):=最后點(diǎn)TJ>REF(最后點(diǎn)TJ,1); {輪低點(diǎn)情況} 輪低點(diǎn)斜率1:

4、=IF(輪低點(diǎn),(REF(H,NZ2)-L)/NZ2,0) ; 輪低點(diǎn)斜率2:=IF(輪低點(diǎn),(REF(H,NZ2)-REF(L,NZ3))/(NZ3-NZ2),0); {DRAWNUMBER(輪低點(diǎn) AND SW1,L,REF(H,NZ2)-L),COLORBLUE ; } {顯示輪回線空間} {DRAWNUMBER(輪低點(diǎn) AND SW1,L,NZ2),COLORBLUE; } {顯示輪回線時(shí)間} DRAWNUMBER(輪低點(diǎn) AND SW1,L,輪低點(diǎn)斜率1*10),COLORWHITE ; {顯示輪回線斜率}; {輪高點(diǎn)情況} 輪高點(diǎn)斜率1:=IF(輪高點(diǎn),(H-RE

5、F(L,NZ2))/NZ2,0); 輪高點(diǎn)斜率2:=IF(輪高點(diǎn),(REF(H,NZ3)-REF(L,NZ2))/(NZ3-NZ2),0); {DRAWNUMBER(輪高點(diǎn) AND SW1 ,H*1.04,H-REF(L,NZ2)) COLORBLUE ;} {顯示輪回線空間} {DRAWNUMBER(輪高點(diǎn) AND SW1,H,NZ2) COLORBLUE ;} {顯示輪回線時(shí)間} DRAWNUMBER(輪高點(diǎn) AND SW1,H,輪高點(diǎn)斜率1*10) COLORWHITE ; {顯示輪回線斜率}; {下行中的輪回角度線的畫法} 最后低點(diǎn)TJ:=BACKSET(ISLA

6、STBAR,BARSLAST(輪低點(diǎn))+1); 最后低點(diǎn):=最后低點(diǎn)TJ>REF(最后低點(diǎn)TJ,1); 最后低點(diǎn)2天:=IF(REF(最后低點(diǎn),1),1,0); 最后低點(diǎn)NN天:=IF(REF(最后低點(diǎn),NN),1,0); DRAWLINE(最后低點(diǎn) AND SW2 ,L,IF(BARSLAST(最后低點(diǎn))

7、,DOTLINE; DRAWLINE(最后低點(diǎn) AND SW2 ,L,IF(BARSLAST(最后低點(diǎn))

8、,1)+REF(輪低點(diǎn)斜率1,1)/2,REF(L,NN)+NN*REF(輪低點(diǎn)斜率1,NN)/2),IF(BARSLAST(最后低點(diǎn))REF(最后高點(diǎn)TJ,1); 最后高點(diǎn)2天:=IF(REF(最后高點(diǎn),1),1,0); 最后高點(diǎn)NN天:=IF(REF(最后高點(diǎn),NN),1,0); DRAWLINE(最后高點(diǎn) AND SW2,H,IF(BARSLAST(

9、最后高點(diǎn))

10、(最后高點(diǎn))

11、,最后低點(diǎn)2天,最后低點(diǎn)NN天),IF(BARSLAST(最后低點(diǎn))

12、)=O,0,VOL); 黃金線TJ:=倍量TJ>=1.9 AND 倍量TJ<=3 AND REFX(C,1)>O AND REFX(C,2)>O AND REFX(C,3)>O AND REFX(回調(diào)量,1)/VOL<1 AND REFX(回調(diào)量,2)/VOL<1 AND REFX(回調(diào)量,3)/VOL<1;

13、 黃金線WZ:=MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)); 黃金線XS:=IF (黃金線WZ>=C,O,黃金線WZ); {STICKLINE(黃金線TJ AND C>O,O,C,2,0),COLORYELLOW; DRAWLINE(黃金線TJ AND C>O,黃金線WZ,REF(黃金線TJ AND C>O,15),REF(黃金線WZ,15),0),COLORYELLOW,DOTLINE; DRAWNUMBER(黃金線TJ AND C>O,黃金線WZ,黃金線WZ),COLORYELLOW; } {畫空間黃金分割線} {輪低點(diǎn)劃線} D

14、RAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L,L),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L, REF(輪低點(diǎn),15),REF(L,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.191,L+(REF(H,NZ2)-L)*0.191),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.191, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2

15、)-L)*0.191,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.382,L+(REF(H,NZ2)-L)*0.382),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.382, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.382,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0

16、.5,L+(REF(H,NZ2)-L)*0.5),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.5, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.5,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618,L+(REF(H,NZ2)-L)*0.618),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618,

17、REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.618,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.809,L+(REF(H,NZ2)-L)*0.809),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.809, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.809,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低

18、點(diǎn) AND SW7,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L)),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L), REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L),15),0),COLORGRAY,DOTLINE; {輪高點(diǎn)劃線} DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H,H),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H, REF(輪高點(diǎn),15),REF(H,15),0),COLORGRAY,DOTLINE

19、; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.191, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.191,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382),COLOR0

20、09999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.382, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.382,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.5, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*

21、0.5,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.618, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.618,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.809,H-

22、(H-REF(L,NZ2))*0.809),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.809, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.809,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2)),H-(H-REF(L,NZ2))),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2)), REF(輪高點(diǎn),15),REF(H

23、-(H-REF(L,NZ2)),15),0),COLORGRAY,DOTLINE; {判斷均線粘合} V0:=EMA(C,7); V1:=EMA(C,14); V2:=EMA(C,25); V3:=EMA(C,60); V4:=EMA(C,89); M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975; M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980; M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985; M4:= CROSS(V0,V1) AND (V0 >= REF(V

24、0,1)) AND (V1 >= REF(V1,1)); {5日、10日 金叉} M5:= CROSS(V1,V0) AND (V0 < REF(V0,1)) AND (V1 < REF(V1,1)); {5日、10日 死叉} M6:= CROSS(V0,V3) AND (V0 >= REF(V0,1)) AND (V3 >= REF(V3,1)); {5日、30日 金叉} M7:= CROSS(V3,V0) AND (V0 < REF(V0,1)) AND (V3 < REF(V3,1)); {5日、30日 死叉} {DRAWTEXT(M1 AND M2 AND M3

25、 AND M4 ,L,均線粘合1 買入) COLORRED; DRAWTEXT(M1 AND M2 AND M3 AND M5 ,L,均線粘合1 賣出) COLORWHITE; DRAWTEXT(M1 AND M2 AND M3 AND M6 ,L,均線粘合2 買入) COLORRED; DRAWTEXT(M1 AND M2 AND M3 AND M7 ,L,均線粘合2 賣出) COLORWHITE;} {CCI預(yù)警} TYP:=(HIGH+LOW+CLOSE)/3; CCC:=(TYP-MA(TYP,SW8))/(0.015*AVEDEV(TYP,SW8)); { DRAWT

26、EXT(CROSS(CCC,80) ,L,CCI 大于80) COLORBLUE; }; TDX源碼開心輪回線 輪回DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26); 輪回DEA:= EMA(輪回DIFF,9); 上穿:=CROSS(輪回DEA,0) ; 下穿:=CROSS(0,輪回DEA) ; 上穿周期:=BARSLAST(上穿); 下穿周期:=BARSLAST(下穿); 最低點(diǎn)周期:=BARSLAST(L=LLV(L,下穿周期) AND 輪回DEA<0); 最高點(diǎn)周期:=BARSLAST(H=HHV(H,

27、最低點(diǎn)周期)); 輪高點(diǎn)TJ1:=下穿;{最后一天的條件} 輪高點(diǎn)TJ2:=BACKSET(輪高點(diǎn)TJ1,最高點(diǎn)周期+1); 輪高點(diǎn):=輪高點(diǎn)TJ2>REF(輪高點(diǎn)TJ2,1); MA(C,SW5); MA(C,SW6); 輪低最高點(diǎn)周期:=BARSLAST(H=HHV(H,上穿周期) AND 輪回DEA>0); 輪低最低點(diǎn)周期:=BARSLAST(L=LLV(L,輪低最高點(diǎn)周期)); 輪低點(diǎn)TJ1:=上穿;{最后一天的條件} 輪低點(diǎn)TJ2:=BACKSET(輪低點(diǎn)TJ1,輪低最低點(diǎn)周期+1); 輪低點(diǎn):=輪低點(diǎn)TJ2>REF(輪低點(diǎn)TJ2,1); DRAWL

28、INE(輪高點(diǎn),H,輪低點(diǎn),L,0)COLORGREEN LINETHICK1; {畫下輪回線} DRAWLINE(輪低點(diǎn),L,輪高點(diǎn),H,0)COLORRED LINETHICK1; {畫上輪回線}; {輪回點(diǎn)要標(biāo)出當(dāng)下斜率,命名斜率1,分輪高點(diǎn)和輪低點(diǎn)兩種情況} 輪回點(diǎn):=輪高點(diǎn) OR 輪低點(diǎn); NZ1:=BARSLAST(輪回點(diǎn));{最近轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間,如果現(xiàn)在是輪回點(diǎn),值為0} NZ2:=REF(NZ1,NZ1+1)+NZ1+1;{第二轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間}; NZ3:=REF(NZ2,NZ2)+NZ2;{第3轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間} 最后點(diǎn)TJ:=BACKSET(IS

29、LASTBAR,BARSLAST(輪低點(diǎn) OR 輪高點(diǎn))+1); 最后點(diǎn):=最后點(diǎn)TJ>REF(最后點(diǎn)TJ,1); {輪低點(diǎn)情況} 輪低點(diǎn)斜率1:=IF(輪低點(diǎn),(REF(H,NZ2)-L)/NZ2,0) ; 輪低點(diǎn)斜率2:=IF(輪低點(diǎn),(REF(H,NZ2)-REF(L,NZ3))/(NZ3-NZ2),0); {DRAWNUMBER(輪低點(diǎn) AND SW1,L,REF(H,NZ2)-L),COLORBLUE ; } {顯示輪回線空間} {DRAWNUMBER(輪低點(diǎn) AND SW1,L,NZ2),COLORBLUE; } {顯示輪回線時(shí)間} DRAWNUMBER(輪低

30、點(diǎn) AND SW1,L,輪低點(diǎn)斜率1*10),COLORWHITE ; {顯示輪回線斜率}; {輪高點(diǎn)情況} 輪高點(diǎn)斜率1:=IF(輪高點(diǎn),(H-REF(L,NZ2))/NZ2,0); 輪高點(diǎn)斜率2:=IF(輪高點(diǎn),(REF(H,NZ3)-REF(L,NZ2))/(NZ3-NZ2),0); {DRAWNUMBER(輪高點(diǎn) AND SW1 ,H*1.04,H-REF(L,NZ2)) COLORBLUE ;} {顯示輪回線空間} {DRAWNUMBER(輪高點(diǎn) AND SW1,H,NZ2) COLORBLUE ;} {顯示輪回線時(shí)間} DRAWNUMBER(輪高點(diǎn) AND SW1,H

31、,輪高點(diǎn)斜率1*10) COLORWHITE ; {顯示輪回線斜率}; {下行中的輪回角度線的畫法} 最后低點(diǎn)TJ:=BACKSET(ISLASTBAR,BARSLAST(輪低點(diǎn))+1); 最后低點(diǎn):=最后低點(diǎn)TJ>REF(最后低點(diǎn)TJ,1); 最后低點(diǎn)2天:=IF(REF(最后低點(diǎn),1),1,0); 最后低點(diǎn)NN天:=IF(REF(最后低點(diǎn),NN),1,0); DRAWLINE(最后低點(diǎn) AND SW2 ,L,IF(BARSLAST(最后低點(diǎn))

32、REF(L,NN)+NN*REF(輪低點(diǎn)斜率1,NN)),IF(BARSLAST(最后低點(diǎn))

33、SW2 ,L,IF(BARSLAST(最后低點(diǎn))REF(最后高點(diǎn)TJ,1); 最后高點(diǎn)2天:=IF(REF(最后高點(diǎn),1),1,0);

34、 最后高點(diǎn)NN天:=IF(REF(最后高點(diǎn),NN),1,0); DRAWLINE(最后高點(diǎn) AND SW2,H,IF(BARSLAST(最后高點(diǎn))

35、NN,REF(H,1)-REF(輪高點(diǎn)斜率1,1)*2,REF(H,NN)-NN*REF(輪高點(diǎn)斜率1,NN)*2),IF(BARSLAST(最后高點(diǎn))

36、THICK1 DOTLINE; {畫比較線} DRAWLINE(最后低點(diǎn) AND SW4 ,L,IF(BARSLAST(最后低點(diǎn))

37、N,REF(H,1)-REF(輪高點(diǎn)斜率2,1),REF(H,NN)-NN*REF(輪高點(diǎn)斜率2,NN)),IF(BARSLAST(最后高點(diǎn))=O,0,VOL); 黃金線TJ:=倍量TJ>=1.9 AND 倍量TJ<=3 AND REFX(C,1)>O AND REFX(C,2)>O AND REFX(C,3

38、)>O AND REFX(回調(diào)量,1)/VOL<1 AND REFX(回調(diào)量,2)/VOL<1 AND REFX(回調(diào)量,3)/VOL<1; 黃金線WZ:=MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)); 黃金線XS:=IF (黃金線WZ>=C,O,黃金線WZ); STICKLINE(黃金線TJ AND C>O,O,C,2,0),COLORYELLOW; DRAWLINE(黃金線TJ AND C>O,黃金線WZ,REF(黃金線TJ AND C>O,15),REF(黃金線WZ,15),0),COLORYELLOW,DOTLINE; DRAWNUMBER(

39、黃金線TJ AND C>O,黃金線WZ,黃金線WZ),COLORYELLOW; {畫空間黃金分割線} {輪低點(diǎn)劃線} DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L,L),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L, REF(輪低點(diǎn),15),REF(L,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.191,L+(REF(H,NZ2)-L)*0.191),COLOR009999; DRAWLINE(最后點(diǎn)

40、AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.191, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.191,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.382,L+(REF(H,NZ2)-L)*0.382),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.382, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.382,15),0),CO

41、LORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.5,L+(REF(H,NZ2)-L)*0.5),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.5, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.5,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618,L+(REF(H,NZ2)-L)*0.618)

42、,COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.618,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.809,L+(REF(H,NZ2)-L)*0.809),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.809, REF(輪低點(diǎn),15),REF(L+(R

43、EF(H,NZ2)-L)*0.809,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L)),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L), REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L),15),0),COLORGRAY,DOTLINE; {輪高點(diǎn)劃線} DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H,H),COLOR009999; DRAWLI

44、NE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H, REF(輪高點(diǎn),15),REF(H,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.191, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.191,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) A

45、ND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.382, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.382,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5),COLOR009999; DRAWLINE(最后點(diǎn) AND

46、 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.5, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.5,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.618, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.618,15),0),COLORGRAY

47、,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.809,H-(H-REF(L,NZ2))*0.809),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2))*0.809, REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2))*0.809,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2)),H-(H-REF(L,NZ2))),COLOR00999

48、9; DRAWLINE(最后點(diǎn) AND 輪高點(diǎn) AND SW7,H-(H-REF(L,NZ2)), REF(輪高點(diǎn),15),REF(H-(H-REF(L,NZ2)),15),0),COLORGRAY,DOTLINE; {判斷均線粘合} V0:=EMA(C,5); V1:=EMA(C,10); V2:=EMA(C,15); V3:=EMA(C,30); V4:=EMA(C,60); M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975; M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980; M3:=1000*

49、V3/V4<=1015 AND 1000*V3/V4>=985; M4:= CROSS(V0,V1) AND (V0 >= REF(V0,1)) AND (V1 >= REF(V1,1)); {5日、10日 金叉} M5:= CROSS(V1,V0) AND (V0 < REF(V0,1)) AND (V1 < REF(V1,1)); {5日、10日 死叉} M6:= CROSS(V0,V3) AND (V0 >= REF(V0,1)) AND (V3 >= REF(V3,1)); {5日、30日 金叉} M7:= CROSS(V3,V0) AND (V0 < REF(V0

50、,1)) AND (V3 < REF(V3,1)); {5日、30日 死叉} DRAWTEXT(M1 AND M2 AND M3 AND M4 ,L,均線粘合1 買入) COLORRED; DRAWTEXT(M1 AND M2 AND M3 AND M5 ,L,均線粘合1 賣出) COLORWHITE; DRAWTEXT(M1 AND M2 AND M3 AND M6 ,L,均線粘合2 買入) COLORRED; DRAWTEXT(M1 AND M2 AND M3 AND M7 ,L,均線粘合2 賣出) COLORWHITE; {CCI預(yù)警} TYP:=(HIGH+LOW+C

51、LOSE)/3; CCC:=(TYP-MA(TYP,SW8))/(0.015*AVEDEV(TYP,SW8)); { DRAWTEXT(CROSS(CCC,80) ,L,CCI 大于80) COLORBLUE; }; 開心輪回5 輪回DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26); 輪回DEA:= EMA(輪回DIFF,9); 上穿:=CROSS(輪回DEA,0) ; 下穿:=CROSS(0,輪回DEA) ; 上穿周期:=BARSLAST(上穿); 下穿周期:=BARSLAST(下穿

52、); 最低點(diǎn)周期:=BARSLAST(L=LLV(L,下穿周期) AND 輪回DEA<0); 最高點(diǎn)周期:=BARSLAST(H=HHV(H,最低點(diǎn)周期)); 輪高點(diǎn)TJ1:=下穿;{最后一天的條件} 輪高點(diǎn)TJ2:=BACKSET(輪高點(diǎn)TJ1,最高點(diǎn)周期+1); 輪高點(diǎn):=輪高點(diǎn)TJ2>REF(輪高點(diǎn)TJ2,1); MA(C,SW5); MA(C,SW6); 輪低最高點(diǎn)周期:=BARSLAST(H=HHV(H,上穿周期) AND 輪回DEA>0); 輪低最低點(diǎn)周期:=BARSLAST(L=LLV(L,輪低最高點(diǎn)周期)); 輪低點(diǎn)TJ1:=上穿;{最后一天的條件}

53、 輪低點(diǎn)TJ2:=BACKSET(輪低點(diǎn)TJ1,輪低最低點(diǎn)周期+1); 輪低點(diǎn):=輪低點(diǎn)TJ2>REF(輪低點(diǎn)TJ2,1); DRAWLINE(輪高點(diǎn),H,輪低點(diǎn),L,0)COLORGREEN LINETHICK1; {畫下輪回線} DRAWLINE(輪低點(diǎn),L,輪高點(diǎn),H,0)COLORRED LINETHICK1; {畫上輪回線}; {輪回點(diǎn)要標(biāo)出當(dāng)下斜率,命名斜率1,分輪高點(diǎn)和輪低點(diǎn)兩種情況} 輪回點(diǎn):=輪高點(diǎn) OR 輪低點(diǎn); NZ1:=BARSLAST(輪回點(diǎn));{最近轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間,如果現(xiàn)在是輪回點(diǎn),值為0} NZ2:=REF(NZ1,NZ1+1)+NZ1

54、+1;{第二轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間}; NZ3:=REF(NZ2,NZ2)+NZ2;{第3轉(zhuǎn)折點(diǎn)到現(xiàn)在的時(shí)間} 最后點(diǎn)TJ:=BACKSET(ISLASTBAR,BARSLAST(輪低點(diǎn) OR 輪高點(diǎn))+1); 最后點(diǎn):=最后點(diǎn)TJ>REF(最后點(diǎn)TJ,1); {輪低點(diǎn)情況} 輪低點(diǎn)斜率1:=IF(輪低點(diǎn),(REF(H,NZ2)-L)/NZ2,0) ; 輪低點(diǎn)斜率2:=IF(輪低點(diǎn),(REF(H,NZ2)-REF(L,NZ3))/(NZ3-NZ2),0); {DRAWNUMBER(輪低點(diǎn) AND SW1,L,REF(H,NZ2)-L),COLORBLUE ; } {顯示輪回線

55、空間} {DRAWNUMBER(輪低點(diǎn) AND SW1,L,NZ2),COLORBLUE; } {顯示輪回線時(shí)間} DRAWNUMBER(輪低點(diǎn) AND SW1,L,輪低點(diǎn)斜率1*10),COLORWHITE ; {顯示輪回線斜率}; {輪高點(diǎn)情況} 輪高點(diǎn)斜率1:=IF(輪高點(diǎn),(H-REF(L,NZ2))/NZ2,0); 輪高點(diǎn)斜率2:=IF(輪高點(diǎn),(REF(H,NZ3)-REF(L,NZ2))/(NZ3-NZ2),0); {DRAWNUMBER(輪高點(diǎn) AND SW1 ,H*1.04,H-REF(L,NZ2)) COLORBLUE ;} {顯示輪回線空間} {DRAWN

56、UMBER(輪高點(diǎn) AND SW1,H,NZ2) COLORBLUE ;} {顯示輪回線時(shí)間} DRAWNUMBER(輪高點(diǎn) AND SW1,H,輪高點(diǎn)斜率1*10) COLORWHITE ; {顯示輪回線斜率}; {下行中的輪回角度線的畫法} 最后低點(diǎn)TJ:=BACKSET(ISLASTBAR,BARSLAST(輪低點(diǎn))+1); 最后低點(diǎn):=最后低點(diǎn)TJ>REF(最后低點(diǎn)TJ,1); 最后低點(diǎn)2天:=IF(REF(最后低點(diǎn),1),1,0); 最后低點(diǎn)NN天:=IF(REF(最后低點(diǎn),NN),1,0); DRAWLINE(最后低點(diǎn) AND SW2 ,L,IF(BARSL

57、AST(最后低點(diǎn))

58、SLAST(最后低點(diǎn))

59、SLAST(輪高點(diǎn))+1); 最后高點(diǎn):=最后高點(diǎn)TJ>REF(最后高點(diǎn)TJ,1); 最后高點(diǎn)2天:=IF(REF(最后高點(diǎn),1),1,0); 最后高點(diǎn)NN天:=IF(REF(最后高點(diǎn),NN),1,0); DRAWLINE(最后高點(diǎn) AND SW2,H,IF(BARSLAST(最后高點(diǎn))

60、NE(最后高點(diǎn) AND SW2,H,IF(BARSLAST(最后高點(diǎn))

61、EF(H,NN)-NN*REF(輪高點(diǎn)斜率1,NN)/2),IF(BARSLAST(最后高點(diǎn))

62、(最后高點(diǎn) AND SW4 ,H,IF(BARSLAST(最后高點(diǎn))=O,0,VOL);

63、黃金線TJ:=倍量TJ>=1.9 AND 倍量TJ<=3 AND REFX(C,1)>O AND REFX(C,2)>O AND REFX(C,3)>O AND REFX(回調(diào)量,1)/VOL<1 AND REFX(回調(diào)量,2)/VOL<1 AND REFX(回調(diào)量,3)/VOL<1; 黃金線WZ:=MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)); 黃金線XS:=IF (黃金線WZ>=C,O,黃金線WZ); STICKLINE(黃金線TJ AND C>O,O,C,2,0),COLORYELLOW; DRAWLINE(黃金線TJ AND C>O,黃金線WZ

64、,REF(黃金線TJ AND C>O,15),REF(黃金線WZ,15),0),COLORYELLOW,DOTLINE; DRAWNUMBER(黃金線TJ AND C>O,黃金線WZ,黃金線WZ),COLORYELLOW; {畫空間黃金分割線} {輪低點(diǎn)劃線} DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L,L),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L, REF(輪低點(diǎn),15),REF(L,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L

65、+(REF(H,NZ2)-L)*0.191,L+(REF(H,NZ2)-L)*0.191),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.191, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.191,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.382,L+(REF(H,NZ2)-L)*0.382),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7

66、,L+(REF(H,NZ2)-L)*0.382, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.382,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.5,L+(REF(H,NZ2)-L)*0.5),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.5, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.5,15),0),COLORGRAY,DOTLINE; DRAWNUMBER(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618,L+(REF(H,NZ2)-L)*0.618),COLOR009999; DRAWLINE(最后點(diǎn) AND 輪低點(diǎn) AND SW7,L+(REF(H,NZ2)-L)*0.618, REF(輪低點(diǎn),15),REF(L+(REF(H,NZ2)-L)*0.618,

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(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ì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔

相關(guān)搜索

關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!