我把K棒內委託開啟
進場語法是
if ( time >= 0900 and time <= 0905 ) OR ( time >=1000 and time <= 1005 ) and condition1 then begin
if condition2 then buy next bar at market ;
if condition3 then sellshort next bar at market ;
end ;
在任何時間只要符合 condition1 他就會進場
要如何解決這個問題
if ( ( time >= 0900 and time <= 0905 ) OR ( time >=1000 and time <= 1005 ) ) and condition1 then begin