三合线指标修改 [文华财经]
- 咨询内容: //1:
-
文华技术人员:
参考:
QM1:=H>REF(H,1) AND L>REF(L,1);
QM2:=H>REF(H,2) AND L>REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
QM3:=H>REF(H,3) AND L>REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
QMARK:=QM1 OR QM2 OR QM3;
QSET:=L<VALUEWHEN(QMARK,L) AND H<VALUEWHEN(QMARK,H) AND HHV(H,BARSLAST(QMARK))<VALUEWHEN(QMARK,H);
QSIG:=IF(QMARK,1,IF(QSET,0,NULL));
CROSS(QSIG=0,0.5);
//2:
M1:=H<REF(H,1) AND L<REF(L,1);
M2:=H<REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
M3:=H<REF(H,3) AND L<REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
MARK:=M1 OR M2 OR M3;
SET:=L>VALUEWHEN(MARK,L) AND H>VALUEWHEN(MARK,H) AND LLV(L,BARSLAST(MARK))>VALUEWHEN(MARK,L);
SIG:=IF(MARK,1,IF(SET,0,NULL));
CROSS(SIG=0,0.5);来源: WWW.CXH99.COM
-
文华客服:
无法添加到主图,老师
-
网友回复:
这两个指标都是副图指标,需要加载到副图上查看的。
主图上,满足条件画笑脸和哭脸看下:
QM1:=H>REF(H,1) AND L>REF(L,1);
QM2:=H>REF(H,2) AND L>REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
QM3:=H>REF(H,3) AND L>REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
QMARK:=QM1 OR QM2 OR QM3;
QSET:=L<VALUEWHEN(QMARK,L) AND H<VALUEWHEN(QMARK,H) AND HHV(H,BARSLAST(QMARK))<VALUEWHEN(QMARK,H);
QSIG:=IF(QMARK,1,IF(QSET,0,NULL));
CROSS(QSIG=0,0.5),ICON(0,'CO1',VALIGN0;
//2:
M1:=H<REF(H,1) AND L<REF(L,1);
M2:=H<REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
M3:=H<REF(H,3) AND L<REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
MARK:=M1 OR M2 OR M3;
SET:=L>VALUEWHEN(MARK,L) AND H>VALUEWHEN(MARK,H) AND LLV(L,BARSLAST(MARK))>VALUEWHEN(MARK,L);
SIG:=IF(MARK,1,IF(SET,0,NULL));
CROSS(SIG=0,0.5),ICON(1,'CO2'; - 网友回复: 首先感谢您的修改。但效果不是特别的好,可否还能优化成红绿色箭头? 感谢老师!
M1:=H>REF(H,1) AND L>REF(L,1);
M2:=H>REF(H,2) AND L>REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
M3:=H>REF(H,3) AND L>REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
MARK:=M1 OR M2 OR M3;
SET:=L<VALUEWHEN(MARK,L) AND H<VALUEWHEN(MARK,H) AND HHV(H,BARSLAST(MARK))<VALUEWHEN(MARK,H);
SIG:=IF(MARK,1,IF(SET,0,NULL));
CROSS(SIG=0,0.5);
//2:
M1:=H<REF(H,1) AND L<REF(L,1);
M2:=H<REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
M3:=H<REF(H,3) AND L<REF(L,3) AND H>REF(H,2) AND L<REF(L,2) AND H>REF(H,1) AND L<REF(L,1);
MARK:=M1 OR M2 OR M3;
SET:=L>VALUEWHEN(MARK,L) AND H>VALUEWHEN(MARK,H) AND LLV(L,BARSLAST(MARK))>VALUEWHEN(MARK,L);
SIG:=IF(MARK,1,IF(SET,0,NULL));
CROSS(SIG=0,0.5);
老师,这两个整合不到一起呀,适用于文华6期货,烦请帮忙修改。 感谢!
来源:程序化99
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容