News for hackers. Stuff that matters.
Re:Developing in Stockfighter with No Trading Experience by dantiberian on Friday October 30, 2015 @08:00PM (#10481259)
Was it HFT or the move to electronic trading that reduced the bid/ask spread by 10x?
Re:Developing in Stockfighter with No Trading Experience by gnaritas on Friday October 30, 2015 @09:21PM (#10481444)
You cannot really separate the two. If you support electronic trading, no matter what artificial restrictions you put on speed, the first person to get his order in will win, they will always compete on latency.
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Friday October 30, 2015 @10:23PM (#10481572)
If you allowed arbitrary precision (or even 8 decimals) then there'd be a bit less emphasis on latency, right? As is, a penny is worth quite a bit so everyone has to queue up at the same price making speed win.
Re:Developing in Stockfighter with No Trading Experience by harmegido on Friday October 30, 2015 @11:58PM (#10481742)
No there's a minimum spread that will exist because market makers won't make markets so tight that they are losing money. If they can't make money on the spread, then what's the point of posting that spread?

These discussions always happen whenever HFT is brought up. I've thought a LOT about how to remove a latency advantage from this game, and I just can't find a way to do it. I'd love to be proven wrong though. (And actually, so would the HFT shops - they hate the speed race).

Re:Developing in Stockfighter with No Trading Experience by tomjen3 on Saturday October 31, 2015 @07:06AM (#10482350)
The minimum spread isn't a fixed quantity, different traders will have different minimums. Right now there is a price floor, below which the price cannot fall, which is bad for all those who want to transact in the stock market.

As for the speed race, why not limit transactions so that they can only be executed on the dot, once every $TIME_STEP? You won't be able to see what orders others have been put out, so you don't gain that much of an advantage by sitting on a very low latency connection.

Re:Developing in Stockfighter with No Trading Experience by mrchicity on Saturday October 31, 2015 @12:33PM (#10483157)
This is correct. In ultra-liquid stocks, with a finer tick increment, natural buyers and sellers could undercut the market-makers' spreads since they aren't concerned about making short-term profits. Market-makers could also compete with more diverse pricing.

It is not necessarily a bad thing to have a price floor. Removing the floor is a good thing for the parties that meet at the tighter spread, but there is an externality where somebody who wants the shares nearly as much has their order go unexecuted despite providing price discovery to the market by showing their order. Look at GOOGL for example. It is $700 with a $0.01 price increment. Somebody can jump in front of your order by paying just 0.0014% more, there is little incentive to show limit orders on the market, which this makes the order book very thin. There is probably a better balance where the tick is large enough to avoid people jumping your order, but small enough that traders can compete: https://www.sec.gov/comments/4-657/4657-40.pdf has more comments on these effects.

You can trade in a single price auction in almost every market worldwide. A large amount of volume in US equities trades in this way, so people already have this option, but many choose not to use it.

Re:Developing in Stockfighter with No Trading Experience by gnaritas on Saturday October 31, 2015 @02:58PM (#10483684)
> As for the speed race, why not limit transactions so that they can only be executed on the dot, once every $TIME_STEP? You won't be able to see what orders others have been put out, so you don't gain that much of an advantage by sitting on a very low latency connection.

Sure you do, you're still first in whatever line there is; latency still matters no matter how much you try and slow execution speed down. Latency isn't about the speed of trading, it's about being first in line regardless (speed to the sales counter) of what speed the trades are limited to.

Re:Developing in Stockfighter with No Trading Experience by tomjen3 on Saturday October 31, 2015 @03:22PM (#10483806)
I should have been more clear here: all orders that come in in the time interval are resolved at the same time (or if that isn't possible, the order is randomized). It now doesn't matter if your order came in a minute or a second before the deadline.
Re:Developing in Stockfighter with No Trading Experience by kbenson on Saturday October 31, 2015 @03:54PM (#10483938)
Even if you randomize the order, you just open yourself up to gaming the system in other ways. Larger players with more resources can split large orders into many small orders and they be assured a certain percentage will happen earlier, and certain percentage will happen later, but if you have reason to believe that there isn't enough supply at the desired cost, you can use this to your advantage.
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Saturday October 31, 2015 @04:16PM (#10484015)
Randomization usually doesn't work in solving such issues. But making trades execute simultaneously doesn't need to randomize. You can just give everyone a pro rated amount. A firm that submits large order gets more shares filled. This isn't really game able is it? If a firm quotes a price for 10x the shares, the run the risk of actually trading all the shares at that price!

(There's also more complicated rules possibly, like trades only execute when there's a certain demand, or other liquidity based measures. Not sure they're good but it's an option.)

Re:Developing in Stockfighter with No Trading Experience by kbenson on Saturday October 31, 2015 @05:41PM (#10484320)
I'm not sure how well a pro-rated amount would work. Just because I'm willing to pay X for Y quantity of Z, doesn't mean my order makes sense if the quantity is scaled up or down, so forcing this on all market participants might have some interesting effects. Do you have other markets where this is the case, I would be interested in looking at this in a slightly less theoretical context before I felt comfortable with how the behavior would settle (not that I'm all that knowledgeable about financial markets in general).

> (There's also more complicated rules possibly, like trades only execute when there's a certain demand, or other liquidity based measures. Not sure they're good but it's an option.)

Well, I'm not sure any set of rules isn't able to be gamed in some manner. Larger players will have an advantage as long as rules don't specifically penalize them, as they have all the capabilities of smaller players plus extra capabilities provided by economies of scale and dedicated resources. Even when you specifically penalize specific participants to reduce "unfair" advantages, I think what generally happens is that some participants move into the niche just outside those penalty definitions, to eke some of the prior advantage in the new grey area. This seems to be the norm in almost all regulation, IMO. Not that the regulation is always useless, but you can't game a system without rules, and regulation by it's nature provides more rules to look for specific ways to exploit.

Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Saturday October 31, 2015 @06:21PM (#10484458)
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Saturday October 31, 2015 @04:49AM (#10482195)
What stops an exchange from quantizing to, say, a second or so? Use proportional matching, or something even more clever like POSIT does. I'm sure there's a reason that this simple idea doesn't work but I haven't figured it out yet.

As far as more decimals, it doesn't sound plausible that all the market makers are gonna come up with the same price to 8 decimals. So the time priority will give way a bit to price priority.

Re:Developing in Stockfighter with No Trading Experience by gnaritas on Saturday October 31, 2015 @02:52PM (#10483662)
> What stops an exchange from quantizing to, say, a second or so?

That wouldn't be fair, an order book is a line, such a rule would allow people to cut line and get shares at better prices before you allowing them to drive the price up or down even though you were in line before them.

> As far as more decimals, it doesn't sound plausible that all the market makers are gonna come up with the same price to 8 decimals. So the time priority will give way a bit to price priority.

That's how it used to be, compete on price first, but a minimum decimal put in place by law, the sub penny rule, to try and dampen HFT, it's only made latency more important since HFT traders can no longer compete on price. And he's right, there's always a minimum price below which there is no profit, so whoever posts that price first wins. Orders compete on time and price because that what is fair. Latency is inherently part of fair trading, you can't remove it and keep the market fair.

Re:Developing in Stockfighter with No Trading Experience by kbenson on Saturday October 31, 2015 @03:46PM (#10483912)
> That wouldn't be fair, an order book is a line, such a rule would allow people to cut line and get shares at better prices before you allowing them to drive the price up or down even though you were in line before them.

Well, I think the problem is less that the book is a line and it's not fair (the definition of fair would change in this system, it would be fair that you had the same chance as everyone else in that time frame), but more that you open yourself up to different problems, such as the larger players being able to split their orders up in to many smaller orders, to increase they chance a large percentage of their orders will go through before any supply has dried up.

There's actually another industry that has to deal with these problems, and especially with pecieved fairness. Online event ticketing. Ticketmaster runs a queue. AXS runs a randomized pool. Both are gamed. Interestingly, I think some brokers actually do colocate close to TM servers, which makes the parallel fairly obvious.

Re:Developing in Stockfighter with No Trading Experience by eru on Sunday November 01, 2015 @11:35PM (#10490009)
Online event ticketing could get rid of scalping completely, by auctioning off the tickets, if there's excess demand.
Re:Developing in Stockfighter with No Trading Experience by kbenson on Monday November 02, 2015 @01:44PM (#10494020)
That wouldn't eliminate the problem. Demand changes over time, and supply is fixed. There are quite a few ways to invest in tickets. One is to buy all the tickets on an event that is expected to sellout immediately. Another is to find an event that you expect to sellout at some time before the event that will allow enough time for demand to build, and you buy tickets before it sells out. In the end, ticket prices change over time, therefore there will be a market. Even if the primary seller (e.g. TicketMaster) raises prices, if you bought at a time when they were cheaper, you can resell at a profit.

Event ticketing is a market, and as such there will be people that want to invest (even if it's just fans who intended to go and then decided they couldn't, or the money they could get for the tickets is too much to pass up). Scalpers (brokers) provide a service, liquidity. Often they go too far, and use technology to get tickets in unethical ways (ignoring site policies, bypassing captchas, using software to tie up thousands of tickets they have no intention of buying, etc). But the fact that they continue to exist is because there is demand (and now TicketMaster is in on the game as well, their TM+ service allows you to resell tickets on their site along-side their own, unsold tickets).

Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Saturday October 31, 2015 @04:13PM (#10484008)
This isn't true. I've been reading up on this, and there are markets that sorta do exactly this. "Call markets" instead of continous markets, I think? (Or a hybrid with "crossing" markets?) One example is POSIT where you submit orders and the matching rules are not a time line, but use other criteria (price, size of order). Even some continous markets give size priority. And to the extent you can "cut in line", that's the whole point of a quantized trading period. Instead of rushing to the best price, anyone that orders at the same price will get filled equally. This kills the need for speed. (The trick is probably in making cancels take place in the next quantized period.)

As far as sub penny, presumably different firms would have different costs, so the level of profitability would be different. While dominated by exchange fees (or rebates), at 8 decimals there's still room to compete. (Perhaps with new order types that allow displaying your quote rounded, so as to not trigger another feedback loop where firms keep lowering by 0.00000001.)

Re:Developing in Stockfighter with No Trading Experience by gnaritas on Saturday October 31, 2015 @04:42PM (#10484120)
You can only use other criteria, when the others differ. For the same size and same price order, what possible argument can be made to fill the last arriving order first and still claim a fair market? At some point, latency always matters. If you randomize so latency doesn't matter, you just create a system where those with more capital get more orders. However you want to "fix" it, you're still going to be making a system that isn't fair to someone. Most people would agree that waiting in line is the most fair option IMHO, and that's proven out by normal human behavior in the day to day world.
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Saturday October 31, 2015 @05:38PM (#10484310)
What possible argument? Simple: This exchange works on a 5-second quanta. All orders arriving within a quanta are treated equally. How is that unfair at all?

Like I said, there are systems that do exactly this.

Re:Developing in Stockfighter with No Trading Experience by gnaritas on Sunday November 01, 2015 @03:36PM (#10488121)
> This exchange works on a 5-second quanta. All orders arriving within a quanta are treated equally. How is that unfair at all?

It's unfair to the trader who put his order in first just as it'd be unfair to walk up to a sales desk and cut in front of people who there before you. All this does is slow down trading, it doesn't make it any more fair and now you can play the latency game for putting your orders in at the last second while allowing more time to analyse the data. 5 seconds is a long time to a computer.

That such systems exist is beside the point, they are less fair than simply allowing the fastest trader to trade first.

Re:Developing in Stockfighter with No Trading Experience by eru on Sunday November 01, 2015 @11:40PM (#10490022)
You have a weird notion of fairness. Why reward investment in low latency above all other investment?

In any case, quantising to eg 1s, allowing arbitrary sub-penny bids, and fulfilling by prize and using time as a tiebreaker would be `most fair' in some sense:

The counterparty gets the best price. And people are only able to `cut in line' if they make a better price.

(I don't think the fairness of waiting in line is a fundamental thing. It's just one way for humans to allocate scarce resources, and it's not very economically efficient---it just works well with human psyche and social norms.)

Re:Developing in Stockfighter with No Trading Experience by gnaritas on Monday November 02, 2015 @01:30PM (#10493900)
> You have a weird notion of fairness. Why reward investment in low latency above all other investment?

I didn't make that claim, best price should be ahead of place in line. But place in line is the next most fair thing.

> In any case, quantising to eg 1s, allowing arbitrary sub-penny bids, and fulfilling by prize and using time as a tiebreaker would be `most fair' in some sense:

Remove quantising to 1s and I agree. Quantising makes it in no way more fair and removes the ability to use time as a tiebreaker. If time is the tie breaker, you don't need to quantisize as it adds nothing.

> (I don't think the fairness of waiting in line is a fundamental thing. It's just one way for humans to allocate scarce resources, and it's not very economically efficient---it just works well with human psyche and social norms.)

It works well with the human psyche and social norms precisely because it fits our innate ideas of fairness, and thus fairness is a fundamental thing. It's so fundamental in fact that it's evolved into us as experiments with monkeys and fairness show it to be innate.

Re:Developing in Stockfighter with No Trading Experience by harmegido on Sunday November 01, 2015 @02:45PM (#10487824)
It doesn't work though. Lets say there are 500 lots bid at a price and 700 lots offered at the same price. Which of those 700 lots on the offer gets filled once the 5-second call occurs?
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Sunday November 01, 2015 @03:06PM (#10487948)
Like any other pro-rata system? How is this difficult to make work? "Call markets" do exactly this. POSIT does this. Even NYSE does this in some cases to give priority to specialists.
Re:Developing in Stockfighter with No Trading Experience by justinjlynn on Friday October 30, 2015 @08:10PM (#10481287)
Certainly electronic trading. I've found this to be an excellent article deflating HFT benefit myths: http://www.nanex.net/aqck2/4594.html
Re:Developing in Stockfighter with No Trading Experience by MichaelGG on Friday October 30, 2015 @08:56PM (#10481396)
The article is a bit suspicious. It talks about Thor, which timed orders to different exchanges so they'd arrive simultaneously. This is because a market maker would notice a large order on one exchange, and raise his price. This is totally and utterly expected - why should a market maker take undue risk? Increase the latency - suppose a user submitted a large buy order to Exchange1, waited an hour, then sent it to Exchange2. Is it not reasonable that the price would go up? So why is it suddenly so controversial when it happens on shorter timeframes? Why should RBC be able to make big trades and not have to deal with price impact? Why should market makers be left holding the bag?

Now whether or not HFT adds more value seems debatable. But it seems to be a fairly harmless result that naturally arises.

Re:Developing in Stockfighter with No Trading Experience by mrchicity on Friday October 30, 2015 @10:33PM (#10481596)
HFT has been around for a while longer than Reg NMS: http://www.bizjournals.com/kansascity/stories/2005/01/17/sma... describes an major player doing something that sounds similar to modern HFT in Jan 2005, presumably they'd been trading that way for a while.
Re:Developing in Stockfighter with No Trading Experience by harryh on Friday October 30, 2015 @08:56PM (#10481394)
HFT. It's basic automation. Taking (slow, expensive) human decision makers out of the loop drastically reduced costs.