Gray is currently on an emergency loan deal from Burnley and made his Addicks debut in the 1-1 draw with Watford on Saturday.
Boss Alan Pardew said, "We've been after him for a while and his little cameo has given me a lift. There's still just a few bits to sort out but I'm 99 per cent sure it will all get sorted.