HNHacker News
TopNewBestAskShowJobs

nv-vn

1,960 karma · joined August 14, 2015

Github: https://github.com/nv-vn
submissionscomments
nv-vn··on We chose Java for our high-frequency trading application
I didn't mean to call the GFC a bug, I'm saying that the instances where volatility has significantly and immediately spiked have been:

1. The GFC which wasn't caused by HFT

2. Certain instances where HFT bugs led to "flash crashes"

>If the point is to have a stock market where people make investments, HFT literally serves no purpose

This is patently false. Imagine a situation where the price of AAPL suddenly plummets because of an influx of sellers. If you want to close a long position with AAPL to lock in your gains, there will simply not be enough buyers for your shares to sell most of the time. The purpose of market makers is to make this sale possible because they are still able to profit or nearly break even from buying your shares (and are often contractually obligated to do so). Without someone taking the risk that market makers take, the stock would just free fall indefinitely and nobody would be able to take a profit off their investment.

A similar situation is options market making. People/institutional investors like Warren Buffet hedge their bets by purchasing options to protect them when their expectations fail to pan out. In such a situation, it is imperative that options are able to be purchased for a fair price and due to volatility the price from 10 minutes ago is almost certainly wrong. Likewise, it's important that a contract even exists for your desired purposes.

The purpose of HFT isn't just to give the most recent update, but rather to provide the essential pricing of various derivative instruments which depend on immediate values like the price, volatility, etc. of the underlyings. The immediate ability for your order to execute also protects you from the market's volatility, since you can essentially lock in your price as soon as you see the market moving. The blatant truth is that many modern portfolios consist of more than just unhedged long positions in a variety of stocks and as such a lot more complexity is required than "investing by a company's merits," even in the world of "value investing."

nv-vn··on We chose Java for our high-frequency trading application
Maybe to some extent? The teams doing proper HFT are all dealing with C++ or hardware. This is true across the industry AFAIK at places like HRT, Citadel Securities, Jump, etc. Some of these might use some Java for things that don't require low latency but those aren't really considered HFT.
nv-vn··on We chose Java for our high-frequency trading application
This is a really frustrating comment because it has so little to do with the real world of HFT.

>In a sane market, there would be no advantage to making an investment and then selling it a few milliseconds later.

And yet exchanges (NASDAQ, NYSE, CBOE, LSE, CME, Euronext, etc.) actually _PAY_ HFT firms to do this exact behavior since it provides actual, quantifiable benefit to the exchange and its customers.

>It introduces unnecessary volatility and incentivizes insider trading and other illegal activity[1].

The firm mentioned (Trillium) is not a player in HFT, they are a day trading proprietary trading firm where the firm basically gives individual traders (borrowed) money to use however they want. In this case, some of the traders decided to break the law because there is no real oversight at this kind of firm. When looking at reputable proprietary trading firms (i.e. the kind that don't just hire random people and give them money to play with) this type of behavior simply does not happen. I agree that these types of places are extremely scummy (and are probably responsible for a ton of insider trading crap & the like), but they are not representative of the HFT industry at all.

As for the comment on volatility, the idea behind HFT is actually to help reduce volatility. Outside of a few bugs (such as the Knight Capital debacle you mention) and the Global Financial Crisis, it seems like volatility is trending downwards in part due to HFT. In the same vein, liquidity has exploded thanks to HFT (which is why exchanges pay for HFT). It means that you no longer have to wait minutes or hours for your trades to execute and you can usually get the most up to date price very easily.

nv-vn··on We chose Java for our high-frequency trading application
I disagree. Trading may seem zero sum on a short timescale, but over the long term markets (empirically) trend upwards. Thus, simply being invested in diverse indices should yield some positive return in the long run. This makes sense as long as we assume GDP growth over time, which is an assumption that has kinda been baked into government/economics to my understanding.

At a short time scale, yes there tends to be a winner and a loser, but even then it's not so clear cut. Most of the trades happening at a short time scale are institutional rather than retail (i.e. people who have the risk tolerance for this type of trading & who have profited enough from it to keep doing this type of behavior). The activity of most HFT firms is some combination of market making & arbitrage, where the profit can be thought of as a fee for trading for other participants (e.g. Robinhood doesn't charge commission but sells order flow, which tends to be cheaper than commission per trade). In general, price improvement is also possible since these make markets more efficient, so as an example it would not be unusual to see firm A sell to firm B who sells to firm C, where both A & B see a profit from their sales. This is possible because prices across markets are not automatically synced, so A has access to a better price than B who has access to a better price than C. And because institutional trading dwarfs any kind of retail trading, the trades can appear high frequency from the perspective of the HFT firm while only occurring, say, once every six months from the perspective of the retail trader.

