Create a algo that scan top gainer and loser

sir i want to create a algo that find top gainer and loser, % change, volume % change, Commodity Channel Index indicator value. ad print top 5 gainer and loser , % change, volume % change and CCI value
please help