Wagah border is open for tourists from 12 noon till 6 pm. You can experience the retreat ceremony in these hours specifically.