You are correct in that, the "He" in verse 26 is referring to "The Ruler" of the people. However, it speaking about that future antichrist that is to come. In Matt.24:15, Jesus quoted Daniel 9:27 saying,
"So when you see standing in the holy place ‘the abomination of desolation,’ described by...