最强选股战法推荐:
N:=13;M:=1;P:=3;P2:=5;P3:=36;P4:=13;P5:=65;
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A1,3);
C1:=BacKSET(B1,3+1);
D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
{高低点出现在同一k线上时可作取舍}
H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT((D1 AND E1<E2)));
H2:=D1 AND NOT((D2 AND E1>=E2));
X1:=REF(BArslAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{过滤后高点}
DRAWLINE(LD,L,HD,H,0),COLORRED,LINETHICK3;
DRAWLINE(HD,H,LD,L,0),COLORRED,LINETHICK3;
J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORRED,LINETHICK2;
{以下是两条趋势线原码}
UU:=BACKSET(ISLASTBAR ,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR ,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;
前二低:REF(L,BARSLAST(XX)),COLORFF66FF,LINETHICK1;
前一高:REF(H,BARSLAST(VV2)),COLOR99FF66,LINETHICK1;
前二高:REF(H,BARSLAST(XX2)),COLORFF66FF,LINETHICK1;
DRAWLINE(XX,L,VV,L,1),COLORmaGENTA,LINETHICK2;
DRAWLINE(XX2,H,VV2,H,1),COLORLIMAGENTA,LINETHICK2;
未来函数检测公式代码域:
N:=13;M:=1;P:=3;P2:=5;P3:=36;P4:=13;P5:=65;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BacKSET(B1,3+1);D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一k线上时可作取舍}H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT((D1 AND E1<E2)));H2:=D1 AND NOT((D2 AND E1>=E2));X1:=REF(BArslAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORRED,LINETHICK3;DRAWLINE(HD,H,LD,L,0),COLORRED,LINETHICK3;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORRED,LINETHICK2;{以下是两条趋势线原码}UU:=BACKSET(ISLASTBAR ,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);UU2:=BACKSET(ISLASTBAR ,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;前二低:REF(L,BARSLAST(XX)),COLORFF66FF,LINETHICK1;前一高:REF(H,BARSLAST(VV2)),COLOR99FF66,LINETHICK1;前二高:REF(H,BARSLAST(XX2)),COLORFF66FF,LINETHICK1;DRAWLINE(XX,L,VV,L,1),COLORmaGENTA,LINETHICK2;DRAWLINE(XX2,H,VV2,H,1),COLORLIMAGENTA,LINETHICK2;
未发现:CAPITAL...
未发现:COST...
未发现:DYNAINFO...
未发现:FINANCE...
未发现:LWINNER...
未发现:WINNER...
警惕!警惕!警惕!该公式包含未来函数:BACKSET...
未发现:BARSNEXT...
未发现:CURRBARSCOUNT...
未发现:DVOL...
未发现:DOPEN...
未发现:DCLOSE...
未发现:DHIGH...
未发现:DLOW...
警惕!警惕!警惕!该公式包含未来函数:DRAWLINE...
未发现:REFX...
未发现:FLATZIG...
未发现:FLATZIGA...
未发现:FFT...
未发现:FILTERX...
未发现:PEAK...
未发现:PEAKA...
未发现:PEAKBARS...
未发现:PEAKBARSA...
未发现:PLOYLINE...
未发现:REFDATE...
未发现:TROUGH...
未发现:TROUGHA...
未发现:TROUGHBARS...
未发现:XMA...
未发现:ZIG...
未发现:ZIGA...
未发现:ZXNH...
未发现:#YEAR...
未发现:#MONTH...
未发现:#WEEK...
未发现:$ZIG...
未发现:$PEAK...
未发现:$PEAKBARS...
未发现:$TROUGH...
未发现:$TROUGHBARS...
未发现:$FLATZIG...
未发现:$FLATZIGA...
未发现:$PEAKA...
未发现:$PEAKBARSA...
未发现:$TROUGHA...
未发现:$ZIGA...
未发现:$FFT...
未发现:$BACKSET...
未发现:$WINNER...
未发现:$LWINNER...
未发现:$COST...
未发现:$DYNAINFO...
未发现:$FINANCE...
未发现:$DRAWLINE...
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号