PureBytes Links
Trading Reference Links
|
Or more briefly...
if CONDITIONS-ARE-RIGHT-FOR-LONG and MarketPosition = 0 then begin
{go long order here}
end;
if CONDITIONS-ARE-RIGHT-FOR-SHORT and MarketPosition = 0 then begin
{go short order here}
end;
Regards,
Aaron Schindler, CFA
Schindler Trading
1243 Yorkshire Lane
Barrington, IL 60010
telephone: 847-719-2846
fax: 847-719-2846
email: aaron@xxxxxxxxxxxxxxxxxxxx
www.schindlertrading.com
----- Original Message -----
From: "Mike Eggleston" <mikee@xxxxxxxxxxxxxx>
To: "KungFuTrader" <KungFuTrader@xxxxxxxxxxx>
Cc: <omega-list@xxxxxxxxxx>
Sent: Saturday, August 24, 2002 12:24 PM
Subject: Re: EL code problem
> On Sat, 24 Aug 2002, KungFuTrader wrote:
>
> > Hi List,
> >
> > I was hoping someone might be able to lend me a hand. I am
> > trying to do some back testing but keep on running into the problem
where I
> > have multiple entries. What I would like to do is if I'm in a long
trade,
> > then inhibit any short entry signals until my long exit signal, and vice
> > versa for a short. Any ideas would be appreciated.
> >
> > -KungFuTrader.
> >
>
> vars: intrade(false), inlong(false);
>
> if CONDITIONS-ARE-RIGHT-FOR-LONG and intrade = false then begin
> intrade = true;
> inlong = true;
> end;
>
> if CONDITIONS-ARE-RIGHT-FOR-SHORT and intrade = false then begin
> intrade = true;
> inlong = false;
> end;
>
|