Anyone spot what im doing wrong?
Code: Select all
[IntraBarOrderGeneration = TRUE]
inputs: starttime(0930), endtime(1555), lastordertime(1556) ;
if time >= lastordertime then buytocover ("EOD_B") next bar at open; if time >= lastordertime then sell ("EOD_S") next bar at open;
if time >= starttime and time <=endtime then begin
//some logic
end;