執行頻率1分K,未開逐筆洗價,
if barfreq<>"Min"or barinterval<>1 then return;
condition1= trueall(close>close[1],3) and volume>2500;
condition2=volume>2000;
if currenttime>=090000 and currenttime<120000 then begin
if condition1 then begin
if position=0 and filled=0 then begin setposition(-1,market);
end;
if position=-1 and filled=-1 and condition2
then begin setposition(0,market);
end;
end;
end;
檢查的時候發現系統對volume的條件只會觸發volume>2500,對volume>2000這個條件不會觸發,請問語法應該怎麼修正?
2 評論