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

Re: first day of the month



PureBytes Links

Trading Reference Links

Thanks Bob,

Yeah, I actually was going to use the open of the next bar as the exit,
but thanks for looking into it and posting to the group...

Inputs: PositionBasis(True), Amount(0);

If MarketPosition = 1 and Open of next bar > entryprice then exitlong at
Market;
If Month(date tomorrow) <> month(date) then Buy at open;

{SetExitOnClose;}

If PositionBasis Then
 SetStopPosition
Else
 SetStopContract;

SetStopLoss(6000);

----- Original Message -----
From: "Bob Fulks" <bfulks@xxxxxxxxx>
To: <fritz@xxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Friday, July 05, 2002 9:54 AM
Subject: Re: first day of the month


> At 5:16 PM -0600 6/30/02, Gary Fritz wrote:
>
> >TS system code runs at the ***CLOSE*** of the bar.  So your test
> >isn't true until the end of the first day.  Then you buy the NEXT day
> >at the open.
> >
> >Try
> >
> >if Month(Date) <> Month(Date of next bar) then buy at open;
>
> This works. Very clever...
>
> But it will not let you also use an ExitLong order for the Close if
> you refer to the "next bar".
>
> So do not include any exits in your "signal" and include the "Close
> at end of day" signal in your "Strategy". That works.
>
> Bob Fulks
>
>