Re:Ask HN: Any material on algorithms for a stock exchange s...
by swah on Thursday June 16, 2011 @08:33AM
(#2660958)
Are they actions of buying and selling be the sole driver of the price?
[ Parent
| on HN ]
Re:Ask HN: Any material on algorithms for a stock exchange s...
by digamber_kamat on Thursday June 16, 2011 @08:48AM
(#2661008)
Real stock markets work that way (so we believe) but a simulation engine need not make it work that way main reason is that our initial user-base will be very small and that wont result into major changes in the prices and hence they will get bored pretty soon.
Re:Ask HN: Any material on algorithms for a stock exchange s...
by cheddarmint on Thursday June 16, 2011 @10:25AM
(#2661340)
I think you could go one of two ways with this:
1. Consume live market data and use an exchange simulator that always gives you back a fill. 2. Use a true exchange simulator, which you will have to seed with orders to provide liquidity and generate real quotes (with a proper spread and not locked or crossed).
With the second approach, you get a more accurate representation of how markets work, but the exercises will have to be more planned out and directed.
Just my $0.02.
Re:Ask HN: Any material on algorithms for a stock exchange s...
by Sukotto on Thursday June 16, 2011 @10:28AM
(#2661354)
In that case, I would consider doing what Matthias did for for his game [1]
The computer will present you with a random historical
stock chart of an actual large cap (S&P 500) security,
without telling you which company and time period the
chart represents.
You are then given the opportunity to reveal the stock
chart one day at a time, selecting to "buy" or "sell"
the stock at various times. After a maximum of one year
is played for the security, the actual name of the company,
and what time period the graph was for is revealed...
You are rated on how much profit you made over the days
you were invested... [compared] to a strategy of "buy and
hold" on the stock.
[1] http://chartgame.com/
Re:Ask HN: Any material on algorithms for a stock exchange s...
by tarkeshwar on Thursday June 16, 2011 @09:29AM
(#2661137)
You could use ticker names and quotes from one of the real stock exchanges to start with. This could act as base prices with some changes due to buying/selling in your engine. Till you get lots of users.