The Sensex is based on the weighted movement of its constituents. Gains in high-weight stocks can offset falls in other stocks.