Divergence identification is probably one of the most famous trading signals around and has been on my list of challenge indicators for quite a while. This particular solution offers the pivot detection algorithm that I have created for pivot analyzer and uses that in the context of finding divergences. The code offers an approach where any plot can be analyzed in respect to price. Once the algo detect a series of two pivots that are going up or down it will then review the same spots on any plot that you assign. It can be an indicator on a separate panel such as RSI or Stochastic as well as any indicator on the same pane such as EMA or even a secondary data series.