请老师修改,A3、A4不显示 [文华财经]
-
咨询内容:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
N1:=BARSLAST(JC)+1;
N2:=BARSLAST(SC)+1;
HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//上次MACD红柱期间合约最大值
HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值
HH3:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH2,1));//1上上次MACD红柱期间合约最大值
HH4:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH3,1));//2上上次MACD红柱期间合约最大值
MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(DIFF,N1));//上次MACD红柱期间MACD最大值
MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值
MHD3:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD2,1));//1上上次MACD红柱期间MACD最大值
MHD4:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD3,1));//上上次MACD红柱期间MACD最大值LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));//上次MACD绿柱期间合约最小值
LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上上次MACD绿柱期间合约最小值
MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N2));//上次MACD绿柱期间MACD最小值
MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上上次MACD绿柱期间MACD最小值
A:=CROSSDOWN(DIFF,DEA)&&HH>HH2&&MHD<MHD2;//顶背离
A3:=CROSSDOWN(DIFF,DEA)&&HH>HH3&&MHD<MHD3;//顶背离
A4:=CROSSDOWN(DIFF,DEA)&&HH>HH4&&MHD<MHD4;//顶背离B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2;//底背离
DRAWICON(A,H,143);
DRAWICON(A3,H,143);
DRAWICON(A4,H,143);来源:程序化99
-
文华技术人员:
A3 A4是显示的,调出十字光标结合左上角返回值看下
返回1代表满足条件,返回0为不满足
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA),COLORSTICK;JC:=CROSS(DIFF,DEA);SC:=CROSSDOWN(DIFF,DEA);N1:=BARSLAST(JC)+1;N2:=BARSLAST(SC)+1;HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//上次MACD红柱期间合约最大值HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值HH3:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH2,1));//1上上次MACD红柱期间合约最大值HH4:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH3,1));//2上上次MACD红柱期间合约最大值MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(DIFF,N1));//上次MACD红柱期间MACD最大值MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值MHD3:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD2,1));//1上上次MACD红柱期间MACD最大值MHD4:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD3,1));//上上次MACD红柱期间MACD最大值LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));//上次MACD绿柱期间合约最小值LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上上次MACD绿柱期间合约最小值MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(DIFF,N2));//上次MACD绿柱期间MACD最小值MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上上次MACD绿柱期间MACD最小值A:CROSSDOWN(DIFF,DEA)&&HH>HH2&&MHD<MHD2,NODRAW;//顶背离A3:CROSSDOWN(DIFF,DEA)&&HH>HH3&&MHD<MHD3,NODRAW;//顶背离A4:CROSSDOWN(DIFF,DEA)&&HH>HH4&&MHD<MHD4,NODRAW;//顶背离
B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2;//底背离DRAWICON(A,H,143);DRAWICON(A3,H,143);DRAWICON(A4,H,143);来源: WWW.CXH99.COM
-
文华客服:
麻烦老师看一下,加载在2005豆油3分钟主图上的,黄圈标注的是主图上没有显示信号的和显示的不是信号的,是不是这种写法的缺陷导致的?
-
网友回复:
提供截图我们针对看下
- 网友回复: 图
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容