Date (Reserved Word)

image\trumpet2.gif Disclaimer

This reserved word returns a numeric expression representing the EasyLanguage date of the closing price of the bar being analyzed. The date is an EasyLanguage date, so it is a numeric expression of the form YYYMMDD, where YYY is years since 1900, MM is the month, and DD is the day of the month.

Remarks

Date returns a numeric value in YYYMMDD format.

Examples

Date returns 1000107 if the day is January 7th, 2000.

Date returns 990412 if the day is April, 12th, 1999.

Additional Example

Date can be used to restrict strategies to certain trading days.

If Date < 990101 then buy this bar on close;

Limits a buy order to take place only on dates before 1999.