* you can offset unlimited gains with as many losses as you have - so that's the real value. * you can carry forward losses greater than 3000 to future years. so its not use it or lose it
If you care about tax efficiency -- which can severely deplete your on-paper returns -- then it's not really ~5 lines of code at all.
If you're looking for dumb-and-good-enough, delegating the fiddly rebalancing problem to someone with economies of scale isn't really so bad.
I recommend using Interactive Brokers and coding your algorithm against their API directly, skipping the Quantopian middleman.
We would be crazy to charge people to use our platform. We need thousands of algorithms, and charging for the platform would be one of the faster ways to kill our business.
Yes, you can code to Interactive Broker's API. But where would you get your free minute historical data for backtesting? Or corporate fundamentals data? Or the free IPython research environment? Or the community of 60,000 quants giving each other mentoring and advice?
I work at Quantopian, so you can imagine my answer to all of those questions.
Is Quantopian free? Quantopian's community and backtester is free for everyone to use. There will be a charge for connecting your algorithm to your brokerage. Pricing isn't finalized, but we're considering a flat monthly fee.
Does it take into trading fees? I pay $9 per trade. Can you have fixed income instruments in your portfolio? Foreign stocks? Does it handle exchange rates? Does it account for dividends?
It only supports equities at the moment, with futures on the way. It only trades the US markets at the moment, exchange rates aren't relevant and dividends depends on how you want them "accounted for".
What you do with dividends also matters so ideally any algorithmic strategy you come up with takes that into account. For me not being in the US (Canada) currency exchange rate can at times dominate the returns.
There are a lot of newer ETF products on the market so it's going to be difficult to back test a strategy that uses ETFs.
At any rate, it looks interesting, I might play with it a little, but I don't think it works for me right now for investment purposes. I do my rebalancing yearly on a spreasdsheet :)
It's marketed as a platform that facilitates competition for the best trading algorithms but really, algos can be as complex or as simple as you want. A simple monthly portfolio rebalancer takes ~5 lines of code (handle_data is boilerplate required by the platform):
Plug that in, backtest it (it has a pretty comprehensive backtesting and research suite) and add your Interactive Brokers or Robinhood account details and you're off.It's all free as well.
Note: I have no ties to Quantopian, I just discovered them after being disappointed by how little flexibility Wealthfront and Betterment offered me.