I want to create a program that
1 - downloads spreadsheet from yahoo finance.
2 - Scans prices to see if buy / sell signal is found.
3 - Alerts me to this fact.
is this possible can any one let me know any hints
I want to create a program that
1 - downloads spreadsheet from yahoo finance.
2 - Scans prices to see if buy / sell signal is found.
3 - Alerts me to this fact.
is this possible can any one let me know any hints
Well how much C do you know, and how much "must" be done in C ?
Because something like
1 - downloads spreadsheet from yahoo finance.
would be getting on for a thousand lines of code in C (if you don't use a library)
But if you're open to any kind of mixed approach, then the first step could be as easy as a single command line such as
wget http://yahoo.com/path/to/spreadsheet.xls
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
thats what i planned on starting with i did 2 modules in university on c one finishing with the creation of our own working shell.
its mainly the other two part that im to sure where to start on.
i would prefer this being short and sweet
Let me see, you created your own working shell, yet you cannot figure out how to search a list of stored values and get a warning if a threshold is met?
it was a few yrs back and i havent touched c since tbh
OK, let's assume you're using Linux (or at a pinch cygwin on windows) and that you have a shell script with an appropriate wget command in.
Having got the file, what format is it in?
If it's a .csv or .txt file, then that's going to be dead easy to deal with.
If not, then you need to tell us what format it is.
And how is "alert" going to work?
- popup on screen
- email message
- text message
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
It will be a csv file.
and i would be happy with it, just producing a txt file with Buy or Sell but would also be interested in a simple email sent with the same output
The exact file which i would want to us is:
http://ichart.finance.yahoo.com/tabl...00&ignore=.csv
Last edited by Adrian K'Ski; 06-02-2012 at 09:02 AM.
I'm confused...are you waiting for someone here to write this for you or what?
no im just showing them what im using i just want a few hints
Hints(1)
Lookup fopen / fgets / fclose for reading the file
Lookup sscanf / strtok for extracting data
Hints(2)
Use a better text processing language like AWK or Perl.
That's 2 of your 3 problem steps solved - start putting in some effort.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
You have to figure out your own strategy. You must have learned that when you programmed your shell, even if it has been a while as you claim. Break your problem down and go one step at a time. If a step seems to big, then break it down further.
Thanks for the people that gave nice advice as for the others that didn't back off, im not a programmer.
im doing a favour for a mate.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
wasting time, only people that take there time to abuse some one using this site to ask for help.
the ones they gave constrictive help thanks.
if you join a thread jsut to abuse me then your not a nice person
> if you join a thread jsut to abuse me then your not a nice person
If you join a forum just to beg for code, you're not a nice person.
I don't think stahta is abusing you, actually, he's reacting as most regulars here would. After finding out that you don't know how to program, you wasted Salem's time because he recommended specific functions and languages (that have no meaning to you).
Also, don't try and bull........ us and say what you've written in the past. You clearly didn't "write a shell".