您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

请老师帮忙改一下 [博易POBO]

咨询内容:

请老师帮忙改一下

请老师帮忙把这个文华的MACD指标改成博易指标 谢谢DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
ZERO : 0;
GJ:=MAX(C,O);
DRAWCOLORLINE(DIFF>=REF(DIFF,1),DIFF,COLORRED,COLORGREEN);
STICKLINE1(MACD>0 AND MACD>=REF(MACD,1),0,MACD,0.5,0),COLOR0000FF;
STICKLINE1(MACD>0 AND MACD<REF(MACD,1),0,MACD,0.5,0),RGB(255,123,189);
STICKLINE1(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.5,0),COLOR008000;
STICKLINE1(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.5,0),COLOR00FF00;
DRAWICON(CROSS(DIFF,DEA),DIFF,'ICO4');
DRAWICON(CROSS(DEA,DIFF),DIFF,'ICO5');
L4:=LLV(GJ,4);
JL:=(HHV(DIFF,55)-LLV(DIFF,55))/5;
GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);
A1:=BARSLAST(REF(GT,1));
底背:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;
DRAWLINE(A1=0,DEA,底背,REF(DEA,A1),0),COLORRED,LINETHICK2;
DRAWLINE(底背,DEA,底背,REF(DEA,A1),0),COLORRED,LINETHICK2;
DRAWTEXT(底背,REF(DEA,A1)*1.18,' 底背离'),COLORYELLOW;
H4:=HHV(GJ,4);
GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
A2:=BARSLAST(REF(GT2,1));
顶背:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;
DRAWLINE(A2=0 ,DEA,顶背,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWLINE(顶背,DEA,顶背,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWTEXT(顶背,REF(DEA,A2)*1.18,' 顶背离'),COLORRED;
A0:=DIFF<0 AND DEA<0;
A11:=A0>REF(A0,1);
A3:=BARSLAST(A11);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A5:=CROSS(DIFF ,DEA);
A6:=BARSLAST(A5);
A7:=REF(A6,A6+1)+A6;
A8:=(DIFF+DEA)/2;
A9:=(HIGH+LOW)/2;
A10:=A5 AND A7<A3 AND A4 AND A8>REF(A8,A7) AND A9<REF(A9,A7) AND MACD>0;
DRAWTEXT(A10,DIFF*0.95,'.'),COLORYELLOW;
//DRAWTEXT(CROSS(DIFF,DEA),DIFF,'多'),COLORYELLOW;
//DRAWTEXT(CROSS(DEA,DIFF),DEA,'空'),COLORGREEN; 
//CROSS(DIFF,DEA),SOUND('A');
//CROSS(DEA,DIFF),SOUND('B');

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
ZERO : 0;
GJ:=MAX(C,O);
PARTLINE2(DIFF,DIFF>=REF(DIFF,1),COLORRED,DIFF<REF(DIFF,1),COLORGREEN);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,0.5,0),COLOR0000FF;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,0.5,0),COLORBD7BFF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.5,0),COLOR008000;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.5,0),COLOR00FF00;
DRAWICON(CROSS(DIFF,DEA),DIFF,'ICO4');
DRAWICON(CROSS(DEA,DIFF),DIFF,'ICO5');
L4:=LLV(GJ,4);
JL:=(HHV(DIFF,55)-LLV(DIFF,55))/5;
GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);
A1:=BARSLAST(REF(GT,1));
底背:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;
DRAWLINE(A1=0,DEA,底背,REF(DEA,A1),0),COLORRED,LINETHICK2;
DRAWLINE(底背,DEA,底背,REF(DEA,A1),0),COLORRED,LINETHICK2;
DRAWTEXT(底背,REF(DEA,A1)*1.18,' 底背离'),COLORYELLOW;
H4:=HHV(GJ,4);
GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
A2:=BARSLAST(REF(GT2,1));
顶背:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;
DRAWLINE(A2=0 ,DEA,顶背,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWLINE(顶背,DEA,顶背,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWTEXT(顶背,REF(DEA,A2)*1.18,' 顶背离'),COLORRED;
A0:=DIFF<0 AND DEA<0;
A11:=A0>REF(A0,1);
A3:=BARSLAST(A11);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A5:=CROSS(DIFF ,DEA);
A6:=BARSLAST(A5);
A7:=REF(A6,A6+1)+A6;
A8:=(DIFF+DEA)/2;
A9:=(HIGH+LOW)/2;
A10:=A5 AND A7<A3 AND A4 AND A8>REF(A8,A7) AND A9<REF(A9,A7) AND MACD>0;
DRAWTEXT(A10,DIFF*0.95,'.'),COLORYELLOW;
//DRAWTEXT(CROSS(DIFF,DEA),DIFF,'多'),COLORYELLOW;
//DRAWTEXT(CROSS(DEA,DIFF),DEA,'空'),COLORGREEN; 
//CROSS(DIFF,DEA),SOUND('A');
//CROSS(DEA,DIFF),SOUND('B');
  老师请再改一下标注1的划线不要 图标的小房子换成向上向下的箭头谢谢 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容