[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exits on entry bar



PureBytes Links

Trading Reference Links

I had asked for help on coding for exits on the entry bar.  For those who
have had similar problems, here is a solution:

Regards,

Barry Silberman

==========================================================
{Long entry and exit on entrybar}

If  this happens then begin
            buy next bar at (conditionxx) stop;
            sell next bar at  (conditionxx) limit;   {to exit on entry bar}
end;

{short entry and exit on entrybar}

If this happens then begin
    sellshort next bar at (conditionyy) stop;
    buytocover next bar at (conditionyy) limit;    {to exit on entry bar}
end;