Message Font: Serif | Sans-Serif
No. of Recommendations: 0
Okay at last I found where it is reloading the historical data. I found following javascript code snippet I found in interactive.js:

file = 'update_historical_chart';
file = 'update_chart';

var qs = '/businessweek/research/common/charts/'+file+'.asp?duration='+this.duration+'&

(Warning: since string assignment is too long I inserted linebreaks after each ampersand (&). So if you want to play with this better get interactive.js from site or remove linebreaks I inserted.)

Lacking any real knowledge of javascript I do not know how to work this into a workable URL for use in my PowerBasic program. I have been wanting to learn javascript but nothing motivated me. This work can be that motivation I have been waiting for. My immediate requirement is to be able to use a stock picking algorithm I have been using for US and UK markets. Basically these were using comparison charts comparing various components of main national indices (DJIA for US, FTSE100 for UK, etc). Since Yahoo permits on their charts periods like 5Y, 2Y, 1Y, 6M, 3M etc idea was to use same periods (but of course when one does things programmatically one is free to choose any periods). A stock will not be picked if it did not perform better than main index in all these charts starting with 5Y. If at any point we are left with null set (set theory) then we worry because market is bearish if this happened in 3M or longer chart. Else we look at last non-null set. Them are our picks of the day. Of course I also use other analytic techniques. They are statistical and too involved to go into at this point. Later.

Hope above information is useful to somebody reading this.

Print the post  


What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and Glassdoor #1 Company to Work For 2015! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.