DeliveryYear (Reserved Word)

image\trumpet2.gif Disclaimer

Reserved word used for contracts that expire which returns the year of expiration.

Remarks

The value returned by DeliveryYear is a four-digit year.

Examples

DeliveryYear will return 1998 if the technique is applied to the S&P June ’98 contract.

DeliveryYear will return 1999 if the technique is applied to the Treasury Bond March ’99 contract.

Additional Example

You can exit from a trade on the first day of the year prior to expiration using:

If DeliveryYear = Year(Date) Then
 
Sell This Bar on Close;