//從9:09的那根1分K開始
if time>90900 and time<=91000 then begin
//紀錄過去10根1分K的最高價
value1=highest(high,10);
//條件1: 今日開盤價小於昨收,最高價介於今日開盤價與昨收之間,且該根1分K的收盤價大於等於今日開盤價
condition1 = openD(0)<closeD(1)
and value1>openD(0)
and value1<closeD(1)
and close>=openD(0);
end;
//條件2: 9:10後若1分K收盤價大於最高價
if time>91000 and time<130000 then begin
condition2 = close>value1;
end;
//若符合條件1則進場放空1張,若符合條件2則停損
if position=0 and condition1 then setposition(-1, close);
if position=-1 and condition2 then setposition(0, Market);
用此策略回測昨日漲停且可買賣現沖的股票,發現有許多交易都是在9:10的1分K一進場就出場,想請問小幫手這個策略的語法上是不是哪裡有問題呢?


4 評論