Most divergence indicators identify divergences by identifying two points within some look back period on an oscillator and two points on the price chart and if the slope of those two points are going in opposing directions than a divergence is identified
This take a different approach. This looks at the slope of the price and the oscillator over multiple points within the look back period and averages those slopes to get a more comprehensive value. A divergence isn't just two points, it is also everything that happened in-between those two points.
From there is compares the averages of the oscillator slope and the price slope and looks for extremes.
The default value for the extremes are 90 and 10 but some oscillators might need to be 99.99 and 0.01 or maybe 70 30. the smoothening of the oscillator you decide those values.
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.