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

麻烦修改一下错误 [博易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),COLOR0000FF,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),COLOR00FF00,LINETHICK2;
 F1:IF(DIF1>=REF(DIF1,1),DIF1,DRAWNULL),COLORFF00FF,LINETHICK2;
 DEA1:EMA(DIF1,9),COLOR00FFFF,LINETHICK2;
 F2:IF(DEA1>=REF(DEA1,1),DEA1,DRAWNULL),COLORRED,LINETHICK2;
 
  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)ANDMACD>0,0,MACD,3,0),COLOR770077;
STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,2,0),COLOR990099;
STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,1.2,0),COLORBB00BB;
STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,1,0),COLORDD00DD;
STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,0.5,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,0,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,3,0),COLOR155500;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,2,0),COLOR208000;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,1.2,0),COLOR2BAA00;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,1,0),COLOR35D500;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,0.7,0),COLOR40FF00;
STICKLINE(MACD<REF(MACD,1)ANDMACD<0,0,MACD,0,0),COLOR40FF00;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,3,0),COLOR00AAFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,2,0),COLOR00BBFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,1.4,0),COLOR00CCFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,1,0),COLOR00DDFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,0.7,0),COLOR00EEFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD,0,MACD,0,0),COLOR00FFFF;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,3,0),COLOR000077;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,2,5),COLOR000099;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,1,0),COLOR0000BB;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,0.6,0),COLOR0000DD;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,0,0),COLOR0000DD;
DIF1:EMA(CLOSE,12)-EMA(CLOSE,27),COLOR000080,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  点击在线交流或微信:cxhjy888 进行 有偿 编写!

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容