跨周期编写 [文华财经]
-
咨询内容:
老师,这是我现在的跨6周期模型,目前在30分钟周期开平仓,比如30分钟周期多单进场后,我想实现3个以上跨周期周期都出现平仓信号时再平仓,请问如何实现
AA: A:=红; B:=青;
主模型: //开仓条件#IMPORT [HOUR,1,AA] AS VAR1#IMPORT [HOUR,2,AA] AS VAR2#IMPORT [HOUR,3,AA] AS VAR3#IMPORT [HOUR,4,AA] AS VAR4#IMPORT [WEEK,1,AA] AS VAR5#IMPORT [MONTH,1,AA] AS VAR6AA:=VAR1.A&&VAR2.A&&VAR3.A&&VAR4.A&&VAR5.A&&VAR6.A;BB:=VAR1.B&&VAR2.B&&VAR3.B&&VAR4.B&&VAR5.B&&VAR6.B;AA&&红,BK;青,SP;BB&&青,SK;红,BP;AUTOFILTER;来源:程序化99
-
文华技术人员:
参考:
#IMPORT [HOUR,1,AA] AS VAR1 #IMPORT [HOUR,2,AA] AS VAR2 #IMPORT [HOUR,3,AA] AS VAR3 #IMPORT [HOUR,4,AA] AS VAR4 #IMPORT [WEEK,1,AA] AS VAR5 #IMPORT [MONTH,1,AA] AS VAR6 AA:=VAR1.A&&VAR2.A&&VAR3.A&&VAR4.A&&VAR5.A&&VAR6.A; BB:=VAR1.B&&VAR2.B&&VAR3.B&&VAR4.B&&VAR5.B&&VAR6.B; AA&&红,BK;
BB&&青,SK;
AUTOFILTER;
K1:VAR1.B,NODRAW; K2:VAR1.B,NODRAW; K3:VAR1.B,NODRAW; K4:VAR1.B,NODRAW; K5:VAR1.B,NODRAW; K6:VAR1.B,NODRAW; K1+K2+K3+K4+K5+K6>=3,SP;
D1:VAR1.A,NODRAW; D2:VAR1.A,NODRAW; D3:VAR1.A,NODRAW; D4:VAR1.A,NODRAW; D5:VAR1.A,NODRAW; D6:VAR1.A,NODRAW; D1+D2+D3+D4+D5+D6>=3,BP;
来源: WWW.CXH99.COM
-
文华客服:
老师我这样写对不
#IMPORT [HOUR,1,AA] AS VAR1 #IMPORT [HOUR,2,AA] AS VAR2 #IMPORT [HOUR,3,AA] AS VAR3 #IMPORT [HOUR,4,AA] AS VAR4 #IMPORT [WEEK,1,AA] AS VAR5 #IMPORT [MONTH,1,AA] AS VAR6 AA:=VAR1.A&&VAR2.A&&VAR3.A&&VAR4.A&&VAR5.A&&VAR6.A; BB:=VAR1.B&&VAR2.B&&VAR3.B&&VAR4.B&&VAR5.B&&VAR6.B; CC:=VAR1.A&&VAR2.A&&VAR3.A&&VAR4.A; DD:=VAR1.B&&VAR2.B&&VAR3.B&&VAR4.B;
AA&&红,BK; DD&&青,SP; BB&&青,SK; CC&&红,BP; AUTOFILTER; -
网友回复:
3楼这样写 是开多后 同时满足 1小时2小时3小时 和4小时,4个周期的青条件则 平多。
2楼写法是 6个周期的青条件 同时满足3个或3个以上 则平多。
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容