MC回測取消STOP - 財經

Table of Contents

※ 引述《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

可是我的想法是 只要留多倉就好 不打算當天反手

那我要怎麼寫才可以取消空單的觸價單

謝謝各位解答

--

All Comments

Megan avatarMegan2011-06-09
If condition1 and marketposition=0 then begin
Rebecca avatarRebecca2011-06-11
不懂 這要怎麼取消留在場上的觸價單
Sierra Rose avatarSierra Rose2011-06-15
設條件去重設price2的價位到很低,以致於不會觸發
Ophelia avatarOphelia2011-06-18
這樣的邏輯,績效一定會更好,不過實際上則不一定
William avatarWilliam2011-06-23
我的邏輯只是避免回測失真 日棒看不出是先高後低
Susan avatarSusan2011-06-26
還是先低後高