It was written by a Midlothian folkie whose name nobody I know can remember. Not Rod Paterson anyway, though I'm sure he sings it brilliantly. It's based on a song from Northumberland.
It's either Newtongrange or Nitten but not Nittengrange. I live there.