[問題] MC回測取消STOP

看板Trading作者 (私は不器用です)時間13年前 (2011/06/05 00:52), 編輯推噓3(302)
留言5則, 4人參與, 最新討論串1/3 (看更多)
請問我在用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, , 1F
If condition1 and marketposition=0 then begin
06/05 20:33, 1F

06/05 22:07, , 2F
不懂 這要怎麼取消留在場上的觸價單
06/05 22:07, 2F

06/06 11:48, , 3F
設條件去重設price2的價位到很低,以致於不會觸發
06/06 11:48, 3F

06/06 20:34, , 4F
自己判斷價位,然後改用 this bar
06/06 20:34, 4F

06/06 20:42, , 5F
this bar 只能用close 沒辦法指定
06/06 20:42, 5F
文章代碼(AID): #1DwcBdVe (Trading)
文章代碼(AID): #1DwcBdVe (Trading)