LastTradingDate (Reserved Word)
Refers to the last day an option, future, position leg, or asset may be traded.
LastTradingDate
Example
If DateToJulian( LastTradingDate ) - DateToJulian( Date ) < 5 then Alert("Less than 5 trading days left");