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 |

Averaging per week or day Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sasworldwide
Posted : Tuesday, January 26, 2010 8:03:35 PM
Registered User
Joined: 7/30/2008
Posts: 30
could you please help me to write a code for SF which plots a graph taking gains and losses per week for th same symbol over year and averages these gains or losses for the same weeks for the past 10 years. i.e. week 1 is averaged over all weeks 1 for the past 10 years (or whatever data is avilable), week 2  is averaged, so on.

If the same code can be applied to averaging gains (losses)  for every day over 10 years then it would be even better.

thank you.
Bruce_L
Posted : Wednesday, January 27, 2010 11:39:37 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You should be able to Open the attached Chart directly into a running copy of StockFinder. The portion of interest to you would probably be the bottom Pane. The Average Rates of Change listed are for the last twenty years (assuming the symbol has that much data) and display the Average Rate of Change for the Calender Date of the Plot over the number of Calender Days of the Period for the Rate of Change (so the 7-Period version is a Week and the 1-Period version is a Day).

Attachments:
Cycler.sfChart - 99 KB, downloaded 659 time(s).



-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.