TDX源碼開心輪回線
《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)) 9、最后高點(diǎn)) 10、(最后高點(diǎn)) 11、,最后低點(diǎn)2天,最后低點(diǎn)NN天),IF(BARSLAST(最后低點(diǎn)) 12、) 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)) 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)) 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)) 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 市教育局冬季運(yùn)動(dòng)會(huì)安全工作預(yù)案
- 2024年秋季《思想道德與法治》大作業(yè)及答案3套試卷
- 2024年教師年度考核表個(gè)人工作總結(jié)(可編輯)
- 2024年xx村兩委涉案資金退還保證書
- 2024年憲法宣傳周活動(dòng)總結(jié)+在機(jī)關(guān)“弘揚(yáng)憲法精神推動(dòng)發(fā)改工作高質(zhì)量發(fā)展”專題宣講報(bào)告會(huì)上的講話
- 2024年XX村合作社年報(bào)總結(jié)
- 2024-2025年秋季第一學(xué)期初中歷史上冊(cè)教研組工作總結(jié)
- 2024年小學(xué)高級(jí)教師年終工作總結(jié)匯報(bào)
- 2024-2025年秋季第一學(xué)期初中物理上冊(cè)教研組工作總結(jié)
- 2024年xx鎮(zhèn)交通年度總結(jié)
- 2024-2025年秋季第一學(xué)期小學(xué)語文教師工作總結(jié)
- 2024年XX村陳規(guī)陋習(xí)整治報(bào)告
- 2025年學(xué)校元旦迎新盛典活動(dòng)策劃方案
- 2024年學(xué)校周邊安全隱患自查報(bào)告
- 2024年XX鎮(zhèn)農(nóng)村規(guī)劃管控述職報(bào)告