最强选股战法推荐:
{N1:1,100,10;N2:1,100,10;DISP:=1,3,2};
N1:=10;N2:=10;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*N1,1);
P2:=PEAK(1,K*N1,2);
WP1:=PEAKBARS(1,K*N1,1);
WP2:=PEAKBARS(1,K*N1,2);
T1:=TROUGH(2,K*N2,1);
T2:=TROUGH(2,K*N2,2);
WT1:=TROUGHBARS(2,K*N2,1);
WT2:=TROUGHBARS(2,K*N2,2);
TJ1:=P1>T1 AND P2>T2 ;
ZD:=maX(T1,T2);
ZG:=MIN(P1,P2);
LL:=MIN(T1,T2);
HH:=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,HH,DRAWNULL);
ZSL:=IF(TJ8,LL,DRAWNULL);
STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORLIMAGENTA;
STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORLIMAGENTA;
DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;
中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),crOSSDOT,COLORLICYAN;
中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIBLUE;
中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORWHITE;
中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORCYAN;
趋势高:PLOYLINE(DISP=3,zig(1,K*N1)),COLORLIGREEN;
趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIGREEN;
局部低点预选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));
极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);
XA:=DRAWLINE(极点保留=-1,L,REF(极点保留,1)=-1,REF(L,1),1);
XB:=DRAWLINE(极点保留=1,H,REF(极点保留,1)=1,REF(H,1),1);
XAS:=DRAWLINE(极点保留=-1,XB,REF(极点保留,1)=-1,REF(XB,1),1);
Xbs:=DRAWLINE(极点保留=1,XA,REF(极点保留,1)=1,REF(XA,1),1);
XA45:=(XA+XAS)/2; XB45:=(XB+XBS)/2;
XA63:=(XAS-XA)*3/4+XA; XB63:=XB-(XB-XBS)*3/4;
压1:IF(BETWEEN(XA45,XB45,XB63),XA45,DRAWNULL),COLOR008800;
压2:IF(BETWEEN(XA63,XB45,XB63),XA63,DRAWNULL),COLOR008800;
局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORBLUE,LINETHICK3;
DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLICYAN;
DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE;
DD1:=BARSLAST(ABS(极点保留)!=1);
DRAWTEXT(极点保留=1,局部极点,'卖'),COLORCYAN;
DRAWTEXT(极点保留=-1,局部极点,'买'),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK1;
判:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK1;
MA10:MA(CLOSE,10),COLORBLUE,LINETHICK1;
判吻型:IF(MA5>MA10,MA10,DRAWNULL),COLORWHITE,LINETHICK1;
{笔底分型 选股 预警 确保向下笔成立后的底分型}
V00:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
V01:= HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);
V02:= HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);
V03:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
V04:= REF(HIGH,2) < HIGH AND REF(LOW,2) < LOW
AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
V1:= COUNT(V00,6)>=3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6) = 1 AND HHVBARS(HIGH,6) >= 5 AND V03;
V2:= COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 2 AND HHVBARS(HIGH,7) >= 6 AND V04;
V3:= COUNT(V00,7)>=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 1 AND HHVBARS(HIGH,7) >= 6 AND V03;
V4:= COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8) = 2 AND HHVBARS(HIGH,8) >= 7 AND V04;
V5:= COUNT(V00,8)>=3 AND COUNT(V01 OR V02,7)<=2 AND LLVBARS(LOW,8) = 1 AND HHVBARS(HIGH,8) >= 7 AND V03;
V6:= COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9) = 2 AND HHVBARS(HIGH,9) >= 8 AND V04;
V7:= COUNT(V00,9)>=3 AND COUNT(V01 OR V02,8)<=3 AND LLVBARS(LOW,9) = 1 AND HHVBARS(HIGH,9) >= 8 AND V03;
V8:= COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4 AND LLVBARS(LOW,10) = 2 AND HHVBARS(HIGH,10) >= 9 AND V04;
V9:= COUNT(V00,10)>=3 AND COUNT(V01 OR V02,9)<=4 AND LLVBARS(LOW,10) = 1 AND HHVBARS(HIGH,10) >= 9 AND V03;
V10:= COUNT(V00,11)>=3 AND COUNT(V01 OR V02,10)<=5 AND LLVBARS(LOW,11) = 2 AND HHVBARS(HIGH,11) >= 10 AND V04;
XG:= V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;
DRAWTEXT(FILTER(XG=1,5),L*0.998,'底'),COLORBLUE;
{笔顶分型 选股 预警 确保向上笔成立后的顶分型}
HV00:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
HV01:= HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);
HV02:= HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);
HV03:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
HV04:= REF(HIGH,2) > HIGH AND REF(LOW,2) > LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
HV1:= COUNT(HV00,6)>=3 AND COUNT(HV01 OR HV02,5)=0 AND HHVBARS(HIGH,6) = 1 AND LLVBARS(LOW,6) >= 5 AND HV03;
HV2:= COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7) = 2 AND LLVBARS(LOW,7) >= 6 AND HV04;
HV3:= COUNT(HV00,7)>=3 AND COUNT(HV01 OR HV02,6)=1 AND HHVBARS(HIGH,7) = 1 AND LLVBARS(LOW,7) >= 6 AND HV03;
HV4:= COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)<=2 AND HHVBARS(HIGH,8) = 2 AND LLVBARS(LOW,8) >= 7 AND HV04;
HV5:= COUNT(HV00,8)>=3 AND COUNT(HV01 OR HV02,7)<=2 AND HHVBARS(HIGH,8) = 1 AND LLVBARS(LOW,8) >= 7 AND HV03;
HV6:= COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)<=3 AND HHVBARS(HIGH,9) = 2 AND LLVBARS(LOW,9) >= 8 AND HV04;
HV7:= COUNT(HV00,9)>=3 AND COUNT(HV01 OR HV02,8)<=3 AND HHVBARS(HIGH,9) = 1 AND LLVBARS(LOW,9) >= 8 AND HV03;
HV8:= COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)<=4 AND HHVBARS(HIGH,10) = 2 AND LLVBARS(LOW,10) >= 9 AND HV04;
HV9:= COUNT(HV00,10)>=3 AND COUNT(HV01 OR HV02,9)<=4 AND HHVBARS(HIGH,10) = 1 AND LLVBARS(LOW,10) >= 9 AND HV03;
HV10:= COUNT(HV00,11)>=3 AND COUNT(HV01 OR HV02,10)<=5 AND HHVBARS(HIGH,11) = 2 AND LLVBARS(LOW,11) >= 10 AND HV04;
HXG:=HV1 OR HV2 OR HV3 OR HV4 OR HV5 OR HV6 OR HV7 OR HV8 OR HV9 OR HV10;
DRAWTEXT(FILTER(HXG=1,3),H*1.01,'顶'),COLORCYAN;
未来函数检测公式代码域:
{N1:1,100,10;N2:1,100,10;DISP:=1,3,2};N1:=10;N2:=10;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:=PEJK(1,K*N1,1);P2:=PEJK(1,K*N1,2);WP1:=PEJKBJRS(1,K*N1,1);WP2:=PEJKBJRS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBJRS(2,K*N2,1);WT2:=TROUGHBJRS(2,K*N2,2);TJ1:=P1>T1 JND P2>T2 ;ZD:=maX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MJX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BJrslJST(TJ2)) OR ZD=REF(ZD,BJRSLJST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BJRSLJST(TJ4),1)),REF(ZG,REF(BJRSLJST(TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BJRSLJST(TJ4),1)),REF(ZG,REF(BJRSLJST(TJ4),1)));TJ7:=ZG>REF(ZG,REF(BJRSLJST(TJ4),1))&&ZD<REF(ZD,REF(BJRSLJST(TJ4),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRJWNULL);ZSG:=IF(TJ8,ZG,DRJWNULL);ZSH:=IF(TJ8,HH,DRJWNULL);ZSL:=IF(TJ8,LL,DRJWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORLIMJGENTJ;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORLIMJGENTJ;DRJWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:PLOYLINE(DISP=2,REF(ZSD,BJRSLJST(TJ8))),crOSSDOT,COLORLICYJN;中枢低:PLOYLINE(DISP=2,REF(ZSG,BJRSLJST(TJ8))),CROSSDOT,COLORLIBLUE;中枢最高:PLOYLINE(DISP=2,REF(ZSH,BJRSLJST(TJ8))),POINTDOT,COLORWHITE;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BJRSLJST(TJ8))),POINTDOT,COLORCYJN;趋势高:PLOYLINE(DISP=3,zig(1,K*N1)),COLORLIGREEN;趋势低:PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIGREEN;局部低点预选J:=BacKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BJCKSET(局部低点预选J=0 JND REF(局部低点预选J,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 JND REF(局部低点预选B,1)=0,-1,0);局部高点预选J:=BJCKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BJCKSET(局部高点预选J=0 JND REF(局部高点预选J,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 JND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BJRSLJST(局部高点预选C=1);距前低天:=BJRSLJST(局部低点预选C=-1);小值周期:=LOwrJNGE(L);大值周期:=topRJNGE(H);低保留JJ:=IF(局部低点预选C=-1 JND REF(距前高天,1)>REF(距前低天,1) JND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留JB:=IF(局部低点预选C=-1 JND REF(距前高天,1)<=REF(距前低天,1) JND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留JJ=-1 OR 低保留JB=-1) JND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 JND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 JND REF(距前低天,1)<=REF(距前高天,1) JND 预判=1 JND 大值周期>REF(小值周期,距前低天+1) JND 大值周期>REF(小值周期,距前低天) JND 大值周期>REF(大值周期,距前高天),1,0);高保留J:=IF(局部高点预选C=1 JND REF(距前低天,1)>REF(距前高天,1) JND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 JND REF(距前低天,1)<=REF(距前高天,1) JND REF(低保留S,距前低天)=-1 JND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留J=1 OR 高保留B=1 OR 判断=1) JND H>REF(L,距前低天+1),1,0);预判J:=IF((距前高天<4 JND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断J:=IF(局部低点预选C=-1 JND REF(距前高天,1)<=REF(距前低天,1) JND 预判J=1 JND 小值周期>REF(大值周期,距前高天+1) JND 小值周期>REF(大值周期,距前高天) JND 小值周期>REF(小值周期,距前低天),-1,0);低保留J:=IF(局部低点预选C=-1 JND REF(距前高天,1)>REF(距前低天,1) JND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 JND REF(距前高天,1)<=REF(距前低天,1) JND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断J=-1),-1,0);低保留:=IF((低保留J=-1 OR 低保留B=-1) JND L<REF(H,距前高天+1),-1,0);距前高天J:=BJRSLJST(高保留=1);距前低天J:=BJRSLJST(低保留=-1);预判X:=IF((距前低天J<4 JND HHV(缺口判断,距前低天J)!=1) OR REF(低保留,距前低天J)=0,1,0);判断X:=IF(局部高点预选C=1 JND REF(距前低天J,1)<=REF(距前高天J,1) JND 预判X=1 JND 大值周期>REF(小值周期,距前低天J+1) JND 大值周期>REF(小值周期,距前低天J) JND 大值周期>REF(大值周期,距前高天J),1,0);高保留XJ:=IF(局部高点预选C=1 JND REF(距前低天J,1)>REF(距前高天J,1) JND HHV(H,距前低天J+1)>REF(HHV(H,距前低天J+1),1),1,0);高保留XB:=IF(局部高点预选C=1 JND REF(距前低天J,1)<=REF(距前高天J,1) JND REF(低保留,距前低天J)=-1 JND (距前低天J>=4 OR HHV(缺口判断,距前低天J)=1),1,0);高保留X:=IF((高保留XJ=1 OR 高保留XB=1 OR 判断X=1) JND H>REF(L,距前低天J+1),1,0);预判XJ:=IF((距前高天J<4 JND HHV(缺口判断,距前高天J)!=1) OR REF(高保留XJ,距前高天J)=0,1,0);判断XJ:=IF(局部低点预选C=-1 JND REF(距前高天J,1)<=REF(距前低天J,1) JND 预判XJ=1 JND 小值周期>REF(大值周期,距前高天J+1) JND 小值周期>REF(大值周期,距前高天J) JND 小值周期>REF(小值周期,距前低天J),-1,0);低保留XJ:=IF(局部低点预选C=-1 JND REF(距前高天J,1)>REF(距前低天J,1) JND LLV(L,距前高天J+1)<REF(LLV(L,距前高天J+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 JND REF(距前高天J,1)<=REF(距前低天J,1) JND (距前高天J>=4 OR LLV(缺口判断,距前高天J)=-1 OR 判断XJ=-1),-1,0);低保留X:=IF((低保留XJ=-1 OR 低保留XB=-1) JND L<REF(H,距前高天J+1),-1,0);距前高天YJ:=BJRSLJST(高保留X=1);距前低天YJ:=BJRSLJST(低保留X=-1);预判YX:=IF((距前低天YJ<4 JND HHV(缺口判断,距前低天YJ)!=1) OR REF(低保留X,距前低天YJ)=0,1,0);判断YX:=IF(局部高点预选C=1 JND REF(距前低天YJ,1)<=REF(距前高天YJ,1) JND 预判YX=1 JND 大值周期>REF(小值周期,距前低天YJ+1) JND 大值周期>REF(小值周期,距前低天YJ) JND 大值周期>REF(大值周期,距前高天YJ),1,0);高保留YXJ:=IF(局部高点预选C=1 JND REF(距前低天YJ,1)>REF(距前高天YJ,1) JND HHV(H,距前低天YJ+1)>REF(HHV(H,距前低天YJ+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 JND REF(距前低天YJ,1)<=REF(距前高天YJ,1) JND REF(低保留X,距前低天YJ)=-1 JND (距前低天YJ>=4 OR HHV(缺口判断,距前低天YJ)=1),1,0);高保留YX:=IF((高保留YXJ=1 OR 高保留YXB=1 OR 判断YX=1) JND H>REF(L,距前低天YJ+1),1,0);预判YXJ:=IF((距前高天YJ<4 JND HHV(缺口判断,距前高天YJ)!=1) OR REF(高保留YXJ,距前高天YJ)=0,1,0);判断YXJ:=IF(局部低点预选C=-1 JND REF(距前高天YJ,1)<=REF(距前低天YJ,1) JND 预判YXJ=1 JND 小值周期>REF(大值周期,距前高天YJ+1) JND 小值周期>REF(大值周期,距前高天YJ) JND 小值周期>REF(小值周期,距前低天YJ),-1,0);低保留YXJ:=IF(局部低点预选C=-1 JND REF(距前高天YJ,1)>REF(距前低天YJ,1) JND LLV(L,距前高天YJ+1)<REF(LLV(L,距前高天YJ+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 JND REF(距前高天YJ,1)<=REF(距前低天YJ,1) JND (距前高天YJ>=4 OR LLV(缺口判断,距前高天YJ)=-1 OR 判断YXJ=-1),-1,0);低保留YX:=IF((低保留YXJ=-1 OR 低保留YXB=-1) JND L<REF(H,距前高天YJ+1),-1,0);JJJD:=IF(高保留YX=1 JND 低保留YX=-1 JND H>REF(H,REF(距前高天YJ,1)+2),1,IF(高保留YX=1 JND 低保留YX=-1 JND L<REF(L,REF(距前低天YJ,1)+2),-1,0));极点保留:=IF(JJJD=0,高保留YX+低保留YX,JJJD);XJ:=DRJWLINE(极点保留=-1,L,REF(极点保留,1)=-1,REF(L,1),1);XB:=DRJWLINE(极点保留=1,H,REF(极点保留,1)=1,REF(H,1),1);XJS:=DRJWLINE(极点保留=-1,XB,REF(极点保留,1)=-1,REF(XB,1),1);Xbs:=DRJWLINE(极点保留=1,XJ,REF(极点保留,1)=1,REF(XJ,1),1);XJ45:=(XJ+XJS)/2; XB45:=(XB+XBS)/2;XJ63:=(XJS-XJ)*3/4+XJ; XB63:=XB-(XB-XBS)*3/4;压1:IF(BETWEEN(XJ45,XB45,XB63),XJ45,DRJWNULL),COLOR008800;压2:IF(BETWEEN(XJ63,XB45,XB63),XJ63,DRJWNULL),COLOR008800;局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRJWNULL)),CIRCLEDOT,COLORBLUE,LINETHICK3;DRJWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLICYJN;DRJWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE;DD1:=BJRSLJST(JBS(极点保留)!=1);DRJWTEXT(极点保留=1,局部极点,'卖'),COLORCYJN;DRJWTEXT(极点保留=-1,局部极点,'买'),COLORWHITE;DRJWKLINE(HIGH,OPEN,LOW,CLOSE);MJ5:MJ(CLOSE,5),COLORFF00FF,LINETHICK1;判:IF(MJ5<REF(MJ5,1),MJ5,DRJWNULL),COLORRED,LINETHICK1;MJ10:MJ(CLOSE,10),COLORBLUE,LINETHICK1;判吻型:IF(MJ5>MJ10,MJ10,DRJWNULL),COLORWHITE,LINETHICK1;{笔底分型 选股 预警 确保向下笔成立后的底分型}V00:= HIGH<REF(HIGH,1) JND LOW<REF(LOW,1);V01:= HIGH<REF(HIGH,1) JND LOW>REF(LOW,1);V02:= HIGH>REF(HIGH,1) JND LOW<REF(LOW,1);V03:= HIGH>REF(HIGH,1) JND LOW>REF(LOW,1);V04:= REF(HIGH,2) < HIGH JND REF(LOW,2) < LOWJND REF(HIGH,2) > REF(HIGH,1) JND REF(LOW,2) < REF(LOW,1);V1:= COUNT(V00,6)>=3 JND COUNT(V01 OR V02,5)=0 JND LLVBJRS(LOW,6) = 1 JND HHVBJRS(HIGH,6) >= 5 JND V03;V2:= COUNT(V00,7)>=3 JND COUNT(V01 OR V02,6)=1 JND LLVBJRS(LOW,7) = 2 JND HHVBJRS(HIGH,7) >= 6 JND V04;V3:= COUNT(V00,7)>=3 JND COUNT(V01 OR V02,6)=1 JND LLVBJRS(LOW,7) = 1 JND HHVBJRS(HIGH,7) >= 6 JND V03;V4:= COUNT(V00,8)>=3 JND COUNT(V01 OR V02,7)<=2 JND LLVBJRS(LOW,8) = 2 JND HHVBJRS(HIGH,8) >= 7 JND V04;V5:= COUNT(V00,8)>=3 JND COUNT(V01 OR V02,7)<=2 JND LLVBJRS(LOW,8) = 1 JND HHVBJRS(HIGH,8) >= 7 JND V03;V6:= COUNT(V00,9)>=3 JND COUNT(V01 OR V02,8)<=3 JND LLVBJRS(LOW,9) = 2 JND HHVBJRS(HIGH,9) >= 8 JND V04;V7:= COUNT(V00,9)>=3 JND COUNT(V01 OR V02,8)<=3 JND LLVBJRS(LOW,9) = 1 JND HHVBJRS(HIGH,9) >= 8 JND V03;V8:= COUNT(V00,10)>=3 JND COUNT(V01 OR V02,9)<=4 JND LLVBJRS(LOW,10) = 2 JND HHVBJRS(HIGH,10) >= 9 JND V04;V9:= COUNT(V00,10)>=3 JND COUNT(V01 OR V02,9)<=4 JND LLVBJRS(LOW,10) = 1 JND HHVBJRS(HIGH,10) >= 9 JND V03;V10:= COUNT(V00,11)>=3 JND COUNT(V01 OR V02,10)<=5 JND LLVBJRS(LOW,11) = 2 JND HHVBJRS(HIGH,11) >= 10 JND V04;XG:= V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;DRJWTEXT(FILTER(XG=1,5),L*0.998,'底'),COLORBLUE;{笔顶分型 选股 预警 确保向上笔成立后的顶分型}HV00:= HIGH>REF(HIGH,1) JND LOW>REF(LOW,1);HV01:= HIGH<REF(HIGH,1) JND LOW>REF(LOW,1);HV02:= HIGH>REF(HIGH,1) JND LOW<REF(LOW,1);HV03:= HIGH<REF(HIGH,1) JND LOW<REF(LOW,1);HV04:= REF(HIGH,2) > HIGH JND REF(LOW,2) > LOW JND REF(HIGH,2) > REF(HIGH,1) JND REF(LOW,2) < REF(LOW,1);HV1:= COUNT(HV00,6)>=3 JND COUNT(HV01 OR HV02,5)=0 JND HHVBJRS(HIGH,6) = 1 JND LLVBJRS(LOW,6) >= 5 JND HV03;HV2:= COUNT(HV00,7)>=3 JND COUNT(HV01 OR HV02,6)=1 JND HHVBJRS(HIGH,7) = 2 JND LLVBJRS(LOW,7) >= 6 JND HV04;HV3:= COUNT(HV00,7)>=3 JND COUNT(HV01 OR HV02,6)=1 JND HHVBJRS(HIGH,7) = 1 JND LLVBJRS(LOW,7) >= 6 JND HV03;HV4:= COUNT(HV00,8)>=3 JND COUNT(HV01 OR HV02,7)<=2 JND HHVBJRS(HIGH,8) = 2 JND LLVBJRS(LOW,8) >= 7 JND HV04;HV5:= COUNT(HV00,8)>=3 JND COUNT(HV01 OR HV02,7)<=2 JND HHVBJRS(HIGH,8) = 1 JND LLVBJRS(LOW,8) >= 7 JND HV03;HV6:= COUNT(HV00,9)>=3 JND COUNT(HV01 OR HV02,8)<=3 JND HHVBJRS(HIGH,9) = 2 JND LLVBJRS(LOW,9) >= 8 JND HV04;HV7:= COUNT(HV00,9)>=3 JND COUNT(HV01 OR HV02,8)<=3 JND HHVBJRS(HIGH,9) = 1 JND LLVBJRS(LOW,9) >= 8 JND HV03;HV8:= COUNT(HV00,10)>=3 JND COUNT(HV01 OR HV02,9)<=4 JND HHVBJRS(HIGH,10) = 2 JND LLVBJRS(LOW,10) >= 9 JND HV04;HV9:= COUNT(HV00,10)>=3 JND COUNT(HV01 OR HV02,9)<=4 JND HHVBJRS(HIGH,10) = 1 JND LLVBJRS(LOW,10) >= 9 JND HV03;HV10:= COUNT(HV00,11)>=3 JND COUNT(HV01 OR HV02,10)<=5 JND HHVBJRS(HIGH,11) = 2 JND LLVBJRS(LOW,11) >= 10 JND HV04;HXG:=HV1 OR HV2 OR HV3 OR HV4 OR HV5 OR HV6 OR HV7 OR HV8 OR HV9 OR HV10;DRJWTEXT(FILTER(HXG=1,3),H*1.01,'顶'),COLORCYJN;
未发现:CJPITJL...
未发现:COST...
未发现:DYNJINFO...
未发现:FINJNCE...
未发现:LWINNER...
未发现:WINNER...
警惕!警惕!警惕!该公式包含未来函数:BJCKSET...
未发现:BJRSNEXT...
未发现:CURRBJRSCOUNT...
未发现:DVOL...
未发现:DOPEN...
未发现:DCLOSE...
未发现:DHIGH...
未发现:DLOW...
警惕!警惕!警惕!该公式包含未来函数:DRJWLINE...
未发现:REFX...
未发现:FLJTZIG...
未发现:FLJTZIGJ...
未发现:FFT...
未发现:FILTERX...
警惕!警惕!警惕!该公式包含未来函数:PEJK...
未发现:PEJKJ...
警惕!警惕!警惕!该公式包含未来函数:PEJKBJRS...
未发现:PEJKBJRSJ...
警惕!警惕!警惕!该公式包含未来函数:PLOYLINE...
未发现:REFDJTE...
警惕!警惕!警惕!该公式包含未来函数:TROUGH...
未发现:TROUGHJ...
警惕!警惕!警惕!该公式包含未来函数:TROUGHBJRS...
未发现:XMJ...
警惕!警惕!警惕!该公式包含未来函数:ZIG...
未发现:ZIGJ...
未发现:ZXNH...
未发现:#YEJR...
未发现:#MONTH...
未发现:#WEEK...
未发现:$ZIG...
未发现:$PEJK...
未发现:$PEJKBJRS...
未发现:$TROUGH...
未发现:$TROUGHBJRS...
未发现:$FLJTZIG...
未发现:$FLJTZIGJ...
未发现:$PEJKJ...
未发现:$PEJKBJRSJ...
未发现:$TROUGHJ...
未发现:$ZIGJ...
未发现:$FFT...
未发现:$BJCKSET...
未发现:$WINNER...
未发现:$LWINNER...
未发现:$COST...
未发现:$DYNJINFO...
未发现:$FINJNCE...
未发现:$DRJWLINE...
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号