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.
Questo script è pubblicato con codice protetto, ma puoi comunque usarlo gratuitamente. Mettendolo tra i preferiti potrai applicarlo al grafico, senza però la possibilità di visualizzare o modificare il codice sorgente.
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.