缠买点跟金叉买点对比,是不一样的,缠买点更加杂乱无章,缠师说了一买是不买,那么没有了一买哪里有二买呢,所以买点他是会很多的不确定性,所以我在买点上加了均线的角度源码,让他更完善一些,个人认为还是前面的水平买点更好把握一些,区别上就不多说了,自己研究吧,更多指标后面会分享交流的 DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACD<0 AND MACD>MQDZAND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0;MA5:=MA(C,5);MA7:=MA(C,7);MA13:=MA(C,13);MA20:=MA(C,20);MA34:=MA(C,34);MA55:=MA(C,55);MA120:=MA(C,120);V20:=MA(V,20);V5:=MA(V,5);V10:=MA(V,10);V34:=MA(V,40);V60:=MA(V,60);V90:=MA(V,90);V135:=MA(V,135);{量倍数: VOL/REF(V,1),COLOR00FFFF,NODRAW;}PM:=((O-C)/O)*10 ;V0:=MA(C,5)>REF(MA(C,10),1) AND MA(C,10)>REF(MA(C,21),1)AND MA(C,21)>REF(MA(C,21),1) ;角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度MA7:=ATAN((MA7/REF(MA7,2)-1)*100)*180/3.1416;角度MA13:=ATAN((MA13/REF(MA13,4)-1)*100)*180/3.1416;角度MA20:=ATAN((MA20/REF(MA20,4)-1)*100)*180/3.1416 ;角度MA34:=ATAN((MA34/REF(MA34,3)-1)*100)*180/3.1416 ;角度MA55:=ATAN((MA55/REF(MA55,2)-1)*100)*180/3.1416 ;角度MA120:=ATAN((MA120/REF(MA120,3)-1)*100)*180/3.1416 ;角度10日均量:=ATAN((V10/REF(V10,2)-1)*100)*180/3.1416 ;角度20日均量:=ATAN((V20/REF(V20,2)-1)*100)*180/3.1416 ;角度34日均量:=ATAN((V34/REF(V34,2)-1)*100)*180/3.1416 ;角度60日均量:=ATAN((V60/REF(V60,3)-1)*100)*180/3.1416 ;角度90日均量:=ATAN((V90/REF(V90,3)-1)*100)*180/3.1416 ;选股:=角度MA13>=20 AND 角度MA20>=15 AND 角度MA34>=-10 AND MA(C,13)>MA(C,20) AND MA(C,20)>REF(MA(C,20),1);选股2:=角度MA13>=45 AND 角度MA20>=10 AND 角度MA20<40 AND 角度MA34>=-10;选股3:=角度MA13<0 AND 角度MA20<0 ;选股55:=角度MA55<30 AND 角度MA55>=15;角度7日:=角度MA7,COLORYELLOW,NODRAW;角度13日:=角度MA13,COLORGREEN,NODRAW;角度20日:=角度MA20,COLORYELLOW,NODRAW;角度34日:=角度MA34,COLORMAGENTA,NODRAW;角度55日:=角度MA55,COLORGREEN,NODRAW;角度10均量:=角度10日均量,COLORGREEN,NODRAW;角度20均量:=角度20日均量,COLORGREEN,NODRAW;角度34均量:=角度34日均量,COLORGREEN,NODRAW;角度60均量:=角度60日均量,COLORGREEN,NODRAW;角度90均量:=角度90日均量,COLORGREEN,NODRAW;多头1:=MA5>=MA7*0.98 AND MA7>=MA13 AND MA13>=MA20*0.978 ;多头2:=(MA20>=MA34*0.98 AND 角度MA34>=30 ) OR ( MA20>=MA55*0.98 AND 角度MA55>=30 ) OR (MA20>=MA120*0.978 AND 角度MA120>=30 ) ;均线多头:=多头1 AND 多头2 AND C>=MA20 AND O>=MA20;均量角度1:=角度10日均量>=80 AND 角度20日均量>=80;均量角度2:=角度20日均量>=80 AND 角度34日均量>=80;均量角度3:=角度10日均量>=80 AND 角度34日均量>=80;均量角度:=均量角度1 OR 均量角度2 OR 均量角度3;量多头1:= V5>=V10*0.94 AND V10>=V20 AND V20>=V60*0.94 AND V60>=V90*0.93 ;量多头2:= V5>=V10*0.94 AND V10>=V20*0.94 AND 均量角度 ;量多头:=量多头1 OR 量多头2;涨停1:= ((C-REF(C,1))/REF(C,1))>=0.095;今日量:=涨停1 OR V>=V10 ;涨幅 := ((C-REF(C,1))/REF(C,1)>=0.023 OR (C-O)/O)>=0.023;堆量1:=(V+REF(V,1)+REF(V,2))/3;堆量11:=(V+REF(V,1)+REF(V,2)+REF(V,3))/4;堆量2:=(REF(V,4)+REF(V,5)+REF(V,6)+REF(V,7)+REF(V,8))/5;堆量3:=(REF(V,9)+REF(V,5)+REF(V,6)+REF(V,7)+REF(V,8))/5;堆量4:=(REF(V,9)+REF(V,10)+REF(V,6)+REF(V,7)+REF(V,8))/5;堆量:=堆量1/堆量2>=1.9 OR 堆量1/堆量3>=1.9 OR 堆量1/堆量4>=1.9 OR 堆量11/堆量2>=1.9 OR 堆量11/堆量3>=1.9 OR 堆量11/堆量4>=1.9;堆量0:=堆量 AND 涨幅 AND C>=MA7 AND C>=MA20 AND C>O;A:=COUNT(ZIG(3,5),20)=2;B:=BARSSINCE(ZIG(3,5));D:=REF(C,B)>LLV(C,20);E:=C>REF(C,B) ;VAR2:=LLV(LOW,A);VAR3:=HHV(HIGH,B);动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);多1:=DIF>REF(DIF,1);多2:=DEA>REF(DEA,1);多3:=MACD>REF(MACD,1);多4:=EVERY(DIF>REF(DIF,1),3);多5:=EVERY(DEA>REF(DEA,1),3);多6:=EVERY(MACD>REF(MACD,1),3);多7:=CROSS(DIF,DEA);多8:=COUNT(多7,20);多9:=MACD>0;空1:=DIF<REF(DIF,1);空2:=DEA<REF(DEA,1);空3:=MACD<REF(MACD,1);空4:=EVERY(DIF<REF(DIF,1),3);空5:=EVERY(DEA<REF(DEA,1),3);空6:=EVERY(MACD<REF(MACD,1),3);空7:=CROSS(DEA,DIF);空8:=COUNT(空7,20);空9:=MACD<0;价:=C>REF(C,1);价1:=O>C;多:=MA(((多1*0.1)+(多2*0.1)+(多3*0.1)+(多4*0.2)+(多5*0.2)+(多6*0.2)+(多7*0.4)+(多8*0.1)+(多9*0.6)+(价*0.6)+(价1*0.3)),5) COLORYELLOW;空:=MA(((空1*0.1)+(空2*0.1)+(空3*0.1)+(空4*0.2)+(空5*0.2)+(空6*0.2)+(空7*0.4)+(空8*0.1)+(空9*0.6)+(价*0.6)+(价1*0.3)),5) COLORGREEN;一买3:=COUNT(L<=LLV(LOW,20),5)>0 AND 多<=0.45 AND (空>=1.88 OR (空>=1.88 AND 多>=REF(多,1))OR(C>MA(C,5)OR (H>MA(C,5)AND C>O)));一买2:=FILTER(CROSS(动力线,0.5),20)OR FILTER(CROSS(动力线,0.2),20);一买1:=(COUNT((量多头 AND 今日量),20)>0 AND COUNT(L<=LLV(L,60),5)>0 AND C>=MA(C,5) AND MA(C,5)>REF(MA(C,5),1))OR(V>REF(HHV(V,60)*0.96,1) AND COUNT(L<=LLV(L,60),3)>0);一买:一买3 OR (一买2 OR 一买1 OR((REF(XG1,1)=1 AND MACD>REF(MACD,1))OR(COUNT(REF(XG1,1)=1 AND MACD>REF(MACD,1),20)>0 AND LLV(L,60)<C AND L<=LLV(L,60))OR(COUNT(L<=LLV(L,60),5)>0 AND CROSS(MA(C,5),MA(C,10)))OR(CROSS(MA(C,5),MA(C,10)) AND COUNT(C>LLV(L,60),5)>0))AND C>=MA(C,5));QF:=LLVBARS(DIF,QZQ+20);DQDZ:=IF(QF>QZQ,REF(DIF,QF),0);XG11:=MACD<0 AND MACD>MQDZ AND DIF<0 AND DIF>DQDZAND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0 AND DQDZ<0;二买:(REF(XG11,1)=1 AND MACD>REF(MACD,1) AND C>=MA(C,5))OR(COUNT(一买,20)>0 AND COUNT(C>LLV(L,60),5)>0 AND MA(C,5)>REF(MA(C,5),1) AND CROSS(MA(C,5),MA(C,10)) AND C>=MA(C,5)) STICK;N1:=9;{最近下跌天数}N2:=30;{上涨天数}N3:=56;{平台高点天数}LL:=LLV(L,N1);HH:=HHV(H,2*N1);H0:=REF(HHV(H,N3),N1+N2);三买0:=HH=HHV(H,N2+N1+N3) AND LL>H0 AND LL/HH<0.85;{创N2+N1+N3天新高,回调低点I不破前平台高点(可根据自己要求适当放宽到0.97),本次回调低点最低值与最高值下跌幅度不低于15%};N11:=6;{最近下跌天数}N21:=31;{上涨天数}N31:=55;{平台高点天数}LL1:=LLV(L,N11);HH1:=REF(HHV(H,N21),N11);H01:=REF(HHV(H,N31),N11+N21);三买1:=HH=HHV(H,N21+N11+N31) AND LL1>=0.97*H01 AND LL1/HH1<0.85;N12:=5;{最近下跌天数}N22:=31;{上涨天数}N32:=55;{平台高点天数}LL2:=LLV(L,N12);HH2:=REF(HHV(H,N22),N12);H02:=REF(HHV(H,N32),N12+N22);三买2:=HH2=HHV(H,N22+N12) AND LL2>=H02;三买:(三买0 AND 三买1 AND 三买2)OR(COUNT(二买,20)>0 AND MA(C,20)>REF(MA(C,20),1) AND C>MA(C,20) AND (REF(C,1)<REF(MA(C,20),1)OR C>REF(H,1)));DRAWTEXT(一买,0.5,'一买'),COLORWHITE;
DRAWTEXT(二买,0.5,'2买'),COLORRED;
|