PureBytes Links
Trading Reference Links
|
Jim,
Var:EP(0),MP(0);
EP=Entryprice(0);
MP=Marketposition(0);
If MP=1 then exitlong EP-? stop; {Stop loss}
I'm not the code wiz so test it out.
Jimmy
Wednesday, September 15, 2004, 7:18:22 AM, you wrote:
JB> hey,
JB> just a short question:
JB> i want to buy this day at close.
JB> and i want to exitlong the next day xx points above todays high.
JB> a stop must always be in place xx points below my entryprice.
JB> so the trade should always be exited the next day. i'm using eod data.
JB> buy condition and exitlong seems to work but the stoploss condition is
JB> wrong.
JB> what should be coded?
JB> thanks
JB> jim
JB> ......
JB> then begin
JB> buy on close;
JB> end;
JB> exitlong at high + points limit:
JB> { what do i have to write for the stoploss?)
--
Best regards,
Jimmy mailto:jhsnowden@xxxxxxxxxxxxx
|