Hello, welcome back to my blog about the
automated trading. Last week I have stated that this blog will be about how to build up your own automated trading system. Today's post will be about infrastructure. First I will look at what is possible to get for free and then compare it to the what big institutions have. This will result into a conclusion about my system.
Free environment
I have started the whole work with nothing in my pocket. No single penny spent on hardware or software. Thanks to the modern cloud services this is possible. For me the system has layout as image below. And if anyone tries to make the same, then there is a good chance it will end up in the same way.
Simply there is a Trading System on the left side. This is the part I am creating and having full control over it. Trading system is connected to the broker. There are few brokers which expose API for connection (see below) and choice is up to everyone. And finally broker is connected to one or more
exchanges where the actual trades get executed. Exchanges are selected by broker.
Technology choice
I personally made the following choices.
- Trading System - running on OpenShift platform using Tomcat 7 with PostgreSQL cartrige. I have very good experience and there is a free tier for anyone to develop up to 3 applications.
- Broker - I have made fully working connection with MbTrading (will publish later), but unfortunately can't open real trading account there. My residency is in Japan and regulations prevents me to do that. But if you are from Europe or US, then I can recommend them, because they were so handful. Actually they were the only broker who opened me API for free at the beginning (in demo account) so I could code everything without spending any single penny. Other brokers requested to open real account first usually with at least 10000 USD. Now working out on the different way to get into it.
Institutional environment
Now let's look to the institutions. Ideally (not all) they have more simple layout. Like the image below.
Idea behing is like this. Get rid of the middle man and be close to the exchange as much as you can. This will give you an advantage. So let's see why.
Many friends asked me about high frequency trading. Meaning was always the same, open position and close it within a fractions of seconds, like in the movies. As Barry Johnson stated in his book Algorithmic Trading & DMA the result of shortening the time frame is decreasing the risk. On the other hand it increases the cost (commissions, market impact). Trick here is that costs can be better predicted (although it is still not easy) and this is the advantage. Now question - can I do this? Answer is no - there is no chance for me to win this game. Even if I outsmart all the clever people working there and get enough capital to operate with (both I doubt), my system will be still slow just by nature. In my case any message needs to go thousands kilometers and thrgouh many routers and switches. So I can easily count that roundtrip takes a second. Compare this to the super powerfull machines sitting next to the exchange with clever dedicated people around. They are searching for every little improvement in the system to speed it up or make it better. So no way. Then let me state what I am focusing on.
I know this doesn't sounds sexy. Fortunately even with this limitation, there are a numerous great oportunities. And this is what I am searching for!My trading system will consider only strategies where smallest time frame which maters is one minute.
That's it for today. Next week I will show the actions which are performed through the day and night. Thank you for reading!


No comments:
Post a Comment