Tuesday, October 28, 2008

GGBLOG - Befriending the Trend

I'm currently reading Trading with DiNapoli Levels by Joe DiNapoli.

Pretty cool book and finding very entertaining. Joe is a funny guy and often makes jokes about programmers that he's worked with over the years.

Whether your like Warren Buffet and trade based on fundamentals or like Joe who trades based on statistical analysis, I'm finding it all boils down to:

“ trade with the trend, the trend is your friend

If you want to beat Warren at his own game you could try this. As soon as I get some data I'd love to run a simulation on the ASX 50.

Monday, October 27, 2008

GGBLOG - Thinking in Schema

Have you ever wanted to generate an xml schema (XSD) from a java class?

Took me a little while to track this down and hopefully google will rank it a little bit higher by me blogging about it for others out there.

https://jaxb.dev.java.net/guide/Invoking_schemagen_programatically.html

JAXB has a nice little utility which will take a java class and generate a xml schema and can be run in ant/maven, run through the CLI or programatically.

I personally find it easier being a java guy to think in java over xsd. :)

Enjoy!

Saturday, October 25, 2008

GGBLOG - Trading Time

Just got back from from the Trading and Investing Expo here in Sydney and boy was that the best $15 that I've spent in a while.

There were some pretty heavy hitting speakers throughout the day below are a few that really caught my attention:

1) Larry Williams

Larry is a high profile American speaker who has
traded futures & commodities for over 40 years. He is
the creator of the “Darlings of the Dow” concept and
fund. He is the winner of the World Cup real time
Trading Championship with +11,000%

2) Joe DiNapoli

Joe’s exhaustive investigations into Displaced Moving
Averages, his creation of the proprietary Oscillator Predictor and MACD Predictor and in particular, his practical and unique method of applying Fibonacci
ratios to the price axis, makes him one of today’s most
sought after experts.

What does this have to do with technology?

In the financial markets industry a couple of milliseconds can mean the difference between winning or loosing millions of dollars. I really think cloud computing and grid technologies have a great use case in this domain.

My goal is to learn how to think and breath like the best traders in the world and then marry that up with my technology skills. I'm already finding in my early financial markets learning that I already possess some analytical skills which I can leverage.

Friday, October 24, 2008

GGBLOG - In The Clouds

Today I'd like to talk about EC2 (elastic compute cloud) which is Amazons implementation of a compute cloud which really just a bunch of computers linked together (a cluster).

Where things start to get interesting over other plain old compute clusters is the E (elastic) part.

Amazon gives you a nice set of tools to bring computing nodes online on demand which is why they call it elastic.

I remember back in my days as a web developer when the 911 attacks occurred, even though we had 12 servers in our cluster to do static content serving, there was such a spike in load that the poor operations guy had to rush down to our hardware vendor and pick up some new machines and plug them into the cluster. This whole process took hours, It would have been pretty nice to have EC2 back then to bring the nodes online through a nifty little firefox extension.


There is alot of energy around grid based frameworks like Grid Gain, Hadoop, Coherence and Gigaspaces. These frameworks come into play by allowing you to take advantage of EC2 by allowing you to scale your applications up and out and providing linear scalability.

What does this mean?

Most applications out there are built on tiered and layered architectures. As a example (see pic below) a j2ee app is typically has a web browser, webserver, app server, integration server then back end server. Thats an awful lot of services/servers to go through to get any work done.

























In my experience the biggest problem to this architecture that there is always a glass ceiling when it comes to the scalability of these solutions, eg. the database or sap runs out of capacity

Grid based frameworks attempt to turn this on its head by allowing you break your applications into a structure which fully supports parallel processing.