165 points · by twiecki · 12y ago · 136 comments
Trading is hard. I run a proprietary trading firm with modern technology infrastructure and we have a lot of trading experience. You really have very little chance of success unless you're doing this full time, and even then it will take years before you have enough experience to build a sustainable income.
If you look at a typical discussion of trading here on HN you will see lots of totally uninformed hyperbolic assertions about what goes on in the market. How everything is rigged and how corrupt the players are. I think trying to scare people out of the markets only promotes that kind of thinking.
IMO there's way too much fearmongering (largely from people who have no experience trading, or from traders who don't want to see other people do better than them) about this. I've traded options on a very volatile commodity ETF before (SLV) and came out quiet well on top by playing with patterns and timing. This was in 2010, but there was the same "THE COMPUTERS CONTROL THE MARKETS AND YOU'LL GET CRUSHED" fearmongering hyperbole as there is today. It'll be there four years from now, too.
There's smart money and super fast algorithms and all that for sure, but there's plenty of dumb money moving around too. There are also plenty of people (I will note: often nontechnical individuals) who make a good living day trading. You basically just have to find a pattern ANYWHERE, IN ANYTHING and trade it over and over until it stops working (...and catch on quick). You might lose money (especially starting out), but it's not at all the experience of "you will step in and BE CRUSHED BY EXPERT TRADING ALGORITHMS" that people portray it as.
Start a brokerage account, do some reading, put in a sum of money that's consequential but that won't break you if you 100% lose it, and play around a little bit. Try focusing on one specific (preferably fairly liquid) security. You'll be amazed at how sometimes you make the right call and magically you have more money than you started with, and how you don't immediately die and get shot and lose all of your money to some corrupt evil high-speed algorithm while being eaten by wolves because, you shameful Icarus fool, you dared to trade on the public markets by yourself.
Risk-averse people (especially programmers) who have no experience trading will think you're completely insane and lambaste you, especially if you make money.
Yes, one does see such remarks, but an excellent counterargument is almost never heard-- and that is that (a) business leaders aren't stupid and (b) if the equities market was really significantly rigged or inefficient, these people would refuse to raise capital using equities.
The fact that some of the most skeptical, cautious people in existence, people with plenty of practical experience, are willing to fund their businesses with equity capital, means that equity trading is substantially fair and that the efficient market hypothesis is at least approximately true.
That's a pretty bold claim. Given the financial crash of 08, from what I can tell the EMH has been thoroughly debunked. Markets are not efficient and all data is not priced in. Information is not absorbed quickly into the market so inefficiencies crop up everywhere all the time, those are the profit opportunities that traders make a living off of. If EMH were correct, the systematic risk that crashed the market could not have occurred. Remember, it's a hypothesis, not a theory.
Wouldn't that depend on who the market is stacked for/against, by how much, and what their alternatives are?
People finance with VC money when there is not even usually a market.
People who want capital have little choice, they have to pay the ridiculous fees and have it traded in the existing market. But they don;t really care about the non competitive cartel of investment banks anyway, as running a public company means you can pay your self almost unlimited amounts of the shareholders money anyway. Whats not to like? Who cares if the market is efficient?
Heh. I also wanted to play with algorithmic trading, but before doing so, I got a book "Trading and exchanges" by Harris, which was recommended by somebody on reddit.
I have read it only halfways and realized two things:
1. I'd have to do trading (and related activities) as a full-time job in order to be successful (i.e., earn money in the long run).
2. I'd need to spend at least a year's equivalent of a full-time job on learning the necessary background math and algorithms.
I.e., I'd need to quit my job (which I quite like), only to replace it with another set of daily duties.
If it were easy, and everyone could do it and make as much money as working full-time, without actually working full-time; then everyone would.
That's easy to answer -- if you're very smart, you will do better in math and physics, and the positive correlation between intelligence and success actually has meaning. But in equities trading, being very smart does no good at all, and might even represent a handicap. The reason? Equity pricing is mostly random noise, very high entropy.
Many very smart people have tried to model and then beat the market, and (apart from chance outcomes) no one has succeeded in the sense that they located a reliable, describable "method" for it.
Also, if in principle someone discovered an actual winning system, by publishing the system he would destroy its effectiveness (because once a "system" is put into practice, once everyone uses it, it loses its effectiveness).
Obviously for a random collection of investment schemes, half will do better, and half worse, than the average market, but the half that do better will naturally enough claim the outcome resulted from their investment genius -- even if they're smart enough that they should know better.
I can use a computer to model a random market and random investors, using random price changes and random trades, and not surprisingly, half the investors will do better than the average outcome. What is surprising is that, when the above-average investors are humans, they invariably try to claim this chance outcome resulted from a winning system that they will sell to you for some princely sum.
More here: http://arachnoid.com/equities_myths
> Pointing that out X is hard and most people fail is a tautology, it's true of all difficult professions.
Yes, but there's a qualitative difference between "hard" and "impossible".
What is the p-value that Warren Buffett's random investment plan outperforms the market 39/47 years?
http://finance.fortune.cnn.com/2012/02/25/buffett-berkshire-...
If a drug beat a placebo in 39/47 experiments, would it be approved by the FDA? :-)
There are investors who get lucky, and there are investors with sound strategies. The notion that every winning strategy gets immediately and flawlessly applied by every actor in the market is a fantasy world populated by homo economicus.
That's an easy claim to make when you simply dismiss anyone who succeeds as random chance.
> by publishing the system he would destroy its effectiveness
Obviously and not disputed.
> I can use a computer to model a random market and random investors, using random price changes and random trades, and not surprisingly, half the investors will do better than the average outcome. What is surprising is that, when the above-average investors are humans, they invariably try to claim this chance outcome resulted from a winning system that they will sell to you for some princely sum.
That's not damning evidence, merely circumstantial.
> Yes, but there's a qualitative difference between "hard" and "impossible".
Yes there is, however I don't believe it's been adequately proven to be impossible.
I wouldn't say no one should trade -- obviously some people do very well. But most of us, I think, should be very careful, and limit our exposure.
This kind of strategy enables laymen like myself to do about as well as the market, without paying a middleman such as a mutual fund.
The answer is that buy & hold is a very reliable way to grow your capital, and it does without the services of investment advisors and brokers, which is why they don't want you to find out about it.
On average, buy & hold investors do better than those who enlist the help of brokers or who become day traders (who on average do worse than anyone else).
For actual evidence, one need only examine the outcome of the Wall Street Journal dartboard contest, which compared expert equity picks to random picks. The expert picks weren't sufficiently better than random picks to justify the broker fees, and this outcome went on for years.
http://www.investorhome.com/darts.htm
Quote: "... the performance of the pros versus the Dow Jones Industrial Average was less impressive. The pros barely edged the DJIA by a margin of 51 to 49 contests. In other words, simply investing passively in the Dow, an investor would have beaten the picks of the pros in roughly half the contests (that is, without even considering transactions costs or taxes for taxable investors)."
But you're dead wrong if you think large-cap stocks provide safety from risk. Plenty of large-cap stocks have disappeared completely, another large cohort have had terrible returns.
Any strategy is only going to work if you put disciplined position sizing/money management rules in place. Rules that allow you to trim the dogs and keep the winners, whilst making sure that any large losses don't fatally wound your portfolio.
Of course there are -- very easy ways. But there's no reliable easy way to get rich.
> people looking to get rich quick in financial markets are probably better off learning how to play poker.
If we eliminate "quick", then not true. All one needs to do is invest in an equity index fund and patiently wait decades while ignoring the dubious claims of investment counselors. It's very reliable.
With respect to "quick", that also happens but with much less reliability. Consider that a blind computer program randomly flipping coins, with no strategy at all, will enrich a small percentage of its accounts by chance alone. This works for people too, but it's a rare, chance outcome, not any kind of strategy. More here:
Hm... actually, it might be. At the very least you certainly don't have to shell out as much for software.
We're trading on live data (not just making claims based on forward tests) without any human involvement, though human intervention and the ability to recognize trends could have saved some of the trades that ended up being losers. Still, we're looking at sizable gains with a hands-off approach (maybe you'll need to re-train the system every year, but even that can be automated).
We've now run into the problem of telling the world about it; you'd think that 40% annual returns would have large institutions knocking down the door to give us our millions. So it goes!
To your first point about our development strategy: we used genetic programming, and tried to apply novel strategies for which there wasn't much of a precedent in financial applications.
To your second point, re: our testing strategy:
I will concede that we only have 2 months of live trading data, but so far it corresponds well to the behavior we were seeing in our forward tests (what we call the data that the system was not trained on).
We trained our system on 10 years of data (2001 - 2011) with two years of forward tests (2012 and 2013) for evaluating its effectiveness (and to verify that our algorithms have not been overtrained to fit the testing data set). Our forward testing involved taking the same data we would have received from our financial institution and feeding it through the algorithm to see what trades it makes. Having proven our algorithm worked with forward tests, we hooked it up to live data to get real results. So far, so good!
To you third point--risk--we need to explain how our algorithm trades.
We've trained our system to recognize patterns such that it will open a trade with a stop-loss and a take-profit. Because the take-profit and stop-loss are preconfigured, our system doesn't need to monitor data feeds with a time resolution of “real time” to make decisions; the onus is on the brokerage to close winning and losing trades.
The lot size of the trade is calculated such that a losing trade (the price of the currency pair reaching the stop-loss) will incur a loss equal to the risk. So at a risk of 2%, a losing trade on a $1000 account will bring the account value down to $980. Winning trades earn double the risk, so a winning trade on an account of $1000 at 2% risk will increase the account value to $1040.
With all this in mind, we claim 40% annual profit because our live trading exhibits patterns similar to our forward tests, and while our forward tests exceed 40% annual profit, we're extrapolating our two months' worth of live testing performance out to the rest of 2014. There's a good chance that this number will change in the coming months. We will revise it up or down accordingly.
It's possible that our system will need to be used "in the wild" for more than just two months in order for people to take us seriously. If that's the case, I am happy to continue dogfooding FX Machine; so far, it’s been a profitable experience :)
Thanks again for your great questions. We’ll use questions like these to build an FAQ section on the site!
I am not purporting to claim that FX Machine will always return 40%+ annual profit forever. Rather, I'm presenting a technology we've developed (as a startup on a startup site!) that trades automatically and, so far, has yielded returns that average (across all currency pairs) in excess of 40% annually. This number was higher on our forward tests, but we have two years of historical data for those and only two months' worth of live testing.
As I said in my reply to ep25, there’s a good chance that our 40% claim will need to be revised either up or down as we continue to dogfood our product. Investing is never a sure bet, even (or especially) when computers are involved. For that reason, I will continue to invest only money that I already have. I'm dogfooding our product with my own hard-earned cash--not somebody else's. What greater measure of confidence is there than this?
Trading on real data is very different from simulated trading on historic data. There are a lot of leaky abstractions and assumptions that happen during simulations that cause problems once you put real money to work. In the past, here on HN, I have criticized quantopian several times because no one has actually used quantopian to trade real money. This is no longer true.
It will take a lot of time and a lot more capital to figure out all the holes, but they are finally on the right track and I am glad they have 20 people already trading. That is 20 sets of eyes balls to look for lack of fidelity in the simulations.
Personally I am interested to see how good their transaction cost model is when trading hundreds to thousands of shares at a clip.
Personally, I couldn't wait for their roll-out. So I wrote my own IB client and traded my Quantopian backtested strategies myself on my IB test account. Race condition, deadlocks much at 3:59PM ET at 2000+/msg burst from quote ticks (esp. when you are doing some kind of stat arb, pairs trading where one order submission is dependent on another order's fill).
Anyways interesting technical problems abound. Gl to the Quantopian team!
does anyone know where I can get price history for the last few years for something like an index fund, like DIA?
To begin coding, clone the sample algorithm on the front page to get familiarized with the IDE. You can then backtest the strategy, for free, using historical data from 2002 - Now. When you run a full backtest, you can see how your algorithm would have performed in the past - you can see your returns, Sharpe ratio, and other metrics.
Once you're comfortable with the syntax and mechanisms, the community is a great place to look for trading ideas to try on your own. Try cloning an algorithm posted in a thread to begin experimenting. If you get stuck, post to the forums - they're a friendly bunch and will be happy to help out.
Of course, past performance is not indicative of future results. When you're ready, you can paper-trade your algo (trade using fake money) on the live market. It's free on Quantopian and a risk-free method to see how your algo performs in the market. And then, the last step is to connect your account to Interactive Brokers and begin live trading with real money. This blog post was an update of the live trading pilot program.
(Disclaimer: I work for Quantopian. But I'd be happy to help answer any questions! Feel free to reach out to us directly as well, feedback@quantopian.com)
Doesn't IB require a local TWS connection as well as credentials, e.g. 2-factor authentication?
Fore more info see: https://www.youtube.com/watch?v=hye1L86s43M
Reality is that if I have $10'000 to trade, unless I am successful, which is likely a low probability; 10% of that goes to brokers for all the spreads I pay over time, and the other 90% simply goes to another man/woman/company's pockets.
The one thing that I discounted was the adrenaline rush in seeing a certain currency pair or index go up by a few bips in a matter of milliseconds and that translating into gains/losses in my account. If you do it to 'try' it out, stay away. If you don't understand the effect of a certain EMA converging/whatevering with another EMA, stay out. If Bollinger rings of a friend's surname more than a band, stay out. etc. To even be extreme, I would equate high-leverage trading to gambling for us folk who don't have a lot of knowledge, and I'd go further and equate it to drugs for those who have less of a clue.
As the parent post said, stick to value investing.
Disclaimer: I've spent about 6 years trading in my spare time, learnt lots etc. but called it quits 3 years back to focus on something better with my time. I'm currently 10e10/4-.5 years old.
EDIT: There are just too many exceptions and nuances. Every single investment involves more exceptions and nuances that would need to be coded. And if you don't think so, I would bet you don't have alpha :)
http://www.jatit.org/volumes/Vol51No1/24Vol51No1.pdf
Also, weren't the quant funds that were involved in the summer 2007 blowup all running automated value strategies based on Fama+French factor models?
It works really great until it doesn't.
But... the solution is just so obvious, just make the algorithm trade the opposite of what it would have done.
Pure profit!
Here's the bot I built: https://github.com/pontifier/rebalancer
Quantopian looks interesting, and hopefully the exchanges it trades on won't disappear.
on Techzing podcast can find and interview to the founder (a bit old, 2011): http://techzinglive.com/page/868/155-tz-interview-mathew-kle...
Feel free to upvote this comment if you think this is cool btw :)