人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內(nèi)容

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

咨詢內(nèi)容:

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

通達信代碼如下:
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<!-- 咨詢內(nèi)容:

附件 :

-->

?

?來源:程序化99網(wǎng)( www.kzuj.com.cn )

博易技術人員: 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; 你好,好像顯示不了虛線部份 來源 程序化久久網(wǎng)

 

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

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


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

相關文章

    沒有相關內(nèi)容
主站蜘蛛池模板: 91成人软件 | 亚洲国产情侣一区二区三区 | 成年视频xxxxx免费播放软件 | 亚洲欧美日韩国产专区一区 | 亚洲欧洲色天使日韩精品 | 亚洲操 | 国产精品日韩精品 | 伦理片在线观看网站资源 | 97碰视频人人做人人爱欧美 | 久久午夜夜伦鲁鲁影院 | 国产亚洲人成网站天堂岛 | 成人五月网| 日本精a在线观看 | 久久成人免费播放网站 | 国产精品一区二 | xxxx日日摸夜夜添夜夜添视频 | 污视频网站在线观看免费 | 在线观看国产免费高清不卡 | 日本中文视频 | 在线观看麻豆精品国产不卡 | 欧美成人a级在线视频 | 国产麻豆福利a v在线播放 | 视频一区在线观看 | 在线播放亚洲精品富二代91 | 人人射人人| 性生大片一级毛片免费观看 | 色一情一乱一伦一区二区三区 | 国产免费叼嘿在线观看 | 国产精品页 | 久久人人爽人人爽人 | 黄色片视频网站 | 人人草人人澡 | 成人羞羞国产免费软件 | 午夜羞羞影院 | 韩国videos18高清hd | 中文字幕第99页 | 亚洲免费在线播放 | 免费韩国理伦片在线观看 | www.青草视频 | 激情综合网站 | 顶级毛片在线手机免费看 |