Tag Archives: stocks

Graph currency rates over time in C#

This example, which shows how to graph currency rates for a specific currency, is a bit longish. Sorry about that. It uses Yahoo Query Language (YQL), which you can use to perform a wide variety of queries on Yahoo’s data. … Continue reading

Posted in finance, internet, mathematics, web | Tagged , , , , , , , , , , , , , , , , , , , , , , , | 3 Comments

Get currency exchange rates in C#

This example shows how you can get currency exchange rates from finance.yahoo.com. When it starts, the program uses the following code to get the currency exchange rates. // Get the currency symbols. private void Form1_Load(object sender, EventArgs e) { string … Continue reading

Posted in finance, internet, mathematics, web | Tagged , , , , , , , , , , , , , , , , , , , | 3 Comments

Get stock prices from different exchanges in C#

The example Get stock prices from the internet in C# shows how to download stock prices from download.finance.yahoo.com. It builds a URL of the following form to get prices for MCI, DIS, COKE, and PEP: http://download.finance.yahoo.com/d/quotes.csv?s=MCI+DIS+COKE+PEP&f=sl1d1t1c1 To get prices from … Continue reading

Posted in finance, internet, mathematics, web | Tagged , , , , , , , , , , , , , | 1 Comment

Test investment strategies with Dow Jones data in C#

Important Note: I am not a tax or investment professional so you need use your own judgement when evaluating these investment strategies. I don’t even pretend to understand this stuff. This is a very simple tool for playing with numbers … Continue reading

Posted in algorithms, finance, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment

Graph historical Dow Jones Industrial Average values in C#

This program graphs historical prices for the Dow Jones Industrial Average. I got the data from this URL: ichart.finance.yahoo.com/table.csv?s=^DJI&a=0&b=1&c=1990&d=0&e=1&f=2020&g=d&ignore=.csv The fields in the URL are: s=^DJI – Get Down Jones Industrial data a=0 – The start month number is 0 … Continue reading

Posted in finance, graphics, mathematics | Tagged , , , , , , , , , , , , , , | 3 Comments

Continuously graph stock prices in C#

The example Get stock prices from the internet in C# explains how to get stock prices from the Yahoo! finance web site. This example uses similar techniques to query the site periodically and then graph stock prices. This example is … Continue reading

Posted in algorithms, finance, graphics, internet, mathematics, multimedia, web | Tagged , , , , , , , , , , , , , , | Leave a comment

Graph stock prices downloaded from the internet in C#

This example uses techniques described in other examples to graph stock prices downloaded from the internet. it’s based on these two examples: Get stock prices from the internet in C# Draw a labeled line graph that displays value tooltips in … Continue reading

Posted in finance, internet, mathematics, web | Tagged , , , , , , , , , , , , , | 2 Comments

Get stock prices from the internet in C#

There are many web sites that can return stock prices to a program. This program uses download.finance.yahoo.com. It builds a URL of the following form to get prices for MCI, DIS, COKE, and PEP: http://download.finance.yahoo.com/d/quotes.csv?s=MCI+DIS+COKE+PEP&f=sl1d1t1c1 The end of the URL, … Continue reading

Posted in finance, internet, mathematics, web | Tagged , , , , , , , , , , , , , | 13 Comments