作者hollejacklin (私は不器用です)
看板Trading
标题[问题] MC回测取消STOP
时间Sun Jun 5 00:52:52 2011
请问我在用MC做回测时
有一段语法是
if condition then begin;
buy 1 contract next bar at price stop;
sellshort 1 contract next bar at price2 stop;
end;
如果 next bar 波动太大 例如 open > price and low < price2
可是我的想法是 只要留多仓就好 不打算当天反手
那我要怎麽写才可以取消空单的触价单
谢谢各位解答
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.230.218
1F:推 Daway:If condition1 and marketposition=0 then begin 06/05 20:33
2F:→ hollejacklin:不懂 这要怎麽取消留在场上的触价单 06/05 22:07
3F:推 Xcd15:设条件去重设price2的价位到很低,以致於不会触发 06/06 11:48
4F:推 Rudy:自己判断价位,然後改用 this bar 06/06 20:34
5F:→ hollejacklin:this bar 只能用close 没办法指定 06/06 20:42