Markets ended higher for the third consecutive session on Wednesday, the weekly derivatives expiry day. The BSE Sensex ended at 51,279.51, up 254.03 points or 0.50%. The Nifty closed at 15,174.80, up 76.40 points or 0.51%,