Saudi stock market ends trading week up by 0.5%