Message Font: Serif | Sans-Serif
 
UnThreaded | Threaded | Whole Thread (2) | Ignore Thread Prev | Next
Author: Bakulesh Two stars, 250 posts Old School Fool Add to my Favorite Fools Ignore this person (you won't see their posts anymore) Number: of 244  
Subject: Re: Historical Data of BSE SENSEX Components Date: 2/19/2008 1:10 AM
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
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:

if(this.historical){
file = 'update_historical_chart';
}else{
file = 'update_chart';
}

var qs = '/businessweek/research/common/charts/'+file+'.asp?duration='+this.duration+'&
frequency='+this.frequency+'&
freq='+this.freq+'&
scaling='+this.scaling+'&
display='+this.display+'&
exportData='+this.exportData+'&
dMin='+this.dMin+'&
dMax='+this.dMax+'&
uppers='+uM+'&
lowers='+lM+'&
lastColorUsed='+this.lastColorUsed+'&
action='+action+'&
action_value='+action_value;

commonGen.document.location.replace(qs);
-----
(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.

-Bakulesh
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Print the post  
UnThreaded | Threaded | Whole Thread (2) | Ignore Thread Prev | Next

Announcements

Pencils of Promise - Back to School Drive
"Pencils of Promise works with communities across the globe to build schools and create programs that provide education opportunities for children."
Post of the Day:
Berkshire Hathaway

IBM: Is Buffett Wrong, or Brilliant?
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.
Community Home
Speak Your Mind, Start Your Blog, Rate Your Stocks

Community Team Fools - who are those TMF's?
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and "#1 Media Company to Work For" (BusinessInsider 2011)! 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.
Advertisement