MACD背离模型 背离要求怎么写 [文华财经]
- 咨询内容:
老师,MACD顶背离和底背离这个语句怎么写?
- 文华技术人员:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW;
DEA :=EMA(DIFF,9),COLORGREEN;
MACD:=2*(DIFF-DEA), COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(B1,L,'底背离');//MACD底背离
DRAWTEXT(D1,H,'顶背离');//MACD顶背离参考以下链接:http://www.wenhua.com.cn/myy/chengxuhua4.asp
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容