条件判断问题 [博易POBO]
咨询内容:
DD1:=(EMA(CLOSE,4)+MA(CLOSE,4*2)+MA(CLOSE,4*4))/3;
DD2:=(EMA(CLOSE,6)+MA(CLOSE,6*2)+MA(CLOSE,6*4))/3;
ZZ1:=(EMA(CLOSE,9)+MA(CLOSE,9*2)+MA(CLOSE,9*4))/3;
ZZ2:=(EMA(CLOSE,13)+MA(CLOSE,13*2)+MA(CLOSE,13*4))/3;
CC1:=(EMA(CLOSE,18)+MA(CLOSE,18*2)+MA(CLOSE,18*4))/3;
CC2:=(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3;
ZD:=IF((DD1 > DD2 AND DD2 > ZZ1 AND ZZ1 > ZZ2 AND ZZ2 > CC1 AND CC1 > CC2),1,-1);
STICKLINE(ZD>O,0,1,10,000),COLOR0000FF;
STICKLINE(ZD<O,0,-1,10,000),COLOR00FF00;
结果全部显示的是绿柱?请问哪里出了问题?谢谢
<!-- 咨询内容:
条件判断问题
我编了一个指标判断条件公式(瀑布线呈多头排列,显示红柱,否则显示绿柱):DD1:=(EMA(CLOSE,4)+MA(CLOSE,4*2)+MA(CLOSE,4*4))/3;
DD2:=(EMA(CLOSE,6)+MA(CLOSE,6*2)+MA(CLOSE,6*4))/3;
ZZ1:=(EMA(CLOSE,9)+MA(CLOSE,9*2)+MA(CLOSE,9*4))/3;
ZZ2:=(EMA(CLOSE,13)+MA(CLOSE,13*2)+MA(CLOSE,13*4))/3;
CC1:=(EMA(CLOSE,18)+MA(CLOSE,18*2)+MA(CLOSE,18*4))/3;
CC2:=(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3;
ZD:=IF((DD1 > DD2 AND DD2 > ZZ1 AND ZZ1 > ZZ2 AND ZZ2 > CC1 AND CC1 > CC2),1,-1);
STICKLINE(ZD>O,0,1,10,000),COLOR0000FF;
STICKLINE(ZD<O,0,-1,10,000),COLOR00FF00;
结果全部显示的是绿柱?请问哪里出了问题?谢谢
<!-- 咨询内容:
附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员:DD1:=(EMA(CLOSE,4)+MA(CLOSE,4*2)+MA(CLOSE,4*4))/3;谢谢 来源 程序化久久网
DD2:=(EMA(CLOSE,6)+MA(CLOSE,6*2)+MA(CLOSE,6*4))/3;
ZZ1:=(EMA(CLOSE,9)+MA(CLOSE,9*2)+MA(CLOSE,9*4))/3;
ZZ2:=(EMA(CLOSE,13)+MA(CLOSE,13*2)+MA(CLOSE,13*4))/3;
CC1:=(EMA(CLOSE,18)+MA(CLOSE,18*2)+MA(CLOSE,18*4))/3;
CC2:=(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3;
ZD:=IF((DD1 > DD2 AND DD2 > ZZ1 AND ZZ1 > ZZ2 AND ZZ2 > CC1 AND CC1 > CC2),1,-1);
STICKLINE(ZD=1,0,1,2,501),COLOR0000FF;
STICKLINE(ZD=-1,0,-1,2,501),COLOR00FF00;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容