nv-vn··on We chose Java for our high-frequency trading application
Jane Street famously uses OCaml for these types of guarantees, so I would think Rust would offer similar benefits.
nv-vn··on We chose Java for our high-frequency trading application
Probably a hardware team using FPGAs. Software tends to be way less predictable than hardware, so to even get to the point where you can reasonably count nanoseconds it often requires hardware
nv-vn··on Firefox usage is down despite Mozilla's top exec pay going up
I didn't get that. I think it's something they added in a second update after complaints from people who already updated
nv-vn··on Palantir S-1
I'd guess that a lot of the delay comes from auditing and then getting someone at the SEC to actually read your filing before publishing it. In terms of how many people are involved, this might help give you an idea: "We have engaged Morgan Stanley & Co. LLC (“Morgan Stanley”), Credit Suisse Securities (USA) LLC, Goldman Sachs & Co. LLC, Allen & Company LLC, RBC Capital Markets, LLC, Citigroup Global Markets Inc., Jefferies LLC, HSBC Securities (USA), Inc., SG Americas Securities, LLC, CIBC World Markets Corp., Scotia Capital (USA) Inc., and MUFG Securities Americas Inc. as our financial advisors."
nv-vn··on Palantir S-1
I know for earnings reports the SEC uploads XBRL documents to EDGAR. Weird that they don't do the same for S-1s.
nv-vn··on Palantir S-1
Wow that is just insane, 38% of revenue in 2019 for just 4 executives at Snowflake... how the hell do they justify that?
nv-vn··on Palantir S-1
Asana's financials are way worse. The margins and revenue growth are useless when they spent 87% of profit on marketing for the last quarter. It seems like it's extremely expensive for them to make new sales and probably not cheap to retain current sales. And even when you take away ALL of those costs, they would have earned less than 1/4 million in the last quarter. If you look at the picture for the whole year it's even more ridiculous -- they would've shown a loss of $14 million in EBITDA if you REMOVED all of their marketing. I really doubt that they'll be able to turn that ship around with any amount of growth considering how much the marketing expenses have grown (36% vs. average of FY2019, or almost 100% y/y).
nv-vn··on Asana S-1
Why not model based on expected future cash flows? That's basically the gold standard in finance and what you'd expect most investors to follow.
nv-vn··on Asana S-1
This filing looks like it has a ton of red flags about the way Asana is running their company. As an example, one of the images tries to highlight Asana's timeline and their achievements [1]. One of the things they mention is opening an international office with ~100 employees and <11k customers. Based on their current figures of 75,000 paying customers and revenue of $142,606,000, you would expect a revenue of ~$19 million for 11k customers. Why is a company with 100 employees & <$19 million in revenue opening international offices? Likewise, why is the company spending 74% of revenue on sales and 63% on R&D? How are they managing to lose 83% of revenue? It seems like the company has 0 responsibility with how they spend their cash and beyond that, it's unclear whether they even have a path towards profitability if they're spending 75 cents on the dollar just to make a sale and throwing almost $100 million at R&D every year. Despite substantial revenue growth y/y (~70%), they've managed to outpace it by growing losses twice as fast at ~140%. It seems like the company has a pretty good product and a great gross margin as well as good revenue growth, but I don't see them becoming profitable with their current management -- it seems like the folks in charge right now have no clue how to run a successful business and will just throw money away as soon as they're given it.

