缠买点
缠论买点公式再复合指标金叉概念选股棒极 一试为快!!!
特此奉献:
在趋势背驰、中枢延伸背驰、盘整背驰的三种形态转化中,能被缠定为常规指标:kdj\macd...等金叉认可的买点,价值才会高精准。
不妨用实践做个验证!
强力推荐!
{N1:1,100,10;N2:1,100,10;DISP:=1,3,2}
DISP:=2;
K:=IF(PERIOD=5,1,{日}
IF(PERIOD=6,1,{周}
IF(PERIOD=7,1,{月}
IF(PERIOD=8,1,{多分钟}
IF(PERIOD=9,1,{多日}
IF(PERIOD=10,1,{季}
IF(PERIOD=11,2,{年}
IF(PERIOD=4,1,{60F}
IF(PERIOD=3,1,{30F}
IF(PERIOD=2,1,{15F}
IF(PERIOD=1,1{5F},1{1F})))))))))))/10;
P1:=PEAK(1,K*10,1);
P2:=PEAK(1,K*10,2);
WP1:=PEAKBARS(1,K*10,1);
WP2:=PEAKBARS(1,K*10,2);
T1:=TROUGH(2,K*10,1);
T2:=TROUGH(2,K*10,2);
WT1:=TROUGHBARS(2,K*10,1);
WT2:=TROUGHBARS(2,K*10,2);
TJ1:=P1>T1 AND P2>T2 ;
ZD:=MAX(T1,T2);
ZG:=MIN(P1,P2);
LLA:=MIN(T1,T2);
HHA:=MAX(P1,P2);
TJ2:=FILTER(ZG>ZD,2);
TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));
TJ4:=TJ1&&TJ2&&NOT(TJ3);
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));
TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);
ZSD:=IF(TJ8,ZD,DRAWNULL);
ZSG:=IF(TJ8,ZG,DRAWNULL);
ZSH:=IF(TJ8,HHA,DRAWNULL);
ZSL:=IF(TJ8,LLA,DRAWNULL);
中枢高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8)));
中枢低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8)));
中枢最高:=PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8)));
中枢最低:=PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8)));
趋势高:=PLOYLINE(DISP=3,ZIG(1,K*10)),COLORLIBLUE;
趋势低:=PLOYLINE(DISP=3,ZIG(2,K*10)),COLORLIBLUE;
局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);
局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);
局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);
局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);
局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);
局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);
缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));
距前高天:=BARSLAST(局部高点预选C=1);
距前低天:=BARSLAST(局部低点预选C=-1);
小值周期:=LOWRANGE(L);
大值周期:=TOPRANGE(H);
低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);
低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);
预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);
判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);
高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);
高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);
高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);
预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);
判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);
低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);
低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);
低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);
距前高天A:=BARSLAST(高保留=1);
距前低天A:=BARSLAST(低保留=-1);
预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);
判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);
高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);
高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);
高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);
预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);
判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);
低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);
低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);
低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);
距前高天YA:=BARSLAST(高保留X=1);
距前低天YA:=BARSLAST(低保留X=-1);
预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);
判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);
高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);
高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);
高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);
预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);
判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);
低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);
低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);
低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);
AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));
SCAA:=REF(IF(AAAD=0,高保留YX+低保留YX,AAAD),1)=-1;
N:=5;M:=3;
N1:=3;N2:=8;M1:=50;M2:=100;SM:=20;KS:=6;
AT:=C/FINANCE(33)<M1 AND C/FINANCE(33)>0 AND FINANCE(7)<10000000*M2;
{11111111111111111111111111. K??}
AC:=C;
AL:=L;
AH:=H;
AQ_1:=AC-REF(AC,1);
AQ_2:=100*EMA(EMA(AQ_1,6),6)/EMA(EMA(ABS(AQ_1),6),6);
AQ_3:=CROSS(EMA(AC,N2),EMA(AC,N1));
AQ_4:=CROSS(EMA(AC,N1),EMA(AC,N2));
AZ1:=AL=LLV(AL,BARSLAST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JB:=IF(K_B<REF(K_B,1) AND K_B=K_A,1,0),COLORWHITE;
{333333333333333333333333333. ??"??·}
YR1:=LLV(LOW,21);
YR2:=HHV(HIGH,21);
YTK:=EMA((CLOSE-YR1)/(YR2-YR1)*100,6);
YTD:=EMA(0.667*REF(YTK,1)+0.333*YTK,2);
YR3:=LLV(LOW,55);
YR4:=HHV(HIGH,34);
YR5:=EMA((CLOSE-YR3)/(YR4-YR3)*100,3);
YR6:=(YTK+YR5)/2;
YR7:=EMA(0.667*REF(YR5,1)+0.333*YTK,2);
YR8:=EMA(YR6,5);
YR9:=EMA(0.667*REF(YR8,1)+0.333*YR8,2);
YV7:=SMA(C,6.18,1)*YTK;
VOV:=(YTK+YTD+YR6+YR8+YR9)*0.2;
YC:=VOV;
YL:=YC;
YH:=YC;
YQ_1:=YC-REF(YC,1);
YQ_2:=100*EMA(EMA(YQ_1,6),6)/EMA(EMA(ABS(YQ_1),6),6);
YQ_3:=CROSS(EMA(YC,N2),EMA(YC,N1));
YQ_4:=CROSS(EMA(YC,N1),EMA(YC,N2));
YZ1:=YL=LLV(YL,BARSLAST(YQ_3)+1);
YZ2:=LLV(YL,BARSLAST(YQ_3)+1);
YZ3:=YH=HHV(YH,BARSLAST(YQ_4)+1);
YZ4:=HHV(YH,BARSLAST(YQ_4)+1);
YQ_A:=DRAWLINE(YZ1,YZ2,YZ3,YZ4,0);
YY1:=YH=HHV(YH,BARSLAST(YQ_4)+1);
YY2:=HHV(YH,BARSLAST(YQ_4)+1);
YY3:=YL=LLV(YL,BARSLAST(YQ_3)+1);
YY4:=LLV(YL,BARSLAST(YQ_3)+1);
YQ_B:=DRAWLINE(YY1,YY2,YY3,YY4,0);
TJD:=IF(YQ_B<REF(YQ_B,1) AND YQ_B=YQ_A,1,0);
{44444444444444444444444444444. ????}
RC:=WINNER(C)*0.9*100-5;
RL:=RC;
RH:=RC;
RQ_1:=RC-REF(RC,1);
RQ_2:=100*EMA(EMA(RQ_1,6),6)/EMA(EMA(ABS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
JB_MR_III:=JB_MR_I OR JB_MR_II;
JB_FJ:=L>REF(L,1) AND CROSS(C,EMA(C,5)) AND CROSS(C,EMA(C,10)) ;
JB_SSC:=JB_MR_I AND JB_FJ;
JB_SC1:=IF(SCA=6,1,0);
JB_SC2:=IF(SCA<6,1,0);
JB_MR:= SCA>=4 AND REF(SCA,2)<=6 AND (CROSS(JB_CFC,JB_CFB) OR CROSS(JB_CFC,EMA(C,30)) OR CROSS(JB_CFC,EMA(C,60)));
JB_SCB:=ZIG(3,5);
JB_SCC:=IF(JB_SCB>REF(JB_SCB,1),2,0);
JB_SSD:= CROSS(JB_SCC,1) AND CROSS(C,EMA(C,27)) OR JB_MR OR JB_SCB OR JB_SCC ;
JB_SCK5:=CROSS(SCA,5.5) AND REF(SCA,1)=5 AND REF(SCA,2)=5 AND REF(SCA,3)=5 AND REF(SCA,4)=5 AND REF(SCA,5)<=5;
JB_SCK4:=CROSS(SCA,5.5) AND REF(SCA,1)=5 AND REF(SCA,2)=5 AND REF(SCA,3)=5 AND REF(SCA,4)<5;
JB_SCK3:=CROSS(SCA,5.5) AND REF(SCA,1)=5 AND REF(SCA,2)=5 AND REF(SCA,3)<5;
JB_SCK2:=CROSS(SCA,5.5) AND REF(SCA,1)=5 AND REF(SCA,2)<5;
JB_SCK1:=CROSS(SCA,5.5) AND REF(SCA,1)<5 ;
JB_SCK0:=JB_SCK1 OR JB_SCK5 OR JB_SCK4;
JB_SCK9:=JB_SCK5 OR JB_SCK4 OR JB_SCK3 OR JB_SCK3 OR JB_SCK1;
JB_ZL_VO:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
JB_ZL_V1:=(C*2+H+L)/4*10;
JB_ZL_V2:=EMA(JB_ZL_V1,13)-EMA(JB_ZL_V1,34);
JB_ZL_V3:=EMA(JB_ZL_V2,5);
JB_ZL_V4:=2*(JB_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