YOUR FEEDBACK
shirley wrote: As an ISV and service provider, we specialise in .NET based collaboration soluti...

SYS-CON.TV
TOP MICROSOFT .NET LINKS


Timing the Market with Distributed Genetics - Part 2
Picking the best stocks for investing a fixed amount of money

At the end of my previous article (DNDJ, Vol. 6, issue 4), I explained the theory behind the two major technologies to be used in timing the market. On the one hand, we are dealing with distributed computing - a process whereby large computationally intensive tasks can be broken up and shared among multiple computers in order to be processed in a shorter amount of time. On the other hand, genetic programming gives us a mechanism for solving the most complicated of problems by "evolving" a solution through the random creation of multiple candidate solutions and the gradual selection of the ones that look most promising.

In this article - the second of this two-part series - we are going to dive into the code behind our solution. First, we'll look at the genetic programming implementation - and see how the artificial intelligence principles that govern this approach can be most readily applied to picking the best stocks in which to invest a fixed amount of money. We'll see what kinds of data these algorithms will require to make their decisions, and we'll see how to evaluate the potential solutions after they've made their decisions.

In the second half of this article we'll turn our attention to the "grid-ification" of our genetic programming solution. A key concern with any such operation is the proper decomposition of a software application into the client application that is intended to run on a single centralized system, and the pieces that are intended to be distributed among multiple machines to perform the actual work of the solution. We'll take a look at the way our solution is constructed, as well as some key challenges that had to be overcome in its creation.

The Genetic Algorithm
The essential framework for the genetic portion of our solution was provided by Brian Connolly in his article "Survival of the Fittest: Natural Selection with Windows Forms". In this article, Brian shows how .NET's Codegen facilities - a set of classes that allow .NET applications to generate new .NET code at runtime - can be leveraged to produce automated "ants" that can, over the course of multiple generations, become increasingly good at gathering pieces of food dropped on a theoretical grid.

Since you can read all about the basics of genetic programming with .NET in this article, we won't go into much more depth about this technology here. There are also three classes provided in this article that we were able to use without modification (see Table 1).

About Derek Ferguson
Derek Ferguson is a noted technology expert and former Microsoft MVP.

MICROSOFT .NET LATEST STORIES
The DevExpress ASP.NET Filter Editor was created to address key business issues confronting software developers. The control does not require users to know or understand SQL syntax and does not have any limitations regarding filter condition complexity. To make filtering even easier fo...
CodeGear RAD Studio 2009, Embarcadero’s flagship product for Windows and .NET platforms, combines the rapid application development capabilities of Delphi® 2009 and C++Builder® 2009 with the recently introduced .NET development capabilities of Delphi Prism™. This combination of p...
According to the Times of London, Microsoft is in talks to acquire Yahoo's search business. The Wall Street Journal says the story is utter hokum. The British paper puts the price at $20 billion – although all of Yahoo was only worth $15.96 billion as of Friday. However, it says "sen...
The federal court hearing the disclosure-rich "Vista Capable" class-action suit claiming consumers were misled by the logo has ordered Microsoft CEO Steve Ballmer to submit to a three-hour deposition. Microsoft, which tried to block the discovery, maintains that everything Ballmer know...
The two-year anniversary of the Novell-Microsoft alliance that scandalized the open source community passed quietly enough earlier this month. The pair waited a couple of weeks to mark the occasion and then said that in the second year of their arrangement they added upwards of 200 new...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES
Allin Corporation (OTC Bulletin Board: ALLN), a Microsoft Gold Certified Partner technology consulti...