PureBytes Links
Trading Reference Links
|
works perfectly - thx (I have never needed or used that feature before)
----- Original Message -----
From: "Jimmy" <jhsnowden@xxxxxxxxxxxxx>
To: "Chris Evans" <evanscje@xxxxxxxxxxxxx>; "Omega-List"
<omega-list@xxxxxxxxxx>
Sent: Wednesday, December 08, 2004 9:53 AM
Subject: Re: 2 order exits
>
> Chris,
>
> Instead of Exitlong ("Time ES1 LX") currentcontracts/2 contracts at
market;
> couldn't you just say Exitlong("Time ES1 LX") from entry("ES1") at market;
>
> I'm not totally clear on what your system bought or sold or holds.
> You may need a switch to control the second exit. If you have the
> condition to exit then turn off something then exit. The switch goes
> off and then you can't exit again.
>
> What am I doing? I'm no code expert.
>
>
> Jimmy
>
> Wednesday, December 8, 2004, 10:39:27 AM, you wrote:
>
>
> CE> I have a system where there are 2 entry signals that I labelled ES1
(entry
> CE> signal 1 ) and ES2 with 2 Vars that are true/false when they are
triggered.
> CE> I count the number of days I have been in each trade using counters
named
> CE> CounterES1 and CounterES2 ..I then need a time-out exit so I wrote:
>
> CE> If CounterES1=exitlen and ES1=true and ES2=true then begin
> CE> Exitlong ("Time ES1 LX") currentcontracts/2 contracts at market;
> CE> Exitshort ("Time ES1 SX") currentcontracts/2 contracts at market;
> CE> ES1=false;
> CE> CounterES1=0;
> CE> end;
>
> CE> The exit order is then being filled twice on the same bar??? once for
what I
> CE> can only guess is the correct number of contracts and then again for
the
> CE> remaining number less 6 or some arbitrary number .. My contract size
in each
> CE> entry order = 1000/ATR(20).
> CE> I need to get the exit order to ONLY sell half the position.. then, if
the
> CE> second signal enrty times out then it will exit after "exitlen" days
from
> CE> its entry date.
>
> CE> any ideas??
> CE> CE
>
>
>
>
> --
> Best regards,
> Jimmy mailto:jhsnowden@xxxxxxxxxxxxx
>
>
|