The divergence based on the RSI or the MACD is calculated by comparing the RSI/MACD and the price. In case of a bullish divergence : the price go down and the RSI or the MACD is getting up, so this case is called a normal bullish divergence. There are two types of scenarios for the divergence (Hidden, regular).