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

老师 修改下指标转博易的 谢谢 [博易POBO]

咨询内容:

老师 修改下指标转博易的 谢谢

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
ZERO : 0;
GJ:=MAX(C,O);

DRAWLINE(MACD>=0,0,1,MACD,COLORRED);
DRAWLINE(MACD<0,0,1,MACD,COLORCYAN);


DRAWTEXT(CROSS(DIFF,DEA),MACD,'上');
DRAWTEXT(CROSSDOWN(DIFF,DEA),MACD,'下');

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;
DRAWLINE(底,DEA,底,REF(DEA,A1),0),COLORRED;
DRAWTEXT(底,REF(DEA,A1)*1.18,' 底'),COLORFF00FF;
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;
DRAWLINE(顶,DEA,顶,REF(DEA,A2),0),COLORGREEN;
DRAWTEXT(顶,REF(DEA,A2)*1.18,' 顶'),COLORGREEN;

顶||底,SOUND('A');

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;

 

 来源:程序化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);

DRAWLINE(MACD>=0,0,1,MACD,COLORRED);
DRAWLINE(MACD<0,0,1,MACD,COLORCYAN);


DRAWTEXT(CROSS(DIFF,DEA),MACD,'上');
DRAWTEXT(CROSS(DEA,DIFF),MACD,'下');

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;
DRAWLINE(底,DEA,底,REF(DEA,A1),0),COLORRED;
DRAWTEXT(底,REF(DEA,A1)*1.18,' 底'),COLORFF00FF;
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;
DRAWLINE(顶,DEA,顶,REF(DEA,A2),0),COLORGREEN;
DRAWTEXT(顶,REF(DEA,A2)*1.18,' 顶'),COLORGREEN;


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; 老师你好这个柱子能不能修改成经典模式的柱子,谢谢 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容