OBV oscillator
Forums › ProRealTime English forum › ProBuilder support › OBV oscillator
- This topic has 9 replies, 3 voices, and was last updated 1 year ago by robertogozzi.
Tagged: Divergence, divergences, OBV, On Balance Volume, oscillator
-
-
08/04/2021 at 11:26 PM #174690
I don’t think that the (rather helpful) OBV oscillator has been included yet in the PRT library.
Anyone happy to translate the tradingview code? It is freely available but please give credit to its creator. See below:
// @author LazyBear
//
// Appreciate a note if you use this code anywhere.study(title=”On Balance Volume Oscillator [LazyBear]”, shorttitle=”OBVOSC_LB”)
src = close
length=input(20)
obv(src) => cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
os=obv(src)
obv_osc = (os – ema(os,length))
obc_color=obv_osc > 0 ? green : red
plot(obv_osc, color=obc_color, style=line,title=”OBV-Points”, linewidth=2)
plot(obv_osc, color=silver, transp=70, title=”OBV”, style=area)
hline(0)08/05/2021 at 1:41 AM #174694Just search the forum for OBV and you will get it.
Use the search box that opens when your mouse hovers your avatar on the upper right corner of the blue toolbar.
08/05/2021 at 9:28 PM #174789Thank you for the quick response Robert. Unfortunately the search as described above does not provide me with the “OBV cycle indicator” or similar, as coded above (just screeners, divergences, PPO on OBV etc.) The standard OBV in PRT is not helpful either, as it does not allow for down-adjustment of the (20) standard period unfortunately. Above indicator allows adjustment of a short and long OBV period. (See tradingview settings of the indicator above).
Any way above can be transcribed?
08/06/2021 at 3:22 AM #174797Probably it can be converted, but I can’t.
Nicolas knows several languages and takes care of that, he will tell you asap.
09/14/2021 at 4:16 PM #177567Converted On Balance Volume Oscillator
11/12/2022 at 10:57 AM #204003Bonjour à vous à partir de l’indicateurje souhaite intégrer à un screener la condition “Différence est supérieure à Ma3” or le screener ne me retourne aucune valeur.myDifference, myma3 = CALL “On Balance Volume Oscillator2″[20, 14]
c1 = (myDifference > myma3)
SCREENER[c1] (Variation AS “% Barre prec”)Avez vous une idée?Bien cordialementRégishello to you from flag
I want to integrate the condition “Difference is greater than Ma3” into a screener, but the screener does not return any value to me.
myDifference, myma3 = CALL “On Balance Volume Oscillator2″[20, 14]
c1 = (myDifference > myma3)
SCREENER[c1] (Variation AS “% Bar prev”)
Any idea? Sincerely Regis
11/12/2022 at 11:17 AM #204005Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 🙂
11/12/2022 at 11:34 AM #204006It’s better to embed custom indicators into your screener, rather than CALLing it:
1234567891011121314151617Periods = 20Periods2 = 14MyOBV = OBV(close)ma1 = 0IF BarIndex > max(Periods,Periods2) THENSma = Average[Periods,0](MyOBV)Diff = MyOBV - SmaONCE wmaPERC = 1 / Periods2//ONCE maP = max(1,round(exp(0.5*log(Periods2))))ma1 = (Diff * wmaPERC) + (ma1[1] * (1 - wmaPERC)) //Wilder Average 1//ma2 = average[maP,0](ma1)ma3 = ma1 * exp(0.15*log(Periods2))ENDIF//myDifference, myma3 = CALL "On Balance Volume Oscillator2"[20, 14]//c1 = (myDifference > myma3)c1 = Diff > ma3SCREENER[c1] (Variation AS "% Bar prev")11/12/2022 at 6:42 PM #20403411/12/2022 at 10:12 PM #204041Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 🙂
-
AuthorPosts
Find exclusive trading pro-tools on