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

Re: exitlong shenanigans



PureBytes Links

Trading Reference Links

I often use something like this if I would like to exit before the close of
a market:

if marketposition <> 0 and time >= CalcTime(Sess1EndTime, -0010) then begin
        ExitLong this bar on close;
        ExitLong this bar on close;
end;

You could also try to write:
if time >= 1630

/Stefan Johansson
----- Original Message -----
From: "Bill Wynne" <tradewynne@xxxxxxxxxxx>
To: <dartingriver@xxxxxxxxxxxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Tuesday, January 22, 2002 4:38 PM
Subject: Re: exitlong shenanigans


>
> >From: "Rob Marsh" <dartingriver@xxxxxxxxxxxxxxxxxxxxx>
> >To: "omega list" <omega-list@xxxxxxxxxx>
> >Subject: exitlong shenanigans
> >Date: Fri, 5 Oct 2001 20:44:17 +0100
>
> Check your clock: "Date: Fri, 5 Oct 2001 20:44:17 +0100"
>
> >
> >Maybe I've been staring at it too long but what's wrong with the
following
> >line?
> >
> >if marketposition(0) =1 and time = 1630 then exitlong;
> >
> >All I want to do is exit any long positions at half past four, for crying
> >out loud.
>
> If you are in the USA, then most markets are closed at "half past four."
>
> try: if time = 1530 then exitlong at market;
>
> BW
>
> >
> >Rob.
> >
> >
> >
> >
>
>
>