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

short system coding question



PureBytes Links

Trading Reference Links

hey,

just a short question:

i want to buy this day at close.
and i want to exitlong the next day xx points above todays high.
a stop must always be in place xx points below my entryprice.

so the trade should always be exited the next day. i'm using eod data.

buy condition and exitlong seems to work but the stoploss condition is
wrong.
what should be coded?
thanks
jim

......
then begin
buy on close;
end;

exitlong at high + points limit:

{ what do i have to write for the stoploss?)