DeliveryMonth (Reserved Word)
Reserved word used for contracts that expire which returns the month of expiration.
Remarks
The value returned represents any of the 12 calendar months according to the following table:
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December
Examples
DeliveryMonth will return 6 if the technique is applied to the S&P June contract.
DeliveryMonth will return 12 if the technique is applied to the Treasury Bond December contract.
Additional Example
You can exit from a trade on the first day of the month prior to expiration using:
If DeliveryMonth = Month(Date) Then
Sell This Bar on Close;