<noscript id="64ok0"></noscript>
<code id="64ok0"><xmp id="64ok0">
<samp id="64ok0"><xmp id="64ok0"><optgroup id="64ok0"><div id="64ok0"></div></optgroup>
<center id="64ok0"><xmp id="64ok0">
<code id="64ok0"><xmp id="64ok0">
<optgroup id="64ok0"></optgroup>
您現在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內容

麻煩老師把通達信指標改成博弈大師的 [博易POBO]

咨詢內容:

麻煩老師把通達信指標改成博弈大師的


QQ圖片20190626105040.png
{三角形中樞畫線}
時間:=4;
A:=H=HHV(H,時間*5) AND HHV(H,時間*5)>REF(HHV(H,時間*5),1);
B:=L=LLV(L,時間*5) AND LLV(L,時間*5)<REF(LLV(L,時間*5),1);
回撤:DRAWLINE(A,H,B,L,0),DOTLINE,COLORLIRED;{下行劃虛線淡紅}
回升:DRAWLINE(B,L,A,H,0),DOTLINE,COLORLIBLUE;{上行劃虛線淡藍}
N:=(0,1,1);
{纏論高低點}
局部低點預選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);
局部極點:=IF(極點保留=-1,L,IF(極點保留=1,H,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;
CC1:DRAWLINE(極點保留=-1,局部極點,極點保留=1,局部極點,0),DOTLINE,COLORGRAY;{次級下行劃虛線深灰}
CC2:DRAWLINE(極點保留=1,局部極點,極點保留=-1,局部極點,0),DOTLINE,COLORGRAY;{次級上行劃虛線深灰}
極頂:=IF(N=1,CC2=CC1 AND 局部高點預選A AND 極點保留=1,DRAWNULL);
極底:=IF(N=1,CC2=CC1 AND 局部低點預選A AND 極點保留=-1,DRAWNULL);
A1:=BARSLAST(極頂);B1:=CURRBARSCOUNT=CONST(A1)+1;D1:=BARSLAST(B1);高1:=CONST(REF(H,D1));
A2:=REF(A1,A1+1)+A1+1;B2:=CURRBARSCOUNT=CONST(A2)+1;D2:=BARSLAST(B2);高2:=CONST(REF(H,D2));
A3:=REF(A2,A1+1)+A1+1;B3:=CURRBARSCOUNT=CONST(A3)+1;D3:=BARSLAST(B3);高3:=CONST(REF(H,D3));
DA1:=BARSLAST(極底);DB1:=CURRBARSCOUNT=CONST(DA1)+1;DD1:=BARSLAST(DB1);低1:=CONST(REF(L,DD1));
DA2:=REF(DA1,DA1+1)+DA1+1;DB2:=CURRBARSCOUNT=CONST(DA2)+1;DD2:=BARSLAST(DB2);低2:=CONST(REF(L,DD2));
DA3:=REF(DA2,DA1+1)+DA1+1;DB3:=CURRBARSCOUNT=CONST(DA3)+1;DD3:=BARSLAST(DB3);低3:=CONST(REF(L,DD3));
三角型放大A:=低1<低2 AND 高2>高1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>低2;
中樞A1:=IF(三角型放大A AND CONST(C)<高1,DB2,DRAWNULL);
STICKLINE(中樞A1,CONST(C),低2,0,0),COLORLIMAGENTA;{回升中樞洋紅}
中樞A2:=IF(三角型放大A AND CONST(C)<高1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞A2,CONST(C),低2,0,0),COLORLIMAGENTA;{回升中樞洋紅}
DRAWLINE(中樞A1=1,CONST(C),中樞A2=1,CONST(C),0),DOTLINE,COLORLIMAGENTA;{回升中樞洋紅虛線}
DRAWLINE(中樞A1=1,低2,中樞A2=1,低2,0),COLORLIMAGENTA;{回升中樞洋紅}
{成立}
中樞AC1:=IF(三角型放大A AND CONST(C)>=高1,DB2,DRAWNULL);
STICKLINE(中樞AC1,高1,低1,0,0),COLORLIMAGENTA;{回升中樞洋紅}
中樞AC2:=IF(三角型放大A AND CONST(C)>=高1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞AC2,高1,低1,0,0),COLORLIMAGENTA;{回升中樞洋紅}
DRAWLINE(中樞AC1=1,高1,中樞AC2=1,高1,0),COLORLIMAGENTA;{回升中樞洋紅}
DRAWLINE(中樞AC1=1,低1,中樞AC2=1,低1,0),COLORLIMAGENTA;{回升中樞洋紅}

三角型放大B:=低1>低2 AND 高1>高2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<高2;
中樞B1:=IF(三角型放大B AND CONST(C)>低1,B2,DRAWNULL);
STICKLINE(中樞B1,CONST(C),高2,0,0),COLORGREEN;{回撤中樞綠色}
中樞B2:=IF(三角型放大B AND CONST(C)>低1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞B2,CONST(C),高2,0,0),COLORGREEN;{回撤中樞綠色}
DRAWLINE(中樞B1=1,高2,中樞B2=1,高2,0),COLORGREEN;{回撤中樞綠色}
DRAWLINE(中樞B1=1,CONST(C),中樞B2=1,CONST(C),0),DOTLINE,COLORGREEN;{回撤中樞綠色虛線}
{成立}
中樞BC1:=IF(三角型放大B AND CONST(C)<=低1,B2,DRAWNULL);
STICKLINE(中樞BC1,高2,低1,0,0),COLORGREEN;{回撤中樞綠色}
中樞BC2:=IF(三角型放大B AND CONST(C)<=低1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞BC2,高2,低1,0,0),COLORGREEN;{回撤中樞綠色}
DRAWLINE(中樞BC1=1,高2,中樞BC2=1,高2,0),COLORGREEN;{回撤中樞綠色}
DRAWLINE(中樞BC1=1,低1,中樞BC2=1,低1,0),COLORGREEN;{回撤中樞綠色}

三角型收斂A:=低1>低2 AND 高2>高1 AND DA2>A1 AND A1>DA1 AND A2>DA2 AND CONST(C)>低1;
中樞C1:=IF(三角型收斂A AND CONST(C)<高1,DB2,DRAWNULL);
STICKLINE(中樞C1,CONST(C),低1,0,0),COLORLIRED;{回升中樞淡紅}
中樞C2:=IF(三角型收斂A AND CONST(C)<高1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞C2,CONST(C),低1,0,0),COLORLIRED;{回升中樞淡紅}
DRAWLINE(中樞C1=1,CONST(C),中樞C2=1,CONST(C),0),DOTLINE,COLORLIRED;{回升中樞淡紅虛線}
DRAWLINE(中樞C1=1,低1,中樞C2=1,低1,0),COLORLIRED;{回升中樞淡紅}
{成立}
中樞CC1:=IF(三角型收斂A AND CONST(C)>=高1,DB2,DRAWNULL);
STICKLINE(中樞CC1,高1,低1,0,0),COLORLIRED;{回升中樞淡紅}
中樞CC2:=IF(三角型收斂A AND CONST(C)>=高1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞CC2,高1,低1,0,0),COLORLIRED;{回升中樞淡紅}
DRAWLINE(中樞CC1=1,高1,中樞CC2=1,高1,0),COLORLIRED;{回升中樞淡紅}
DRAWLINE(中樞CC1=1,低1,中樞CC2=1,低1,0),COLORLIRED;{回升中樞淡紅}

三角型收斂B:=低1>低2 AND 高1<高2 AND DA1>A1 AND A2>DA1 AND DA2>A2 AND CONST(C)<高1;
中樞D1:=IF(三角型收斂B AND CONST(C)>低1,B2,DRAWNULL);
STICKLINE(中樞D1,CONST(C),高1,0,0),COLORLICYAN;{回撤中樞淡青}
中樞D2:=IF(三角型收斂B AND CONST(C)>低1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞D2,CONST(C),高1,0,0),COLORLICYAN;{回撤中樞淡青}
DRAWLINE(中樞D1=1,高1,中樞D2=1,高1,0),COLORLICYAN;{回撤中樞淡青}
DRAWLINE(中樞D1=1,CONST(C),中樞D2=1,CONST(C),0),DOTLINE,COLORLICYAN;{回撤中樞淡青虛線}
{成立}
中樞DC1:=IF(三角型收斂B AND CONST(C)<=低1,B2,DRAWNULL);
STICKLINE(中樞DC1,高1,低1,0,0),COLORLICYAN;{回撤中樞淡青}
中樞DC2:=IF(三角型收斂B AND CONST(C)<=低1,ISLASTBAR,DRAWNULL);
STICKLINE(中樞DC2,高1,低1,0,0),COLORLICYAN;{回撤中樞淡青}
DRAWLINE(中樞DC1=1,高1,中樞DC2=1,高1,0),COLORLICYAN;{回撤中樞淡青}
DRAWLINE(中樞DC1=1,低1,中樞DC2=1,低1,0),COLORLICYAN;{回撤中樞淡青}
{次級筆段}
頂周期:=TOPRANGE(H); 底周期:=LOWRANGE(L);
上內:=LLVBARS(H,頂周期); 上外:=LLVBARS(L,頂周期); 下內:=HHVBARS(L,底周期); 下外:=HHVBARS(H,底周期);
上力度:=HHV(L,上內+1)>LLV(H,上內+1); 下力度:=HHV(L,下內+1)>LLV(H,下內+1);
上包含:=COUNT(L>=REF(L,1),上外)>2 AND COUNT(H>=REF(H,1),上內)>2;
下包含:=COUNT(H<=REF(H,1),下外)>2 AND COUNT(L<=REF(L,1),下內)>2;
頂0:=頂周期 AND 上力度 AND 上包含 AND 上外>3; 底0:=底周期 AND 下力度 AND 下包含 AND 下外>3;
頂:=頂0 AND H=HHV(H,BARSLAST(底0))AND BARSLAST(底0)>3;
底:=底0 AND L=LLV(L,BARSLAST(頂0))AND BARSLAST(頂0)>3;
DRAWLINE(底,L,頂,H,0),COLORGRAY,DOTLINE;{上行虛線深灰}
DRAWLINE(頂,H,底,L,0),COLORGRAY,DOTLINE;{下行虛線深灰}
{箱體}
TY309:=C;
HD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=HHV(TY309,2*10+1),10),10+1),10);
LD309:=FILTER(BACKSET(FILTER(REF(TY309,10)=LLV(TY309,2*10+1),10),10+1),10);
A309:=REF(C,BARSLAST(HD309)); B309:=REF(C,BARSLAST(LD309));
STICKLINE(ISLASTBAR,A,A,20,0),COLORYELLOW,LINETHICK1;{小箱體--上沿}
DRAWTEXT(ISLASTBAR ,A,VAR2STR(A,2)),COLORYELLOW;
STICKLINE(ISLASTBAR,B,B,20,0),COLORWHITE,LINETHICK1;{小箱體--下沿}
DRAWTEXT(ISLASTBAR,B,VAR2STR(B,2)),COLORWHITE;
{低點}
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低點出現在同一K線上時可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2))OR ISLASTBAR OR BARSCOUNT(C)=1; X1:=REF(BARSLAST(H1),1)+1;
{行業所屬、風格板塊}
TJ:=ISLASTBAR AND C<500;
風格板塊:=STRCAT('【風格】',FGBLOCK); DRAWTEXT_FIX(TJ,0.13,0.1,0,風格板塊),COLOR494949;
所屬行業:=STRCAT('【行業】',HYBLOCK); DRAWTEXT_FIX(TJ,0.13,0.19,0,所屬行業),COLOR494949;
DRAWTEXT_FIX(ISLASTBAR,0.155,0.28,0,GNBLOCK),COLOR494949;{在屏幕左上角顯示所屬概念板塊};
MA55:MA(CLOSE,55),COLOR494949,; <!-- 咨詢內容:

附件 :

-->

?

?來源:程序化99網( www.planetbokep.com )

博易技術人員: 這個指標很多函數不匹配, 不能修改 來源 程序化久久網

 

有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

怎么收費,代編流程等詳情請點擊閱讀!

(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
好姑娘完整版在线观看
<noscript id="64ok0"></noscript>
<code id="64ok0"><xmp id="64ok0">
<samp id="64ok0"><xmp id="64ok0"><optgroup id="64ok0"><div id="64ok0"></div></optgroup>
<center id="64ok0"><xmp id="64ok0">
<code id="64ok0"><xmp id="64ok0">
<optgroup id="64ok0"></optgroup>