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

麻烦改成博易,谢谢 [博易POBO]

咨询内容:

麻烦改成博易,谢谢

DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);

DEA :EMA(DIFF,9),LINETHICK2;

MACD:=2*(DIFF-DEA);

STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,COLORRED,0);

STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,COLORBLUE,0);

STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,COLORMAGENTA,0);

STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,COLORGREEN,0);

UPCOND:=CROSS(DIFF,DEA);

DOWNCOND:=CROSSDOWN(DIFF,DEA);

END_N1:=SUMBARS(DOWNCOND,1);

RANGE_N1:=REF(SUMBARS(UPCOND,1),END_N1);

END_N2:=SUMBARS(DOWNCOND,2);

HH1:=REF(HV(H,RANGE_N1),END_N1-1);

HH2:=REF(HV(H,RANGE_N1),END_N2-1);

MACD1:=REF(HV(MACD,RANGE_N1),END_N1-1);

MACD2:=REF(HV(MACD,RANGE_N1),END_N2-1);

顶背离:=CROSS(0,MACD) AND HH1>HH2 AND MACD1<MACD2;

DRAWTEXT(顶背离,DIFF*1.30 ,'顶背离'),RGB(0,255,64);

END_M1:=SUMBARS(UPCOND,1);

RANGE_M1:=REF(SUMBARS(DOWNCOND,1),END_M1);

END_M2:=SUMBARS(UPCOND,2);

LL1:=REF(LV(L,RANGE_M1),END_M1-1);

LL2:=REF(LV(L,RANGE_M1),END_M2-1);

MACD3:=REF(LV(MACD,RANGE_M1),END_M1-1);

MACD4:=REF(LV(MACD,RANGE_M1),END_M2-1);

底背离:=CROSS(MACD,0) AND LL1<LL2 AND MACD3>MACD4;

DRAWTEXT(底背离,DIFF*1.50 ,'底背离'),COLORWHITE;

 

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

博易技术人员: DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);

DEA :EMA(DIFF,9),LINETHICK2;

MACD:=2*(DIFF-DEA);

STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,10,0),COLORRED;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,10,0),COLORBLUE;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,10,0),COLORMAGENTA;

STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,10,0),COLORGREEN;

UPCOND:=CROSS(DIFF,DEA);

DOWNCOND:=CROSS(DEA,DIFF);

END_N1:=SUMBARS(DOWNCOND,1);

RANGE_N1:=REF(SUMBARS(UPCOND,1),END_N1);

END_N2:=SUMBARS(DOWNCOND,2);

HH1:=REF(HHV(H,RANGE_N1),END_N1-1);

HH2:=REF(HHV(H,RANGE_N1),END_N2-1);

MACD1:=REF(HHV(MACD,RANGE_N1),END_N1-1);

MACD2:=REF(HHV(MACD,RANGE_N1),END_N2-1);

顶背离:=CROSS(0,MACD) AND HH1>HH2 AND MACD1<MACD2;

DRAWTEXT(顶背离,DIFF*1.30 ,'顶背离'),COLOR40FF00;

END_M1:=SUMBARS(UPCOND,1);

RANGE_M1:=REF(SUMBARS(DOWNCOND,1),END_M1);

END_M2:=SUMBARS(UPCOND,2);

LL1:=REF(LLV(L,RANGE_M1),END_M1-1);

LL2:=REF(LLV(L,RANGE_M1),END_M2-1);

MACD3:=REF(LLV(MACD,RANGE_M1),END_M1-1);

MACD4:=REF(LLV(MACD,RANGE_M1),END_M2-1);

底背离:=CROSS(MACD,0) AND LL1<LL2 AND MACD3>MACD4;

DRAWTEXT(底背离,DIFF*1.50 ,'底背离'),COLORWHITE; 柱盖住线了,麻烦把线搞外面显示,谢谢 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容