I had the exact same situation and they would not count it. It wasn’t even my only capital gains. They don’t seem prepared to accept any capital gains. They only cared about seeing income that was deposited monthly even though that is clearly not the rule. I had capital gains from the sale of a house and from the sale of stock. I easily met all the requirements but they still denied me and it took them 5 months to process it even though the websites says 20 working days.