Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

OBV oscillator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
julian1000
Posted : Wednesday, August 20, 2014 2:25:44 PM
Registered User
Joined: 9/12/2010
Posts: 121

Hello.

 

Can you provide a pcf for a OBv oscillator?

 

Thanks

Bruce_L
Posted : Wednesday, August 20, 2014 4:23:20 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

As far as I can tell, an OBV oscillator is just OBV minus its moving average. So an OBV oscillator based on a 20-period simple moving average could be written as follows.

OBV - OBV20

While you would need to use the XAVG() function if the OBV oscillater is based on a 30-period exponential moving average.

OBV - XAVG(OBV,30)

PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
julian1000
Posted : Thursday, August 21, 2014 7:10:13 AM
Registered User
Joined: 9/12/2010
Posts: 121

Thank you for the quick esponse.

 

What I was looking is an OBV oscillator around a zero line. I think you math people call it 'normalized'.  Tradingview provides one but dont know how to implement it on TC2000.

Bruce_L
Posted : Thursday, August 21, 2014 9:40:32 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I have no way of finding out what Tradingview is doing, but the formulas given in my previous post do in fact return an oscillator around a zero line.

You could divide the results by average volume if you wanted to eliminate the effect of the differences in volume magnitude between symbols.

So OBV - OBV20 would become something like the following.

(OBV - OBV20) / AVGV20

And OBV - XAVG(OBV,30) would become something like the following.

(OBV - XAVG(OBV,30)) / XAVGV30



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
julian1000
Posted : Thursday, August 21, 2014 10:36:02 AM
Registered User
Joined: 9/12/2010
Posts: 121

ok. i'll try, thank you for the effort.

diceman
Posted : Thursday, August 21, 2014 12:15:00 PM
Registered User
Joined: 1/28/2005
Posts: 6,049

From what Ive seen it looks like its:

OBV-20ema.

 

Which would be the second PCF fom Bruce.

Just change the 30 to 20.

 

 

Thanks

 

 

MoreAces
Posted : Sunday, August 31, 2014 9:53:27 AM
Registered User
Joined: 8/23/2013
Posts: 245


julian1000 very interesting idea.  I use OBV and draw trendlines on the plots and look for break of trendline as confirmation that a change of direction of the price will continue. These formulas may have some benefit in scanning for the directions change.

Thanks to Bruce L and diceman as well

MoreAces
Posted : Sunday, August 31, 2014 10:13:35 AM
Registered User
Joined: 8/23/2013
Posts: 245

diceman I am confused on this one (the 2nd one) (OBV - XAVG(OBV,30) / XAVGV30 I get an error on the formula (so I added a " ) " to the rightside which remove my error but when I use this with 10 or 20 or 30 I get the same exact plot AND it is also the same exact plot that the On Balance Volume indicator plots as well the first formula does change plots and is different from the obv plot

diceman
Posted : Sunday, August 31, 2014 11:16:08 AM
Registered User
Joined: 1/28/2005
Posts: 6,049

Your PCF is missing a parenthesis.

This should work:

(OBV - XAVG(OBV,30))/XAVGV30

 

 

 

Thanks

 

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.