Re: [問題] MC回測取消STOP
※ 引述《hollejacklin (私は不器用です)》之銘言:
請問我在用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
推
06/05 20:33,
06/05 20:33
這個的意思是改成
if condition then begin;
buy 1 contract next bar at price stop;
If marketposition=0 then begin;
sellshort 1 contract next bar at price2 stop;
end;
end;
這樣嗎 可是我改完後並沒有達到我想要的效果
搞不太懂 next bar 的執行流程
→
06/05 22:07,
06/05 22:07
推
06/06 11:48,
06/06 11:48
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.230.218
推
06/07 19:48, , 1F
06/07 19:48, 1F
→
06/07 23:33, , 2F
06/07 23:33, 2F
→
06/07 23:34, , 3F
06/07 23:34, 3F
討論串 (同標題文章)