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

Re: first day of the month



PureBytes Links

Trading Reference Links

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