The nearest expiration date for US Dollar Index® Futures is Jun 19, 2017.
The best time to sell a futures contract is when you've already made money on the investment, but still have plenty of time left before the expiration date. Thus, a good option would be to sell US Dollar Index® Futures before Jun 19, 2017.