Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7142
Shows when to buy and when to sell. Position is opened when the indicator color changes: if there is a green dot - buy, if there is a red dot - sell.Divergence
Displays the situation when the directions of price movement and technical indicators do not coincide. This is mostly seen when the indicator reaches an overbought or oversold area (20;80).