|
這如何修改:才能通過
var :buy1(0),buy2(0),buy3(0);
if marketposition <> 1 and condition1 then begin
buy1 = medianprice[2];
buy2 = 0;
buy3 = true;
end;
if buy2 > 1 then
buy3 = false else
buy2 = buy2 + 1;
if marketposition = 1 then begin
buy3 = false;
exitlong next bar at market;
end;
if buy3 then
buy next bar at market;
|
|