[1] https://www.sec.gov/Archives/edgar/data/1477720/000119312520...

Disclaimer: I'm not a professional investor and I'm not familiar with Asana's business

nv-vn··on Unity Software Inc S-1
I think it has to do with the fact that HN has many users who are employed at startups. When you get paid in what is essentially monopoly money, you're going to be envious of startups which are able to turn that into cash. It seems to me like it's just the side effect of people having 90% of their net worth tied into a private company's equity and wanting the golden ticket to actually redeem it.
nv-vn··on Unity Software Inc S-1
> it's not like they were running at a loss

Well looking at their income statement, they were actually running at a loss haha

nv-vn··on Airbnb Plans to File Confidentially for IPO in August
I'd imagine that they're in desperate need for more funding, as their valuation will have certainly gone down since the start of the pandemic. One of the big advantages of going public (apart from selling the equity) is that you get easier/lower cost access to loans. I can imagine Airbnb aggressively issuing bonds once they go public in order to stay afloat for the remainder of the pandemic.
nv-vn··on Cheap FPGA Development Boards
Disclaimer: not an FPGA expert

I think really any task can benefit from being ported to FGPA, but FPGA clocks tend to be slower than CPU clocks and large logic will force you to lower the clock as components become more spread out on the chip (assuming all the logic elements needed even fit on your board). The caveat is that it's expensive to do things in hardware, and some things are already designed very well -- if you need to design a whole CPU from scratch on an FPGA to run your code it'll obviously be slower, but it will also take way too much time to get it anywhere near real world performance per clock. Since TCP/IP and SSL are mostly pretty specialized, the answer is yes. If you're interested, there's some open-source projects that do part of this https://github.com/fpgasystems/fpga-network-stack)

nv-vn··on D.E. Shaw and how computer geeks and English majors transformed Wall St. (2018)
>But secondary trading is still a zero-sum game.

This is a claim that I think you really need to back up with some kind of proof, because it is so central to your line of thinking. All the points in your comment follow if this is true, but they are also all questionable if this is not true.

nv-vn··on D.E. Shaw and how computer geeks and English majors transformed Wall St. (2018)
I can see where you're coming from, but it's important to remember that what they are competing on is not only time but also spreads. Spreads have tightened substantially over the past couple decades thanks to these firms [1], which means that the total amount to be made per trade has dropped significantly. On top of that, the landscape has become so competitive that trading firms are now purchasing order flow, which basically subsidizes broker commission fees for trading. This is a huge win for retail investors, as the cost of trading has made it much more accessible -- in the past you would have had to buy many more shares and make a much higher return to offset these additional costs of trading.

[1] https://awealthofcommonsense.com/2016/04/trading-costs-the-n...

nv-vn··on Principles of Programming Languages (1997) [pdf]
I think you're thinking of the wrong definition for "meaning." OP is talking about what code in a language means, i.e. when I see the code say `1 + 2` does that mean that the numbers signed or unsigned? Are they arbitrary precision or a certain size? What errors can result from the addition? Etc. It's essentially saying that you can look at a piece of code and formally define what it means to the computer
nv-vn··on “It'll all be over by Christmas” (Part 2)
This is like the biggest [citation needed] I've ever seen
nv-vn··on German stock trading platform Xetra down, all securities affected
Market makers routinely have to adjust their quotes as the price moves. If they set a price and then the market moves significantly, the price will soon be incorrect. If they leave the order on the book then they might get undesirable fills (losing money) or it might just sit there and never get executed because their price is worse than what the market is offering. In either case, it's useful for them to be able to adjust their quotes by cancelling previous quotes that are not up to date with the latest information.

