% of stocks outperforming the S&P 500

I am wondering how to script the % of stocks outperforming the S&P 500, using the breadth module.
Any help would be much appreciated.

use the RIC function - RIC(DATESEL=Last 6 Months) > 100. Set breadth module to percent