macd顶底背离 [金字塔]
-
咨询内容:
macd绿柱与上一个周期macd绿柱diff的比较,如果diff>ref(diff,1) and low<ref(low,1)则底背离,同理红柱顶背离,谢谢!
-
金字塔客服:
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背离:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
顶背离:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
-
用户回复:
谢谢金老师,怎样把顶背离,底背离写到背离点上?
-
网友回复:
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背离:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
顶背离:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
drawtext(底背离,macd,'底背离');
drawtext(顶背离,macd,'顶背离');
-
网友回复:
怎样实现区间的llv(diff)与ref(llv(diff),1)的比较?
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容