It makes it easier to detect DIVERGENCES.
// OBV Oscillator
//
//
//
// Periods = 20
Periods = max(1,min(999,Periods))
//
MyOBV = OBV(close)
Sma = Average[Periods,0](MyOBV)
Diff = MyOBV - Sma
RETURN Diff AS "Difference"
You must be logged in to post a comment.
Sure, but you should start a new topic on the Probuilder support forum. Thank you :)
An updated version can be found here https://www.prorealcode.com/topic/conversion-of-pine-script-obv-osc-0-1/#post-177592
Bonjour Robertogozzi, cet indicateur est interessant mais serait-il possible de marquer la divergence par une fleche (par ex ) sur le graphique automatiquement quand cette configuration apparait ? Cdlt