Nifty Midcap 50 on the close