MACD12日和20日交叉后向上走显示为红色,向下走显示为绿色 怎么设置 ? [博易POBO]
咨询内容:
怎么设置
?
DEA : EMA(DIFF,9);
MACD := 2*(DIFF-DEA), COLORSTICK;
STICKLINE(DIFF>=DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF>=DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN;
STICKLINE(DIFF<DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF<DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
DRAWKLINEEX(DIFF>DEA,H,O,L,C),COLOR0000FF;
DRAWKLINEEX(DIFF<DEA,H,O,L,C),COLOR00FF00;
DRAWKLINEEX(DIFF=DEA,H,O,L,C),COLORFFFFFF; 来源 程序化久久网
MACD12日和20日交叉后向上走显示为红色,向下走显示为绿色 怎么设置 ?
MACD12日和20日交叉后向上走显示为红色,向下走显示为绿色怎么设置
?
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA : EMA(DIFF,9);
MACD := 2*(DIFF-DEA), COLORSTICK;
STICKLINE(DIFF>=DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF>=DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN;
STICKLINE(DIFF<DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF<DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
DRAWKLINEEX(DIFF>DEA,H,O,L,C),COLOR0000FF;
DRAWKLINEEX(DIFF<DEA,H,O,L,C),COLOR00FF00;
DRAWKLINEEX(DIFF=DEA,H,O,L,C),COLORFFFFFF; 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容