PureBytes Links
Trading Reference Links
|
>From: "Mel F" <melsmail@xxxxxxxxxxx>
>I am trying to exit on the bar of entry only using following code
>Buy{setup condition} next bar at open + Value1;
>In a separate signal I have two exits as follows
>If marketposition <> 1 then begin
> ExitLong("1stDayProfit") Open tomorrow + Value10 limit;
> ExitLong("1stDayLoss") Open tomorrow - Value20 stop;
>end;
The way you have it written, if marketposition is equal to one (meaning
you're long), those long exits will never be executed. If you change the
criteria to " If Market positions=1 then begin" , then those long exits may
be executed.
|