Live data from Hacker News

Ask HN: Any high frequency trading hackers

news.ycombinator.com

21–30 of 63 posts

Re: Ask HN: Any high frequency trading hackers

#21
In the big picture view it seems that HFT is becoming a crowded trade. I would think the competition would be a huge challenge. Maybe you should try to start off in foreign markets where there is some breathing room - if that's possible.

Here is an article about about wall street programmers leaving the big boys to go at it alone.

http://www.forbes.com/2010/07/28/high-frequency-trading-pers...

Re: Ask HN: Any high frequency trading hackers

#22

Earlier quoted context omitted.

Do you have any suggestions on where to start reading on Algorithmic Trading? Perhaps also a way that I could test algorithms against the market, without actually risking any money?

You can buy historical 'tick data'. Be forewarned, however, that simulations run on this kind of data are not the same as real trading since it doesn't reflect the bid/ask. Also in my opinion and experience, price alone is insufficient data for analysis. Also don't forget to figure in total execution cost as it makes a huge difference in the evaluation of algorithms, not to mention the 'bank roll' necessary to allow…

You can also download daily tick data from Yahoo Finance for free, They offer bid/ask, volume, and adjusted closes.

Re: Ask HN: Any high frequency trading hackers

#23
post #16

I've been working on an algorithmic trading system using machine learning, it is not HFT currently. It is currently daily (24h+ held equities), the intra-day side (~5-60 minute held equities) will come very quick after I feel comfortable with the machine learning side of things. The source of data will change, and a few tweaks to the actual trading system and it will be running intra-day. The HFT will only come aroun…

Awesome! I am more than interested to step into. Could you please shoot me an email to aliengeek4u at gmail dot com

Re: Ask HN: Any high frequency trading hackers

#24
post #16

I've been working on an algorithmic trading system using machine learning, it is not HFT currently. It is currently daily (24h+ held equities), the intra-day side (~5-60 minute held equities) will come very quick after I feel comfortable with the machine learning side of things. The source of data will change, and a few tweaks to the actual trading system and it will be running intra-day. The HFT will only come aroun…

can you go more into the machine learning parts? i love such uses of ML, so futuristic.. im guessing you use either some kind of genetic algorithm or neural networks as is most common? or something else entirely?

Re: Ask HN: Any high frequency trading hackers

#25
post #11

I'd suggest maybe look at algo trading rather than HF, it's much more accesible to outsiders, plus you can use the algorithms on places like betfair and stand a decent chance of actually making money.

what parts of betfair are you suggesting? I am skeptical but intrigued. while profitable gambling is possible I expect the potential returns are much less for respective successful strategies with advantaged gambling also less amenable to extracting any sort of substansively edge giving pattern.

edit: i'm refering to algorithmic trading v gambling not HFT.

Re: Ask HN: Any high frequency trading hackers

#26
post #11

I'd suggest maybe look at algo trading rather than HF, it's much more accesible to outsiders, plus you can use the algorithms on places like betfair and stand a decent chance of actually making money.

Do you have any suggestions on where to start reading on Algorithmic Trading? Perhaps also a way that I could test algorithms against the market, without actually risking any money?

The Encyclopedia of Trading Strategies by Jeffery Owen is good. My own experience suggests it is extremely difficult to find exploitable inefficiencies by looking at market data alone [I have not managed to do so and have spent a lot of time attempting to do so] and you're more likely to succeed making something useful people want!

Re: Ask HN: Any high frequency trading hackers

#27
post #22

Earlier quoted context omitted.

You can buy historical 'tick data'. Be forewarned, however, that simulations run on this kind of data are not the same as real trading since it doesn't reflect the bid/ask. Also in my opinion and experience, price alone is insufficient data for analysis. Also don't forget to figure in total execution cost as it makes a huge difference in the evaluation of algorithms, not to mention the 'bank roll' necessary to allow…

You can also download daily tick data from Yahoo Finance for free, They offer bid/ask, volume, and adjusted closes.

"Tick data" refers to trade by trade execution data. Daily data is end of day summary data. If you are doing HFT, you need tick data and the market depth. Huge volumes of data compared to daily close data.

Re: Ask HN: Any high frequency trading hackers

#29
post #24
post #16

I've been working on an algorithmic trading system using machine learning, it is not HFT currently. It is currently daily (24h+ held equities), the intra-day side (~5-60 minute held equities) will come very quick after I feel comfortable with the machine learning side of things. The source of data will change, and a few tweaks to the actual trading system and it will be running intra-day. The HFT will only come aroun…

can you go more into the machine learning parts? i love such uses of ML, so futuristic.. im guessing you use either some kind of genetic algorithm or neural networks as is most common? or something else entirely?

Absolutely

So the system is built around the ~50 different indicators and oscillators that I've found the formulas for generating.

These "methods" are variable driven, meaning each method could have 1 to 4 variables ranging between 0.0001 to 260.

The current testing platform that it self manages has the end goal to find the highest gain after commissions using a combination of any of these methods for opens and closes.

Considering the __massive__ amount of possible combinations of these methods, the system has two testing suites it runs, the first round of testing is a simple test suite that only sums the gain it would get using those methods over the last YTD. This doesn't mean that the highest here will be the best combination in the end as commissions will bite you if you don't keep an eye on them. We simply only collect sum of gains because of the MASSIVE amount of tests we have to run. This cuts down on days/weeks/months of computation time.

So it will increment through the blocks (two sets of combinations, one for open, one for close) of functions typically by 1000, so it will start testing at #1, then skip 1000 of them, test #1001, rinse and repeat till its ran through the whole list (this is broken out across 5 machines around my condo, and multi threaded to utilize every core minus 1 of each machine, I have roughly 40 cores working on this system).

Once it has identified the best ~25% of raw gain increment points, it will then start incrementing forward and backward around those starting points as long as the raw gain is increasing and not showing a change in direction (I use a mixture of a momentum formula and P SAR to determine the change in direction as you will get some noise and a quick change could make you miss gold on the other side because of a slight fluctuation). So while all these are being ran, the results get funneled back into the job queue for the second half of the testing suite.

This is also distributed across all the machines.

The second half then runs the full test suite on each combination of methods to recreate the market verbatim for the last YTD and determine everything, gains, share quantity, p/l, commissions spent, highest equity, ect.

Finally all this data is put back into the job queue once again to be sorted to find the highest net gains after commissions.

The winning methods are finally stored in the datastore to be accessed by the actual stock trading platform that will use this data during trading hours to execute trades accordingly.

So from start to finish the application handles and manages, what tests it wants to run, can determine the best strategy to use and execute the strategies on its own.

I tried to keep it very basic explanation, there is a lot of other things that go on, to make this all work flawlessly. I do want to thank 0MQ and Gearman for playing vital roles in work distribution and message queuing amongst the worker threads.

I do highly recommend that if anyone every wants to truly learn how to scale an application to build a algo trading system on limited hardware and try to squeeze EVERY millisecond you can out of it. (I've rebuilt it from the ground up numerous times).

Actually typing this out makes me see some similarities to a map and reduce method in some ways as well.

Re: Ask HN: Any high frequency trading hackers

#30
post #21

In the big picture view it seems that HFT is becoming a crowded trade. I would think the competition would be a huge challenge. Maybe you should try to start off in foreign markets where there is some breathing room - if that's possible. Here is an article about about wall street programmers leaving the big boys to go at it alone. http://www.forbes.com/2010/07/28/high-frequency-trading-pers...

[deleted]
Post reply on HN