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 find the average % difference between Hi and Low Weekly for 3 weeks? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cwdtrader
Posted : Wednesday, March 25, 2015 3:18:14 PM
Registered User
Joined: 2/5/2013
Posts: 8

What I would like to do is to be able to sort in a column the price difference between Weekly High minus weekly low over say three weeks, to find how much difference on average for 3 weeks .

Example: 2 weeks ago  10.50H 9.45L = 1.05 / 9.45 = 11.11%.  1 weeks ago 10.95H - 10.35L = .60 / 10.35 = 5.79%. Current week  11.40 - 10.35 = 1.05 / 10.35 = 10.14%.     

11.11% + 5.79% + 10.14% = 27.04% / 3 = 9.01% .  Giving a return of 9.01% rise/ gain  for the average of 3 weeks, based on low of each week. 

I need to know how to write the PCF so I can add it as column in a watch list.

Bruce_L
Posted : Wednesday, March 25, 2015 3:26:51 PM


Worden Trainer

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

Please try the following Indicator Formula using a weekly time frame.

100 * ((H / L + H1 / L1 + H2 / L2) / 3 - 1)

Or the following Indicator Formula using a daily time frame.

100 * ((MAXH5 / MINL5 + MAXH5.5 / MINL5.5 + MAXH5.10 / MINL5.10) / 3 - 1)

Note that these are different things. The first is looking at calendar weeks running from Monday through Friday including the current week even if we haven't hit Friday yet.

The second is using 5 trading days instead of calendar weeks.

The results should match on Fridays where there have not been any Market Holidays during those three weeks.

PCF Formula Descriptions



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cwdtrader
Posted : Wednesday, March 25, 2015 3:47:33 PM
Registered User
Joined: 2/5/2013
Posts: 8

THANK YOU SO VERY MUCH

Bruce_L
Posted : Wednesday, March 25, 2015 3:51:55 PM


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.