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 |

Histogram of Exp. TSV and its Average Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
yazz
Posted : Monday, January 20, 2014 11:23:50 PM
Registered User
Joined: 9/20/2010
Posts: 16

I want to create a Histogram of the difference between a 12 day Exponential TSV and its 6 day Simple Average. I tried XAVG(TSV1.1,12) - AVG(TSV,6); it does not give corret results.  XAVG(TSV1.1,12) - AVG(XAVG(TSV1.1,12),6) gives Syntax Error

brucecj
Posted : Tuesday, January 21, 2014 2:48:09 PM
Registered User
Joined: 9/27/2010
Posts: 11

This does not give a syntax error.  XAVG(TSV,12)-AVG(TSV,6)    ....but does it give what you want plotted as a histogram?

Bruce_L
Posted : Tuesday, January 21, 2014 2:51:11 PM


Worden Trainer

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

An Indicator Formula for the difference between a 12-day exponential TSV and its 6-period simple moving average can be written as:

XAVG(TSV,12) - XAVG(TSV6,12)

You can use this as the Formula in a Custom PCF Indicator with the Plot Style set to Histogram to plot this as a Histogram on the charts in TC2000.

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



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
yazz
Posted : Wednesday, January 22, 2014 9:31:41 AM
Registered User
Joined: 9/20/2010
Posts: 16

Thanks, Bruce.

 

bruceci, it did not give the correct answer.

Bruce_L
Posted : Wednesday, January 22, 2014 10:10:28 AM


Worden Trainer

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

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.