Better HN
topnewbestaskshowjobs
Log inSign up

fawce

712 karma · joined Feb 28, 2012 (14y ago) · 138 submissions

seasonal zamboni operator
Submissions

comment 13y ago · link · parent

If you click on the code and search for commissions, you'll see how those costs are taken into account. The big missing thing is the market for borrowing the stock to do the short side of the trade.

No money has traded on my version no. But, I understand that asset management firms have licensed the more sophisticated one Jess wrote at TR, so I would think they use it with real money. From what I understand, firms look at numerous signals like this, and then make investments based on a combination of the signals.

comment 13y ago · link · parent

what's an example of an external factor? maybe I can find it on quandl and backtest it.

93.

Show HN: How I built a trading signal by scraping Nasdaq for short interest(quantopian.com ↗)

89 points · by fawce · 13y ago · 51 comments

comment 13y ago · link · parent

I don't know enough about Galaxy to say that we want to be the Galaxy of finance, but I can tell you where we want to go.

There are several key steps in the process of creating quant investment strategies: research, development/testing, backtesting, paper-trading, and finally, live trading. We want to cover all of it.

I think Galaxy is most like the 'research' phase - you want to get your data assembled and in something like a pandas datapanel, which you can then adhoc plot. You're looking for patterns, very quickly testing hypotheses about the data.

We made the decision to build live trading next, and we're full tilt on that, but we will keep expanding the product and it will include the research phase.

drop me a line and we can talk :) -- fawce at quantopian dot com

comment 13y ago · link · parent

here you are: https://www.quantopian.com/help#overview-fetcher

comment 13y ago · link · parent

Here's an example of fetcher in action: https://www.quantopian.com/posts/new-feature-fetcher

comment 13y ago · link · parent

You can clone and run the algo yourself over any time period since 2002.

comment 13y ago · link · parent

Investing is one way people plan for the future. Helping people plan for the future is a good thing. Algorithmic trading has mostly focused on (ultra) short timescales, without much regard for future planning. I think the world would benefit tremendously if more of that effort went toward investing on longer timescales. Investing is still almost fully manual today, and packed with inefficiencies and costs that could be automated away.

comment 13y ago · link · parent

Thanks for taking a look, and for the feedback. Zipline does model transaction costs, both commissions and price impact of your own trading (slippage). The commissions and slippage models are pluggable, so you can use what is there or roll your own.

Quantopian does not have data for stock borrowing costs or availability, and Zipline's slippage/cost model does not account for them either. We'll find a way to get that data and plug the hole. The challenge has been finding a clean way to get it from the brokers, or finding an aggregator with a reasonable price (any advice?). In the meantime, we've been open about this limitation, and the zipline code is opensource, so I think/hope anyone who cares to know does probably know.

Quantopian is building our live trading environment now, so we don't yet have comparisons between the backtest results and real trading.

Regarding your point about the epoch, I'm not sure I entirely follow you. Part of the point of zipline's design is to allow easy swapping of datasources, mainly to allow the transition from backtesting to paper trading and then to real trading to be seamless. One algo code can run either historically or live. Adjustments from splits and mergers are back-projected, so that current day prices need no adjustment. Dividends are dealt with as announce, ex, and pay events, meaning we do not smooth out the over-night drops, instead we increment/decrement cash.

I'm in NYC regularly to host the NYC Algorithmic Trading meetup - it would be awesome to talk to you about these issues in person, please consider coming: http://www.meetup.com/NYC-Algorithmic-Trading/

comment 13y ago · link · parent

Don't forget mergers. I spoke about this problem recently at Matt Turck's Big Data Meetup (http://vimeo.com/60598560). Quantopian provides zipline powered backtesting over fully adjusted intra-day data (minute bars) for free.

comment 13y ago · link · parent

How do commissions work? per trade? Does the api provide any data, or just execution?

comment 13y ago · link · parent

We are building just that at https://www.quantopian.com. It runs on zipline, and we're hooking it up to brokers.

comment 13y ago · link · parent

If you are up for porting Bateman to python, over at https://www.quantopian.com we let you backtest with high quality intraday data for free. You can also reference our opensource backtesting engine, http://zipline.io, to see how we handled modeling slippage and order simulation.

104.

Using Perceptrons in a Trading Algo(quantopian.com ↗)

2 points · by fawce · 13y ago · discuss

105.

Five Million Dollar Investing Ideas: Quant Backtester(mebanefaber.com ↗)

2 points · by fawce · 13y ago · discuss

106.

Quant In Residence(advancedtrading.com ↗)

2 points · by fawce · 13y ago · discuss

107.

The Age of the Main Street Quant Is Upon Us(wallstreetoasis.com ↗)

2 points · by fawce · 13y ago · discuss

108.

Quantopian Looks to Break Wall Street's Lock on Algorithmic Trading(advancedtrading.com ↗)

3 points · by fawce · 13y ago · discuss

109.

Encouraging Women To Be Quants and Programmers: Jessica McKellar(blog.quantopian.com ↗)

2 points · by fawce · 13y ago · discuss

comment 13y ago · link · parent

Great of you to take the time to watch and report back, thanks!

111.

An Intro to Algorithmic Trading Models by Prof. Ahmad Namini(blog.quantopian.com ↗)

7 points · by fawce · 13y ago · 2 comments

112.

Welles Wilder's Average Directional Index trading algo in Python(quantopian.com ↗)

1 points · by fawce · 13y ago · discuss

113.

Python for Inverse volatility weighting for traditional stock/bond portfolios(quantopian.com ↗)

1 points · by fawce · 13y ago · discuss

comment 13y ago · link · parent

Very cool to hear from you, and to learn that Bloomberg is open minded about new models. I'd love to learn more - my email is on my profile if you want to drop me a line.

115.

Inferring latent stock price states using a Gaussian Hidden Markov Model(quantopian.com ↗)

4 points · by fawce · 13y ago · discuss

comment 13y ago · link · parent

The unrealistic aspect of that backtest is the total leverage - the algorithm ends up borrowing something like $700k on an initial balance of $10k.

Why not prevent this borrowing in the backtest? Quantopian's philosophy is to report the results, rather than block you from trying outrageous scenarios.

Backtests are not predictive; they are a tool to investigate the behavior of your algorithm.

comment 13y ago · link · parent

The data is more expensive, but the other challenge is the complexity and volume of the data. Our thought is to build an end-to-end system on equity and then add other instrument types.

comment 13y ago · link · parent

Checkout http://www.interactivebrokers.com/en/main.php and http://www.lightspeed.com/

119.

Show HN: Zipline - algorithmic trading in open source Python(github.com ↗)

157 points · by fawce · 13y ago · 30 comments

120.

Smart Enough to Beat the Market? This Startup Will Help You Find Out(bostinno.com ↗)

5 points · by fawce · 13y ago · discuss

12345