The Nifty Midcap 150 index hit an all-time high on Tuesday, extending its recent record-breaking run led by a run-up in shares of public sector companies.