Divergence is a powerful tool for detecting price reversal points from support and resistance zones. It usually gives us a relatively early signals compared to those given by moving average indicators. It can be successfully applied to many technical indicators and end up with good results.
This indicator will plot divergence lines between the price and OsMA indicator. It will give buy/sell signal according to the type of divergence that was detected. The indicator also is capable of drawing divergence lines for the whole history prices located within a specific chart.

Bullish divergence will be plotted with green lines on both price and OsMA idicator windows.

Bearish divergence will be plotted with red lines on both price and OsMA idicator windows.
Changes to Version 1.5:
Changes to version 2.0:
Version 2.1:
i-5days
5days indicator marks the first bar of each new day.
i-OneThird
i-OneThird indicator highlights bullish and bearish candles in HeikenAshi style.
i-AMA-Optimum
Kaufman's AMA with optimization for the long periods.
FX5_MACD_Divergence
This is another flavour of the original divergence indicator. It detects divergence between price and MACD indicator and gives Buy or Sell signals according to the divergence type.