真的很謝謝您的回答><" 方便的話能不能幫小弟看看下面這個到底那裡錯了 ~"~
這是我第一次試寫的程式 ~~~
input : BTime(1500),ETime(0200);
var :High(0),Low(0);
if BTime < Time and Time <ETime then begin
if price > high[2]+4 point then buy this bar at high[2]-2 points limit;
if price < low[2]-4 point then sell this bar at low[2]+2 points limit;
end;
if marketposition = 1 then begin
exitlong this bar at EntryPrice + 3 points limit;
if marketposition = -1 then begin
exitshort this bar at EntryPrice - 3 points limit;
end; |