Here is a design template to know the market close time each day including special hours days. It will accept special hours for any market via a text string and uses built in MarketInfo.SpecialHours for US markets. The last tradeable bar is at preCloseTime using bar+1 notation.
Eugene, Please make a WLD adjustment if recommended.
CODE:
Please log in to see this code.