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

老师帮忙修改成博易 [博易POBO]

咨询内容:

老师帮忙修改成博易

江哥趋势:MA(CLOSE,26),COLORRED,DOT,NODRAW;
上平仓:江哥趋势+2*STD(CLOSE,26),COLORMAGENTA,DOT;
下平仓:江哥趋势-2*STD(CLOSE,26),COLORMAGENTA,DOT;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10);
操盘线2:MA(CLOSE,60),COLORWHITE,DOT;


SHORT:=12;
LONG:=26;
M:=12;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
{计算出金叉死叉时的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
{计算出明日MACD=MACD时的DIFF值}
DIF拐头价:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORGREEN,POINTDOT;
金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
黄铢消失见顶:=IF(柱变向价>=DIF拐头价,柱变向价,NULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
上拐:IF(DIF拐头价<柱变向价,DIF拐头价,NULL),COLORRED,LINETHICK2,NODRAW;
下拐:IF(DIF拐头价>=柱变向价,DIF拐头价,NULL),COLOR33FF33,POINTDOT,LINETHICK1,NODRAW;
ZJ:=上拐,COLOR0000FF;
HY:=金死叉价,COLORFF00FF;
IF(ZJ>REF(ZJ,1),ZJ,NULL),COLORRED,LINETHICK1,NODRAW;
IF(HY>REF(HY,1),HY,NULL),COLORMAGENTA,LINETHICK1,NODRAW;
IF(HY<REF(HY,1),HY,NULL),COLORBLUE,LINETHICK1,NODRAW;
DRAWLINE(C>ZJ AND C>O,H,1,C,COLORRED );
DRAWLINE(C>ZJ AND C>O,L,2,O,COLORRED);
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;

 


DRAWLINE(C>ZJ AND C<=O,H,1,L,COLORRED);
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;

 


DRAWLINE(CLOSE=ZJ,H,1,L,COLORWHITE);
DRAWLINE(CLOSE<ZJ,H,1,L,COLORYELLOW);
STICKLINE(CLOSE<ZJ,O,C,2.5,0),COLORYELLOW;

 


DRAWLINE(C<HY AND C>O,H,1,C,COLORCYAN);
DRAWLINE(C<HY AND C>O,O,1,L,COLORCYAN);
STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;
DRAWLINE(C<HY AND C<=O,H,1,L,COLORCYAN);
STICKLINE(C<HY AND C<=O,O,C,2.8,1),COLORCYAN;
HD0:=CROSS(DIF,DEA);
多:=REF(L,BARSLAST(HD0)),COLORYELLOW,DOT;

 


LD0:=CROSS(DEA,DIF);
空:=REF(H,BARSLAST(LD0)),COLOR00FF00,DOT; 
DRAWICON(CROSS(柱变向价,DIF拐头价),上拐,'ICO4'),VALIGN0;
DRAWICON(CROSS(DIF拐头价,柱变向价),下拐,'ICO5');
 

 

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

博易技术人员: 江哥趋势:MA(CLOSE,26),COLORRED,POINTDOT,NODRAW;
上平仓:江哥趋势+2*STD(CLOSE,26),COLORMAGENTA,POINTDOT;
下平仓:江哥趋势-2*STD(CLOSE,26),COLORMAGENTA,POINTDOT;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10);
操盘线2:MA(CLOSE,60),COLORWHITE,POINTDOT;


SHORT:=12;
LONG:=26;
M:=12;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));
{计算出金叉死叉时的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));
{计算出明日MACD=MACD时的DIFF值}
DIF拐头价:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORGREEN,POINTDOT;
金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
黄铢消失见顶:=IF(柱变向价>=DIF拐头价,柱变向价,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
上拐:IF(DIF拐头价<柱变向价,DIF拐头价,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
下拐:IF(DIF拐头价>=柱变向价,DIF拐头价,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK1,NODRAW;
ZJ:=上拐,COLOR0000FF;
HY:=金死叉价,COLORFF00FF;
IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK1,NODRAW;
IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK1,NODRAW;
IF(HY<REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK1,NODRAW;
DRAWLINE(C>ZJ AND C>O,H,1,C,0),COLORRED ;
DRAWLINE(C>ZJ AND C>O,L,2,O,0),COLORRED ;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;

 


DRAWLINE(C>ZJ AND C<=O,H,1,L,0),COLORRED ;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;

 


DRAWLINE(CLOSE=ZJ,H,1,L,0),COLORWHITE;
DRAWLINE(CLOSE<ZJ,H,1,L,0),COLORYELLOW;
STICKLINE(CLOSE<ZJ,O,C,2.5,0),COLORYELLOW;

 


DRAWLINE(C<HY AND C>O,H,1,C,0),COLORCYAN;
DRAWLINE(C<HY AND C>O,O,1,L,0),COLORCYAN;
STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;
DRAWLINE(C<HY AND C<=O,H,1,L,0),COLORCYAN;
STICKLINE(C<HY AND C<=O,O,C,2.8,1),COLORCYAN;
HD0:=CROSS(DIF,DEA);
多:=REF(L,BARSLAST(HD0)),COLORYELLOW,POINTDOT;

 


LD0:=CROSS(DEA,DIF);
空:=REF(H,BARSLAST(LD0)),COLOR00FF00,POINTDOT; 
DRAWICON(CROSS(柱变向价,DIF拐头价),上拐,'ICO4'),VALIGN0;
DRAWICON(CROSS(DIF拐头价,柱变向价),下拐,'ICO5'); 不对呀 太乱了 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容