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

老师 这个代码错误能修改一下么 [博易POBO]

咨询内容:

老师 这个代码错误能修改一下么

 DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK1;
DEA:=EMA(DIF,9),COLORWHITE,LINETHICK1;
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),COLORLIBLUE,LINETHICK1;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,1,0),COLORFF00FF,LINETHICK1;
建仓:=IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK1;
加仓:=IF(DIF<0,0,DIF),COLORRED,LINETHICK1;
白线破仓:=IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK1;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0),COLOR770077;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLOR990099;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.2,0),COLORBB00BB;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORDD00DD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,3,0),COLOR155500;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR208000;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1.2,0),COLOR2BAA00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1,0),COLOR35D500;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0.7,0),COLOR40FF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0,0),COLOR40FF00;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,3,0),COLOR00AAFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),COLOR00BBFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1.4,0),COLOR00CCFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1,0),COLOR00DDFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0.7,0),COLOR00EEFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0,0),COLOR00FFFF;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),COLOR000077;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,5),COLOR000099;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),COLOR0000BB;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0.6,0),COLOR0000DD;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0,0),COLOR0000DD;
DIF1:EMA(CLOSE,12)-EMA(CLOSE,27),COLORBROWN,LINETHICK2;
IF(DIF1>=REF(DIF1,1),DIF1,DRAWNULL),COLORRED,LINETHICK2;
DEA1:EMA(DIF1,9),COLORLIBLUE,LINETHICK2;
IF(DEA1>=REF(DEA1,1),DEA1,DRAWNULL),COLORRED,LINETHICK2;

 

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

博易技术人员: DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK1;
DEA:=EMA(DIF,9),COLORWHITE,LINETHICK1;
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),COLORBLUE,LINETHICK1;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,1,0),COLORFF00FF,LINETHICK1;
建仓:=IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK1;
加仓:=IF(DIF<0,0,DIF),COLORRED,LINETHICK1;
白线破仓:=IF(DIF<DEA,DIF,DEA),COLORWHITE,LINETHICK1;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0),COLOR770077;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLOR990099;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.2,0),COLORBB00BB;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORDD00DD;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.5,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,3,0),COLOR155500;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR208000;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1.2,0),COLOR2BAA00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1,0),COLOR35D500;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0.7,0),COLOR40FF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0,0),COLOR40FF00;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,3,0),COLOR00AAFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),COLOR00BBFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1.4,0),COLOR00CCFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1,0),COLOR00DDFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0.7,0),COLOR00EEFF;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0,0),COLOR00FFFF;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),COLOR000077;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,5),COLOR000099;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),COLOR0000BB;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0.6,0),COLOR0000DD;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0,0),COLOR0000DD;
DIF1:EMA(CLOSE,12)-EMA(CLOSE,27),COLOR000040,LINETHICK2;
IF(DIF1>=REF(DIF1,1),DIF1,DRAWNULL),COLORRED,LINETHICK2;
DEA1:EMA(DIF1,9),COLORBLUE,LINETHICK2;
IF(DEA1>=REF(DEA1,1),DEA1,DRAWNULL),COLORRED,LINETHICK2; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容