When you Sell a stock, the trade value will immediately be available.  You can use the available funds to place your Buy order.  Please note as per standard ASX processes, it will take 2 business days for a Sell settlement to be processed to your nominated bank account.