The nearest expiration date for Gold Futures (Oct 2017) is Oct 27, 2017.
Traders prefer to sell futures contracts when they've already made money on the investment, but still have plenty of time left before the expiration date. Thus, many consider it a good option to sell Gold Futures (Oct 2017) before Oct 27, 2017.