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 |

How do I write 34 period XAVG of (H+L+C)/3 in pcf Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
esc
Posted : Thursday, August 18, 2016 3:27:59 AM
Gold Customer Gold Customer

Joined: 3/11/2013
Posts: 24

A new TC users asked me to help him write some cross-over pcfs.  One of the ones he wants to use is the 34 period Xavg of the (H+L+C)/3 crossing other (H+L+C)/3 XAvg lines.

I can probably create them by first adding all those averages to a chart, creating a scan condition from them, saving the scan and then deleting all those lines.  However, this ought to be notable in the PCF language and save considerable work.

So how do you notate a 34 period Xavg of the (H+L+C)/3 as an example?

Thanks Bruce (or whomever).

diceman
Posted : Thursday, August 18, 2016 11:35:32 AM
Registered User
Joined: 1/28/2005
Posts: 6,049

Try:

 

(XAVGH34+XAVGL34+XAVGC34)/3

 

 

Thanks

 

esc
Posted : Thursday, August 18, 2016 9:09:18 PM
Gold Customer Gold Customer

Joined: 3/11/2013
Posts: 24

That's it...thanks diceman!

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.