Machoke does not evolve at a level in Pokemon Diamond. Like several other Fighting types, it evolves only when traded — hand it over to another player and it comes back on their end as Machamp.
That trips up a lot of players who keep levelling it up expecting a change at some threshold. There is no threshold; the level is irrelevant.
If you have no one to trade with, look for someone online running a trade board. It takes about thirty seconds once you find a partner.