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

Re: Buy on Specified Date



PureBytes Links

Trading Reference Links

Do you have dates in your input data?  Then how about:

If Date = ELDate(2000, 12, 17) then buy at market;

to buy on, say, last December 17th?

Or you can skip the ELDate function and just use:

If Date = 1001217 then buy at market;

because dates are stored in TS as YYYMMDD where YYY is the number of years
since 1900.

Aaron Schindler


----- Original Message -----
From: "Larry Viles" <larryv@xxxxxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Monday, October 01, 2001 3:23 PM
Subject: Buy on Specified Date


> I would like to write a simple signal in TS2000i to force a buy or sell on
a
> specific date as set in an input. This would allow me to test various exit
> strategies at key dates.
>
> I envision something like converting the current bar number to the
> corresponding date, but can't seem to be able to put it together.
>
> Any help would be much appreciated.
>
> Larry
>
>