The average gains and losses over a given period are compared to create the rsi, which oscillates between 0 and 100. Alan. In tempus, erat eget tincidunt elementum.