Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Average Range Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
MercenarySniper
Posted : Tuesday, February 4, 2014 10:23:32 AM
Registered User
Joined: 3/26/2012
Posts: 45

I have the PCF to get the range for each of the last 5 days:

H1*100/L1-100
H2*100/L2-100
H3*100/L3-100
H4*100/L4-100
H5*100/L5-100
 
However, what would be the PCF to get the average of these?
Bruce_L
Posted : Tuesday, February 4, 2014 10:37:59 AM


Worden Trainer

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

You need to add it all together and then divide by 5:

100 * ((H1 / L1 + H2 / L2 + H3 / L3 + H4 / L4 + H5 / L5) / 5 - 1)

You could also just average the highs and lows to get a shorter formula, but it would not exactly match because if the division in each term:

100 * (AVGH5.1 / AVGL5.1 - 1)

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



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
MercenarySniper
Posted : Tuesday, February 4, 2014 10:38:16 AM
Registered User
Joined: 3/26/2012
Posts: 45

Would this be it?

(H1*100/L1-100) + (H2*100/L2-100) + (H3*100/L3-100) + (H4*100/L4-100) + (H5*100/L5-100) /5

Bruce_L
Posted : Tuesday, February 4, 2014 10:39:56 AM


Worden Trainer

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

You would need to re-arrange the parantheses to make your version work correctly:

(H1*100/L1-100 + H2*100/L2-100 + H3*100/L3-100 + H4*100/L4-100 + H5*100/L5-100) /5



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
MercenarySniper
Posted : Tuesday, February 4, 2014 10:41:34 AM
Registered User
Joined: 3/26/2012
Posts: 45

Ah, okay...excellent.   Thanks so much, Bruce!

Bruce_L
Posted : Tuesday, February 4, 2014 10:50:01 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.