请老师帮忙修改 [博易POBO]
咨询内容:
DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
DRAWCOLORKLINE(DIFF>0&&DEA>0&&ISUP&&DIFF>DEA,COLORRED,1);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&DIFF<DEA&&ISUP,COLORGREEN,1);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF>DEA&&ISUP,COLORYELLOW,1);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF<DEA&&ISUP,COLORBLUE,1);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&ISDOWN&&DIFF>DEA,COLORRED,0);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&DIFF<DEA&&ISDOWN,COLORGREEN,0);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF>DEA&&ISDOWN,COLORYELLOW,0);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF<DEA&&ISDOWN,COLORBLUE,0);
DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
DRAWKLINEEX(DIFF>0&&DEA>0&&ISUP&&DIFF>DEA,H,O,L,C),COLORRED;
DRAWKLINEEX(DIFF>0&&DEA>0&&DIFF<DEA&&ISUP,H,O,L,C),COLORGREEN;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF>DEA&&ISUP,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF<DEA&&ISUP,H,O,L,C),COLORBLUE;
DRAWKLINEEX(DIFF>0&&DEA>0&&ISDOWN&&DIFF>DEA,H,O,L,C),COLORRED;
DRAWKLINEEX(DIFF>0&&DEA>0&&DIFF<DEA&&ISDOWN,H,O,L,C),COLORGREEN;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF>DEA&&ISDOWN,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF<DEA&&ISDOWN,H,O,L,C),COLORBLUE; 来源 程序化久久网
请老师帮忙修改
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
DRAWCOLORKLINE(DIFF>0&&DEA>0&&ISUP&&DIFF>DEA,COLORRED,1);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&DIFF<DEA&&ISUP,COLORGREEN,1);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF>DEA&&ISUP,COLORYELLOW,1);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF<DEA&&ISUP,COLORBLUE,1);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&ISDOWN&&DIFF>DEA,COLORRED,0);
DRAWCOLORKLINE(DIFF>0&&DEA>0&&DIFF<DEA&&ISDOWN,COLORGREEN,0);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF>DEA&&ISDOWN,COLORYELLOW,0);
DRAWCOLORKLINE(DIFF<0&&DEA<0&&DIFF<DEA&&ISDOWN,COLORBLUE,0);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);//短周期与长周期的收盘价的指数平滑移动平均值做差。DEA := EMA(DIFF,9);//DIFF的M个周期指数平滑移动平均
MACD:=2*(DIFF-DEA),COLORSTICK;//DIFF减DEA的2倍画柱状线
DRAWKLINEEX(DIFF>0&&DEA>0&&ISUP&&DIFF>DEA,H,O,L,C),COLORRED;
DRAWKLINEEX(DIFF>0&&DEA>0&&DIFF<DEA&&ISUP,H,O,L,C),COLORGREEN;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF>DEA&&ISUP,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF<DEA&&ISUP,H,O,L,C),COLORBLUE;
DRAWKLINEEX(DIFF>0&&DEA>0&&ISDOWN&&DIFF>DEA,H,O,L,C),COLORRED;
DRAWKLINEEX(DIFF>0&&DEA>0&&DIFF<DEA&&ISDOWN,H,O,L,C),COLORGREEN;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF>DEA&&ISDOWN,H,O,L,C),COLORYELLOW;
DRAWKLINEEX(DIFF<0&&DEA<0&&DIFF<DEA&&ISDOWN,H,O,L,C),COLORBLUE; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容