Stock delisting date or futures contract expiration date
Notes
When using CSI Futures continuous contract data, InfoExpiry returns the expiration date of the individual contract that would be held on the date of the current bar for which the formula is being evaluated.
When using Norgatefutures data, InfoExpiry behaves the same way for continuous series, returning the expiration date of the underlying contract held on the current bar; for an individual contract symbol it returns that contract's own expiration date.
With Norgate stock data, InfoDelist shows the delisting date for delisted symbols.
To provide this field in your own SymInfoFile, use the DelistDate column.
Example
NearExpiry: Days(BarDate, InfoExpiry) < 30
Days until contract expiration or stock delisting date.