为什么反复开平仓?求解 [金字塔]
-
咨询内容:
A:VALUEWHEN(WEEKDAY=1 and TODAYBAR=1,open);
DUO:=A+20*MINDIFF;
KONG:=A-20*MINDIFF;
KAIDUO:HIGH>DUO;
KAIKONG:LOW<KONG;
buy(KAIDUO AND HOLDING = 0,1,MARKET);
sell(WEEKDAY=5 AND TIME= CLOSETIME(0) or close<=A,holding,MARKET );
BUYSHORT(KAIKONG AND HOLDING = 0,1,MARKET);
SELLSHORT(WEEKDAY=5 AND TIME= CLOSETIME(0) or close<=A,holding,MARKET );为什么总是反复开平仓呢 不能一直持续到周五平仓呢 -
金字塔客服:
1,公式用在什么周期上交易?
2,贴下下单日志
-
用户回复:
条件成立,根据你的需求,
A:VALUEWHEN(WEEKDAY=1 and TODAYBAR=1,open); - 网友回复:
您好,我想用在五分钟图, 用价格超过这一周的开盘价+20跳做多 价格低于这一周开盘价-20跳做空 做多做空止损都是20跳 如果盈利则一直持仓到本周收盘 平仓 请求帮忙编写一下 谢了很久了不成功
- 网友回复:
调整下,和上面给你的基本一致,你之前说的重复开仓,这个是你自己的条件限定开仓条件的问题。这个同样存在。
A:CALLSTOCK('AG00' ,VTOPEN ,7 , 0);
DUO:=A+20*MINDIFF;
KONG:=A-20*MINDIFF;
KAIDUO:HIGH>DUO;
KAIKONG:LOW<KONG;
cond:close<=A;
aa:time;
buy(KAIDUO AND HOLDING = 0,1,MARKET);
sell(WEEKDAY=5 AND TIME= 185500 or OPENPROFIT<0,holding,MARKET );
BUYSHORT(KAIKONG AND HOLDING = 0,1,MARKET);
SELLSHORT(WEEKDAY=5 AND TIME= CLOSETIME(0) or OPENPROFIT<0,holding,MARKET );
DUO:=A+20*MINDIFF;
KONG:=A-20*MINDIFF;
KAIDUO:HIGH>DUO;
KAIKONG:LOW<KONG; cond:close<=A;
buy(KAIDUO AND HOLDING = 0,1,MARKET);
sell(WEEKDAY=5 AND TIME= CLOSETIME(0) or close<=A,holding,MARKET );
BUYSHORT(KAIKONG AND HOLDING = 0,1,MARKET);
SELLSHORT(WEEKDAY=5 AND TIME= CLOSETIME(0) or close<=A,holding,MARKET );你在图表上输出具体条件看下。红色部分基本恒成立。自己试着分析条件
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容