Whether you buy or sell your bitcoin/altcoin on any exchange platform the value you get while making a trade is locked at that moment, regardless of whatever the price will be between the time you execute the trade and received your money in the bank. As the market is fluctuating every instant, so you will exactly get that amount of money the moment you trade. So yes you will get 18000$ in your bank account.
