> Even this doesn't work:
>
> if blah blah blah... then buy this bar at close;
> exitlong at entryprice-1 stop:
>
Try this:
if barstatus(1) = 2 then begin
if blah blah blah... then buy this bar at close;
exitlong at entryprice-1 stop:
end;