Imagine if every time you go to the gas station and see the big price for a gallon you write it down. Should the gas station still have to offer you the lowest price over the past {day,week,month} if the price has gone up? "Cancelling" orders is this same idea of changing the offer, only at a much smaller time scale because markets trade extremely fast.

nv-vn··on German stock trading platform Xetra down, all securities affected
Is it even a legitimate problem? Exchanges are well-equipped to deal with this kind of thing and direct access to exchanges is moderated by broker-dealers. As a normal user (algo trader or otherwise), you cannot directly plug into the exchange and spam orders. And anyways, exchanges (even IEX) _want_ the arbitrage and liquidity that market makers offer.
nv-vn··on Building AI Trading Systems
That's an interesting point that I didn't really consider. Thanks!
nv-vn··on Building AI Trading Systems
Agree to an extent, but not all money in quant finance is generated through HFT. Notably, I don't think funds like Rentec are really doing much to get low-latency [1]. Latency obviously does matter for any kind of quant trading, but to my understanding a good enough strategy + slippage models & the likes can overcome this.

[1] You can find a list of NYSE broker/dealers here: https://www.nyse.com/publicdocs/nyse/markets/nyse/members/NY... -- any firm where latency matters will need to be on this list to colo on the exchange.

nv-vn··on Building AI Trading Systems
I mentioned the idea of adjusting for risk in the GP post, though you are correct that I didn't call out any specific measure like the Sharpe ratio by name. If your risk-adjusted returns are worse than S&P 500 then obviously leverage isn't going to fix that problem. Simply put, I don't think OP's strategy really has any of these desirable features like a good sharpe, market neutrality, low exposure, etc. I think OP is just naively building a portfolio based on price predictions extrapolated from price data, and it happens to work in a bull market. Since OP probably doesn't have the resources to really evaluate risk (good simulation tools, good historical data sets, & even the industry know-how of how to look at risk) it seems rather meaningless to hear "I used to have very good returns."

Apologies if I misinterpreted your comment, just my thoughts when reading it.

nv-vn··on Building AI Trading Systems
Modern finance is built on top of this type of technology. There are hundreds if not thousands of firms participating in "quantitative finance," attempting to use computers/statistics to predict markets. The vast majority of trades go through major practitioners of this exact idea.
nv-vn··on Building AI Trading Systems
I think the answer is yes & no. If you come up with a sufficiently clever strategy using public data that other people haven't thought to use it's definitely doable. For example, someone with a good understanding of meteorology would've had a significant advantage a few decades ago (though trading firms have since caught on). You wouldn't need a perfect data set if the strategy isn't being used.

In terms of strategies based purely on market data, you are definitely correct. Any publicly (freely/cheaply) available market data is low resolution, lacking the full data from any point in time, and generally based on poor approximations of the actual data (elsewhere in this thread someone mentions that IEX's data is based on trades that get routed through the IEX exchange, which obviously misses any data you could get from the markets that make up 99% of the volume, dark pools, etc.).

I think the "sweet spot" is simply coming up with a strategy that nobody else has thought about, or else executing a better-known strategy more effectively than other market participants. Both are hard, but somewhat in the realm of possibility. The problem is that many people think there's free money to be made without either of these.

nv-vn··on Building AI Trading Systems
Also considering you're the OP & are trying to argue in favor of this type of trading, it would be very informative to disclose what kinds of returns you actually made. It's hard to expect people to listen to your opinion in a game where everyone successful is motivated towards secrecy.
nv-vn··on Building AI Trading Systems
If the above is true, why would a fund not just allocate a small amount of resources to trade on OP's strategies. Either:

(1) OP's strategy performs worse than the alternative (2) They already do this, and have resources that allow them to outperform OP at their own strategy

If the returns are really meaningful, i.e. better Sharpe ratio than just holding $SPY or some dead simple strategy like that, then (2) must be true at least _somewhere_.

← PreviousPage 2 of 25Next →