您現在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內容

請教高手通達信指標轉換成博奕大師 [博易POBO]

咨詢內容:

請教高手通達信指標轉換成博奕大師

通達信代碼如下:
DIFF:EMA(CLOSE,10)-EMA(CLOSE,26),NODRAW;
DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=CURRBARSCOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED;??
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE;??
ABSM5:=CONST(IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))));??
?ABSM10:=CONST(IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))));??
?R2M5:=IF(CURR=3,CONST(DIFF)+ABSM5,DRAWNULL);??
?R2M10:=IF(CURR=3,CONST(DEA)+ABSM10,DRAWNULL);??
?R1M5:=IF(CURR=2,CONST(DIFF)+2*ABSM5,DRAWNULL);??
?R1M10:=IF(CURR=2,CONST(DEA)+2*ABSM10,DRAWNULL);??
?R0M10:=IF(ISLASTBAR,CONST(DEA)+3*ABSM10,DRAWNULL);??
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,DOTLINE;??
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,DOTLINE;??
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,DOTLINE;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,DOTLINE;??
IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA;
DRAWICON(CROSS(DIFF,0),0,1);
DRAWICON(CROSS(0,DIFF),0,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
0,COLORWHITE;
底背離:=(REF(L,A1+1)>L OR REF(C,A1+1)>C) AND (L,DIFF)>REF((L,DIFF),A1+1) AND CROSS(DIFF,DEA);
DRAWTEXT(底背離,DEA,'M底背');
DRAWLINE(A1=0,DEA,底背離,DEA,0),COLOR0000FF,LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=(REF(C,A2+1)<C OR REF(H,A2+1)<H) AND REF((H,DIFF),A2+1)>(H,DIFF) AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK3;
DRAWTEXT(頂背離,DEA,'M頂背')COLORGREEN;
DRAWNUMBER(C>0? AND ISLASTBAR,DEA*0.998,MACD);
?
效果圖片如下,可以顯示虛線

? 1.png<!-- 咨詢內容:

附件 :

-->

?

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

博易技術人員: DIFF:EMA(CLOSE,10)-EMA(CLOSE,26),NODRAW;
DEA:EMA(DIFF,9),NODRAW;MACD:(DIFF-DEA),NODRAW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CURR:=DATACOUNT;
RM5:IF(CURR>3,REFX(DIFF,3),DRAWNULL),COLORRED; ?
RM10:IF(CURR>3,REFX(DEA,3),DRAWNULL),COLORWHITE; ?
ABSM5:=IF(DIFF-REF(DIFF,1)>0,ABS(DIFF-REF(DIFF,1)),0-ABS(DIFF-REF(DIFF,1))); ?
?ABSM10:=IF(DEA-REF(DEA,1)>0,ABS(DEA-REF(DEA,1)),0-ABS(DEA-REF(DEA,1))); ?
?R2M5:=IF(CURR=3,DIFF+ABSM5,DRAWNULL); ?
?R2M10:=IF(CURR=3,DEA+ABSM10,DRAWNULL); ?
?R1M5:=IF(CURR=2,DIFF+2*ABSM5,DRAWNULL); ?
?R1M10:=IF(CURR=2,DEA+2*ABSM10,DRAWNULL); ?
?R0M10:=IF(ISLASTBAR,DEA+3*ABSM10,DRAWNULL); ?
?DRAWLINE(CURR=4,RM5,CURR=3,R2M5,0),COLOR0000FF,POINTDOT; ?
?DRAWLINE(CURR=4,RM10,CURR=3,R2M10,0),COLOR00FFFF,POINTDOT; ?
?DRAWLINE(CURR=3,R2M10,CURR=2,R1M10,0),COLOR00FFFF,POINTDOT;?
?DRAWLINE(CURR=3,R2M5,CURR=2,R1M5,0),COLOR0000FF,POINTDOT; ?
AA1:IF(RM5>RM10,RM5,DRAWNULL),COLORRED,LINETHICK2;
AA2:IF(RM5<RM10,RM5,DRAWNULL),COLORGREEN,LINETHICK2;
AA3:IF(RM5<0 AND RM5<RM10,RM5,DRAWNULL),COLORCC6600,LINETHICK2;
AA4:IF(RM5>0 AND RM5>RM10,RM5,DRAWNULL),LINETHICK2,COLORMAGENTA;
DRAWICON(CROSS(DIFF,0),0,1);
DRAWICON(CROSS(0,DIFF),0,2);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=(REF(L,A1+1)>L OR REF(C,A1+1)>C) AND CROSS(DIFF,DEA);
DRAWTEXT(底背離,DEA,'M底背');
DRAWLINE(A1=0,DEA,底背離,DEA,0),COLOR0000FF,LINETHICK3;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=(REF(C,A2+1)<C OR REF(H,A2+1)<H) AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK3;
DRAWTEXT(頂背離,DEA,'M頂背'),COLORGREEN; 你好,好像顯示不了虛線部份 來源 程序化久久網

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  點擊這里給我發消息或微信:cxhjy888 進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 欧美精品www| 中国人xxxxx69免费视频| 王爷晚上含奶h嗯额嗯| 国产免费av一区二区三区| 91chinesehomemadevideo| 强开小婷嫩苞又嫩又紧视频| 久久精品女人的天堂AV| 波多野结衣gvg708| 厨房掀起馊子裙子挺进去视频| 91精品国产人成网站| 国产视频2021| runaway韩国动漫全集在线| 无翼少无翼恶女漫画全彩app| 亚洲专区一路线二| 清纯校花被色老头糟蹋| 向日葵视频app免费下载| 黑人3p波多野结衣在线观看| 国产精品综合色区在线观看| www.99热| 成人激情免费视频| 久久国产精品免费看| 欧美三级纯黄版| 亚洲熟女乱色一区二区三区| 精品国产三上悠亚在线观看| 国产亚洲精品无码专区| 日韩视频第二页| 国产香蕉国产精品偷在线| 一级毛片在线完整免费观看| 日本三级在线视频| 二女一男女3p完整版在线观看| 欧美日韩精品在线观看| 伊人影院综合网| 美女奶口隐私免费视频网站| 国产凌凌漆国语| 精品一区二区视频在线观看| 国内精品久久久久影视| jux-222椎名由奈在线观看| 成人免费淫片在线费观看| 久久久久久亚洲精品无码| 最近日本中文字幕免费完整| 亚洲图片欧美另类|