News for hackers. Stuff that matters.
Re:Algorithmic Trading with Go by ye-olde-sysrq on Friday June 30, 2023 @03:05PM (#36540471)
I worked in HFT for a while. I find the whole space fascinating. I'm glad OP found similar thrills.

"This aspect, the platform itself, seems to be often overlooked in most discussions. Many conversations revolve around strategies (mean reversion, trend following, linear regression, etc.), and backtesting, without fully addressing the practical mechanics or logistics of strategy implementation, particularly in the context of live, intraday trading."

I'm glad you had fun, OP, but also I think I can shed some light on why most people discuss strategy.

Trading is a perfect storm of ridiculously high tech, ridiculously complicated, ridiculously regulated (Not over-regulated, mind you, this isn't a value judgement. But the amount of regulation is extremely high.), and ridiculously competitive.

But that said, it's the last bit that drives it all. Since it's so competitive, even though building an order entry system, and a risk system, and a position-tracking system, etc is a huge accomplishment (again, congrats OP!), it's table-stakes to even dip your toes in the pool here. Trading shops can attract top talent and robust, bespoke trading systems are basically cost of entry.

So people talk about strategy because everyone already has the table-stakes stuff and are now trying to make money with it.

It doesn't help, too, that lots of market participants aren't even playing the same game. In HFT, we operated on trades with alphas that lasted a few seconds, where races to entry/exit were battled in shaving nanoseconds off FPGAs being able to shoot out orders and microseconds off wireless networks flying market data around new jersey. Meanwhile, banks are more concerned with elections and geopolitics than they are about the weather in Carteret. (Rain = no microwave network for the day). And then there's a million strategies in the middle with alphas that last from hours to weeks.

So it makes it really hard to even speak the same language to each other when talking in common forums.

It's a fun world. I miss it sometimes.

Re:Algorithmic Trading with Go by joshu on Friday June 30, 2023 @03:20PM (#36540721)
also having worked in the space: HFT should not exist. Break up the day into segments and have a single crossing. Do it every five minutes or whatever for sufficient timeliness. the millisecond race does not make anything better for anybody except the people doing the trading.
Re:Algorithmic Trading with Go by ye-olde-sysrq on Friday June 30, 2023 @03:35PM (#36540945)
I think you would still end up with races, they'd just move around. IEX's "speed bump" was just marketing and didn't really matter to actual HFTs.

Plus, some of it is unavoidable if you don't have a single unified exchange. Where there's latency, there's inefficiencies, and where there's inefficiency, there's profit to be made. And competition among exchanges is healthy for the ecosystem, so I don't think we'd want to consolidate.

And lastly, HFT has consolidated so much that I don't think it's worth worrying about. Virtu literally switched sides and make most of their money on order execution. Industry-wide, HFT revenues are down like 80% over the last 5-8 years. Between wholesaling/PFOF taking non-toxic order flow off the lit exchanges, and banks finally wising up on not being pants-on-head about their order execution, it's literally just sharks in the pool now, there's not even any water.

Re:Algorithmic Trading with Go by HWR_14 on Friday June 30, 2023 @03:48PM (#36541136)
Why is competition among exchanges a good thing? Why not a single, very regulated, exchange which serves as a neutral playing field?
Re:Algorithmic Trading with Go by tick_tock_tick on Friday June 30, 2023 @03:59PM (#36541310)
Single point of failure is a simple justification right off the top of my head. What happens if you have a critical failure that brings down an exchange for several days?
Re:Algorithmic Trading with Go by quickthrower2 on Friday June 30, 2023 @04:34PM (#36541829)
As a counter I had some VW shares I couldn’t access for 6 months because they were moved to another exchange. 20 calls to the broker to find out what had even happened. Eventually I was able to sell them.
Re:Algorithmic Trading with Go by tomcam on Friday June 30, 2023 @05:50PM (#36542848)
Well, your first problem was investing in VW (KIDDING!). But seriously, I usually stick to self-serve stock purchases. Was this a situation where you had to contact a human to make the buy in the first place, or was it that you bought it yourself, then VW changed up their infrastructure and inadvertently locked you out?

Shitty situation either way.

Re:Algorithmic Trading with Go by quickthrower2 on Friday June 30, 2023 @07:48PM (#36544256)
Self serve, one one of those trading sites. No human contact, until the site wouldn’t let me trade the shares. I think the exchange changed up things and I am buying from another country so communication issues etc.
Re:Algorithmic Trading with Go by tomcam on Friday June 30, 2023 @09:45PM (#36545422)
That feels like a gross violation of their fiduciary responsibility. Major bummer.
Re:Algorithmic Trading with Go by TheAlchemist on Friday June 30, 2023 @06:29PM (#36543368)
What do you mean « moved to another exchange » ?

Shares are not held at an exchange.

Re:Algorithmic Trading with Go by quickthrower2 on Friday June 30, 2023 @07:49PM (#36544262)
No idea. I don’t know technically what is meant by this.
Re:Algorithmic Trading with Go by TheAlchemist on Friday June 30, 2023 @09:06PM (#36545076)
Well, technically it’s false, so nothing :)
Re:Algorithmic Trading with Go by quickthrower2 on Saturday July 01, 2023 @02:16AM (#36547182)
I checked my email history on it. There isn't much but from what I can tell the exchange was changed that they were traded on but there was also a change in back-end broker and there was a delay of them moving the shares to the new back-end broker. So maybe the change of exchange wasn't the actual reason, just a coincidence.
Re:Algorithmic Trading with Go by HWR_14 on Friday June 30, 2023 @05:04PM (#36542250)
If the NYSE went down, wouldn't most trading stop because of people being frightened about using old mismatched prices?

Besides, when has an exchange gone done for hours, let alone days? Absent intentional breaks in trading as speedbumps.

Re:Algorithmic Trading with Go by chollida1 on Friday June 30, 2023 @05:13PM (#36542369)
> If the NYSE went down, wouldn't most trading stop because of people being frightened about using old mismatched prices?

Why would you assume that.

Every exchange is a valid place to trade and the sip ensures you always have the correct NBBO

Re:Algorithmic Trading with Go by HWR_14 on Friday June 30, 2023 @05:57PM (#36542944)
I assumed that some exchange provides enough volume that without it there would be worries that you aren't getting true price discovery. Isn't that a concern with low trading volume? Not that that would necessarily be true, but there would be enough concern to cause some people not to trade. And others to want to trade specifically with those kind of nervous people wouldn't because the people they expected to profit by were staying put. And then it would cascade.
Re:Algorithmic Trading with Go by xoranth on Friday June 30, 2023 @04:06PM (#36541434)
Lower fees.

Also, "exchange competition" is a thing in US stocks, but not, for example, in the futures' market. And there's HFTs in futures too, so having a single exchange wouldn't "remove" HFTs (not that you'd want to).

Re:Algorithmic Trading with Go by dchftcs on Saturday July 01, 2023 @12:01AM (#36546418)
>Virtu literally switched sides and make most of their money on order execution.

That's not true according to their filings. In their filing for 2022 Q4, I see 185m from market making, and 89m from execution.

Re:Algorithmic Trading with Go by WestCoastJustin on Friday June 30, 2023 @03:29PM (#36540854)
Amazing, I just checked out your profile. I used del.icio.us religiously back in the day. Thank you!
Re:Algorithmic Trading with Go by ilyt on Friday June 30, 2023 @04:00PM (#36541331)
...that's kinda entire stock exchange.

It could be all run once a day if it was just to give ability to raise funds via investment

Re:Algorithmic Trading with Go by Eddy_Viscosity2 on Friday June 30, 2023 @04:22PM (#36541675)
There should be transaction fees on all trades on all exchanges that go to the government, yes I mean a tax.
Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @06:17PM (#36543222)
Why?
Re:Algorithmic Trading with Go by auntienomen on Friday June 30, 2023 @04:49PM (#36542062)
Running the matching engine at discrete times doesn't eliminate the speed race, as that's mainly about jockeying for queue position. You could put in an auction instead, but that's just changing the rules of the game rather than eliminating the game.

But really, the key thing is that liquidity provision actually is a service -- market makers are basically selling insurance. There's money to be made doing his, so people will compete to do so. That's what the millisecond race is about. Faster trading -> less risk for the MM -> less capital needed -> lower profits acceptable. Contra what you're claiming, the race is cutting into profits, not raising them.

If you want to reduce market-maker profits, crack down on payment for order flow, and let everyone compete for a chance to trade against it.

Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @05:00PM (#36542208)
Ridiculous. This opinion is held by those who couldn’t cut it in the field because they don’t understand it. Out of bitterness they reach this conclusion.

HFT has consistently driven economic costs lower and lower and lower. Of course people can point to bad actors and apples here and there, but overall it performs a valuable economic function which the alternative suggested would not do as efficiently.

To understand this requires understanding markets very deeply and can’t be debated using liberal arts rationalizations.

Re:Algorithmic Trading with Go by grog454 on Friday June 30, 2023 @05:14PM (#36542370)
> but overall it performs a valuable economic function

Can you explain what that is?

> To understand this requires understanding markets very deeply

Apparently you aren't the only person on this forum who does. Are we just supposed to take your word for it?

Re:Algorithmic Trading with Go by mrcode007 on Friday June 30, 2023 @06:18PM (#36543231)
He’s referring to the fact that the HFT “provides liquidity” as in getting a share off your hands and flipping it to someone else that is not you a moment later. This way you didn’t have to wait 3 seconds or 1 minute or whatever to sell your shares because someone knew they could flip them (alpha) on a short notice so they participated in a transaction with you. He’s assuming that without the HFT, the transactions wouldn’t be as frequent and you’d have to either a) wait for the fill on your trade , or b) lower your ask price if selling under time deadline. Analogously for buy orders.

The only parties with semi-global visibility are prime brokers by definition; they see every position of everyone who custodies with them.

The parties with global visibility of the US market are TRF (trade reporting facility) and those are the only parties who can sort of evaluate the HFT claims without bias or vested interest. Most of the studies in the field have some sort of an angle or vested interest so it’s hard to evaluate the veracity of the claims one way or another.

A counterpoint to HFT is that stock markets existed before the the advent of computers and they had runs, panics and blow ups just like regular markets do now.

Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @06:40PM (#36543480)
I don’t have time to reply properly until a few hours from now.

In the meantime what I can say very simply in the hope that someone else knowledgeable can contribute earlier.

It’s simply an empirical fact that the costs of intermediation to the system are the lowest they have ever been. The US and other global electronic markets are incredibly efficient and deliver unmatched liquidity, information efficiency, and the lowest costs to the entire capital markets than at anytime in history. That march forward is continuous and brutally competitive

There are many many way to see this and measure it, any serious quantitative analysis, by professionals, for instance trained in econometrics and with access to the raw data, like those at say the Fed, or those operating exchanges, as examples.

Re:Algorithmic Trading with Go by mrcode007 on Friday June 30, 2023 @07:22PM (#36543982)
Your dismissals seem to be very biased and you’re not allowing the possibility of being wrong.

As a practitioner who worked on the systems you’re citing I can tell you’re wrong on many fronts.

As far as costs are concerned, you’re not answering the most relevant question that applies to most users of this forum: costs to retail traders, and are only tackling the institutional side of things. Nobody from retail concerns themselves with costs of intermediation because those costs are irrelevant to retail. Not at the order volumes that don’t even incur slippage.

Plus, fees are only part of the game. I can give you an NBBO improvement now to be compliant with the regulation, but I am not guaranteeing anything in terms of price in the next second. See where this is going?

Edit: by the way, what you’re repeating is what I jokingly call a “party line”. Especially if you look at the hard cold data. For example people often cite narrower spreads etc. but even with Interactive Brokers you can get MPID displayed on the NMS aggregated full depth order book and see who quotes how much and at what levels and the spreads don’t add up to the half of the myths people keep repeating. It’s easy to hide the real numbers in the _averages_ and various other statistics though.

Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @07:37PM (#36544132)
I’m a practitioner and no, the costs to retail traders is included and analyzed.

The most vocal critics of HFT are very often previously practitioners who are upset when their strategies and models becomes obsolete are are outwitted by even more efficient operators.

Give any example of where you are going?

I will say RegNMS and NBBO regulations are actually preventing even further efficiencies. Dark pools and off exchange matching or internalization are complex topic that are easy to misunderstand. There are absolutely bad actors to be found in the system. This is true in any system. But on aggregate the system is continuously reducing costs and improving efficiency.

Intermediation costs are a friction on the real economy and capital markets and they will always exist, but on aggregate they are dropping for all users, institutional and retail.

Re:Algorithmic Trading with Go by mrcode007 on Friday June 30, 2023 @07:56PM (#36544349)
I am not disagreeing with you that the costs are dropping and that participants benefit from that. In fact I agree. Your projection that I find the field unfair is also unfounded. I love the field and find it immensely interesting. I just don’t take mythology surrounding it at face value because I often found it to be a) outdated b) full of mythology but no hard data.

What I am saying is that the thesis that the costs are dropping due to HFT style strategies has not been proven. Majority of the HFT tend to be market makers which tend to help with liquidity but not all are. I agree that liquidity helps offload or acquire large stakes.

As for NBBO and the effect a regulation has on markets you seem to be extremely US centric but if you go across the ocean and find out that Europe has no concept of NBBO at all, and that a retail person trading experience is equivalent for getting a different price on Amazon depending on which web browser they use you could imagine how that would make an average retail person feel.

Another example of the regulation is trying to move a large stake outside regular hours when NMS is suspended. Why do you think OTC block trades are pre-arranged at a fixed price? You can even look them up in relevant reporting facilities.

As for dark pools, ATS and internalizers there’s nothing difficult about them. I don’t think you’re doing anyone any favors by obfuscating an extremely simple concepts. Those market participants with their specific mechanics that are learnable. What’s complex is how to devise strategies and how to rely on the liquidity sources to get your desired fills and desired rates. You’re describing bread and butter of trading at an institutional level and the fact it seems difficult can maybe be attributed to the fact that it is opaque, doesn’t enjoy public communities, e.g. very little blog posts exist on the subject and the knowledge is sort of centralized to a specialized corners of the industry. But it is learnable without great difficulty if you have access to the resources.

What’s surprising to me is that a lot of people can talk about abstract concepts in computer science and then don’t connect facts that bridge into a separate discipline. As an example I could refer to consistency that people love to rave about but somehow forget the concept the moment capital market is introduced.

And yes, I’m familiar with the no trade theorem and relevant academic concepts but they are all models that often don’t translate to real life due to extremely limiting assumptions that don’t enjoy any connection to reality. I think it’s a problem with the community in this particular industry to take academic market models at face value. Often you will find that looking at a model carefully with assumptions that mirror real world, your performance gets better.

Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @08:17PM (#36544556)
It’s true I’m US centric. What I do know about European equities market structure actually points to one specific problem that actually we also have some of in the US. I’d suggest you look at clearing house collateral regulations, especially around ETF transactions, creation and redemption, and posting of OTC positions. That part of the system, which btw isn’t HFT, is very very shady.

I agree it’s all quite understandable if people had the resources available. I would argue part of the reason it is opaque is the fears of operators that too much public attention can bring a lynch mob. This business can literally be one of the most profitable activities on the planet, but contrary to populist sentiment this is not evidence of wrong doing, it’s simply because it’s so automated and scalable and all electronic.

Back to ATS and dark liquidity, this isn’t as trivial to explain as you suggest, it requires understanding of flow toxicity and information theory to be understood completely. You must know that in markets, transactions can be beneficial to both parties as they have different objective functions and timescales.

What evidence can be presented that supports the idea HFT operators are extracting increasing costs on the system? I’m not aware of any.

Re:Algorithmic Trading with Go by mrcode007 on Friday June 30, 2023 @08:39PM (#36544812)
Yes, toxic flows and adverse selection are the magical buzzwords that get thrown around a lot. I’m familiar with glosten-milgrom model and private information and all related paradoxes.

What you’re failing to disclose is that there is an easy way out of solving the adverse selection problem. For example you could buy “uninformed flow”. I think that you could agree that for the touted sophistication of the field you would expect something … more sophisticated?

Again, don’t get me wrong. I love the field but I think it’s stagnant in certain aspects and I like to have a sober view of it.

Re:Algorithmic Trading with Go by alchemist1e9 on Friday June 30, 2023 @09:54PM (#36545493)
While I fully believe you are an experienced practitioner however I feel your thought experiment actually shows you don’t understand the underlying nature of capital markets in capitalism, the relationship between risk and liquidity, and the fractal nature of timescales of participants. I’m fortunate enough to have both a background in HFT but prior to that a background in many other aspects of capital markets and the broader financial system, which gives be a better perspective than the typical HFT strategist or engineer.

It’s too late in the day for me today to attempt to write a coherent and accurate explanation of exactly why I say that. However I will say you don’t understand this isn’t a zero sum game and it’s an incorrect argument to claim HFT is an arms race in a game like a war, which is a negative sum game.

Re:Algorithmic Trading with Go by mrcode007 on Saturday July 01, 2023 @01:11AM (#36546817)
You start sounding a bit like chatgpt with the “it is I who have the sole power of understanding” and self contradicting arguments. I never mentioned zero sum games or anything of the sort. Please don’t ascribe your thoughts to mine. I did helpfully screenshot your comment invoking war and claiming HFT is like it. I can jog your memory if you’d like. Now you’re claiming the opposite. Your arguments start becoming internally inconsistent.

Your risk argument doesn’t hold water because liquidity is not the only risk. There are at least 20+ I can think of from the top of my head without even trying.

I’ll rest my case here.

Re:Algorithmic Trading with Go by alchemist1e9 on Saturday July 01, 2023 @11:44AM (#36551297)
HFT is war but the system as a whole isn’t. My impression of our interactions on HN is you have a valuable insight that perhaps I can even agree with. However unfortunately I don’t know what it is yet as you haven’t explained properly what your hypothesis of negative effects or externalities HFT operators have.

HN isn’t the best forum for this type of ongoing discussion. Engage me on reddit if you like. u/alchemist1e9

Re:Algorithmic Trading with Go by mrcode007 on Friday June 30, 2023 @08:16PM (#36544545)
By the way, your description of profits dropping for market participants reminds of the concept you may find interesting.

Here’s an example of P&L dynamics:

At time t, your throw an unbiased coin. If it comes out heads your wealth multiplies by 0.6 with probability 0.5, or if it comes up tails, your wealth multiplies by 1.5 with probability 0.5.

Now you could simulate this process and take two averages. One is an ensemble average, averaging over many trajectories (of many participants) at a pre-defined time step t.

The other average is a time average (what happens to a a single trajectory picked at random over time). You may find the result interesting and close to what you’ve just described. This result is because of the process being non-ergodic; but it exhibits a few “winner takes all” and has nothing to do with the properties of the winners. It is a purely random property. An illuminating exercise. There are quite a few other results like this one from the field of stochastic processes that relate volatility bounds to your expected P&L, etc.

Re:Algorithmic Trading with Go by joshu on Thursday July 06, 2023 @10:06PM (#36626097)
Did you really mean to be this insulting?
Re:Algorithmic Trading with Go by alchemist1e9 on Saturday July 08, 2023 @02:58PM (#36647599)
Unfortunately I don’t understand why anyone finds my comment very insulting. However the primary moderator (dang) appears to agree with you it seems.

It’s unfortunate that calling out other’s bias is off limits in society too much as it’s often the primary reason people advocate their position.

HFT is not anything like what critics claim and those critics have severe biases.

Re:Algorithmic Trading with Go by joshu on Wednesday July 12, 2023 @02:41AM (#36691128)
You went directly to ad hominem. Not sure why you are surprised.
Re:Algorithmic Trading with Go by dang on Thursday July 06, 2023 @10:36PM (#36626358)
Please don't cross into personal attack or name-calling swipes, regardless of how right you are or feel you are.

https://news.ycombinator.com/newsguidelines.html

If you know more than others, that's great—please share some of what you know, so the rest of us can learn—or else don't post. Sneers and putdowns only make everything worse.

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...

Re:Algorithmic Trading with Go by blibble on Friday June 30, 2023 @05:15PM (#36542402)
periodic auctions are common on european exchanges (pesky limits on dark pool volume)

instead of order entry + continuous matching: order entry is allowed, but no matching (like pre-open phase)

then after a random period of time the auction algo runs on the entered orders

then repeat the entire thing every second

Re:Algorithmic Trading with Go by Ntrails on Friday June 30, 2023 @05:52PM (#36542878)
We tried this in Taiwan. They reverted to continuous matching.
Re:Algorithmic Trading with Go by kasey_junk on Friday June 30, 2023 @03:15PM (#36540647)
Not only are the platforms table stakes they are the more straightforward part to build. Even at the bleeding edge of latency you can usually work your way to the limits of your platform budget without having to find anything novel.

The strategies though are where the discovery is. There are a few strategies that are well known and still profitable but those are largely consolidated to the biggest firms. For everything else it’s a discovery process. And done strategies are only profitable for very short regimes.

I miss it sometimes too, but so much has been consolidated it’s largely a big firm world now.

Re:Algorithmic Trading with Go by ye-olde-sysrq on Friday June 30, 2023 @03:28PM (#36540838)
"they are the more straightforward part to build"

More straightforward, heh, sure. But still damnably complicated. Which just goes to show how much money and how much engineering talent is invested in this world that these things are so taken for granted.

Re:Algorithmic Trading with Go by ilyt on Friday June 30, 2023 @04:00PM (#36541347)
So many intelligent people applied for something that has no value whatsoever to humanity regardless of how you look at it.
Re:Algorithmic Trading with Go by allenrb on Friday June 30, 2023 @04:18PM (#36541606)
Essentially yes. When I worked in algo trading, it never bothered me that we were extracting profits from the markets, nor that we served little social good. It felt like a step up from where I’d been before (being told that we were making the world a better place, when every engineer knew otherwise.) At least we weren’t making things obviously worse.

What did bother me, and was acknowledged by my coworkers, was how much top talent was being pulled away from productive tasks to essentially wank around. Not just technologists either, but all sorts of mathematicians and scientists were drawn to the flame.

We as a society have managed to allocate so many of the “best and brightest” to either fintech wankery or placing ads in front of eyeballs. It’s enough to make one want to give up on capitalism, except that everything else appears to be worse.

Re:Algorithmic Trading with Go by tomcam on Friday June 30, 2023 @05:52PM (#36542873)
Seems like every person I've ever met in M&A has ended up hating life because of their career choice. They seem to burn out in 5 years or so after salting away a million bucks or 3. Was that your feeling doing the HFT thing?
Re:Algorithmic Trading with Go by finexplained on Friday June 30, 2023 @06:59PM (#36543701)
I work at an HFT firm. Most fun I've ever had.
Re:Algorithmic Trading with Go by maest on Friday June 30, 2023 @07:28PM (#36544032)
But is that because of the excellent WLB and pay or because of the social impact?
Re:Algorithmic Trading with Go by TheAlchemist on Friday June 30, 2023 @09:01PM (#36545023)
The jobs in algo trading are very interesting for technically - mathéamtically inclined people. It’s really one of those fields where you have a direct impact on the results of your - measurable in additional dollars made.

There is 0 social impact. That’s the downside of course - but hey, how many jobs out there are really having any kind of positive social impact ? Not 0, but close to it.

Re:Algorithmic Trading with Go by ir123 on Saturday July 01, 2023 @02:22AM (#36547230)
I think there is some impact, for finding the correct price of things.
Re:Algorithmic Trading with Go by MagnumOpus on Saturday July 01, 2023 @04:04PM (#36554496)
That impact is not made by HFT - finding the right risk premia for different investments is very valuable but that is a signal measured over days/weeks/months because actual capital investment decisions take that long.

Intraday financial games are zero-sum. What HFTs gain, they leech away from mutual funds and pension funds and retail investors and market makers who operate over a longer horizon.

Re:Algorithmic Trading with Go by finexplained on Saturday July 01, 2023 @07:40AM (#36549048)
I work on very interesting technical problems with very smart colleagues for excellent pay. All my career progression is in compensation, so I can remain an IC forever and no one thinks that's a negative. I'm subject to no politics whatsoever, and there's very little politics in the company as a whole. The work I do every day has a direct material impact on the company and I'm rewarded proportionally to my impact. My WLB is so-so, but it's better than it was in grad school so I'll take it.

Regarding social impact, the world does have some demand for liquidity and price discovery. Providing those services is both essential and extremely difficult. It's definitely not the most social good I could be doing with my talents, but I think it's weakly positive.

Re:Algorithmic Trading with Go by tomcam on Friday June 30, 2023 @09:44PM (#36545411)
Great to know. Offhand it seems it could be quite interesting to me as well.
Re:Algorithmic Trading with Go by allenrb on Friday June 30, 2023 @09:53PM (#36545489)
Agreed. Concerns about more nebulous effects on society didn't change the fact that it was great fun. I miss it.
Re:Algorithmic Trading with Go by mr_o47 on Saturday July 01, 2023 @12:28AM (#36546592)
Which HFT firm do you work at if you are okay sharing
Re:Algorithmic Trading with Go by robertlagrant on Friday June 30, 2023 @07:18PM (#36543932)
> We as a society have managed to allocate so many of the “best and brightest” to either fintech wankery or placing ads in front of eyeballs.

Those things have driven a load of proprietary and open source tech that helps everyone else.

Re:Algorithmic Trading with Go by cratermoon on Friday June 30, 2023 @08:14PM (#36544529)
Rising levels of inequality would suggest this is false.
Re:Algorithmic Trading with Go by justinhj on Friday June 30, 2023 @08:33PM (#36544729)
What would rising levels of being lifted out of poverty suggest? The equality gap doesn’t count for much if you starve or freeze to death, and poverty is declining world wide.
Re:Algorithmic Trading with Go by cratermoon on Friday June 30, 2023 @09:03PM (#36545041)
> poverty is declining world wide

That depends on how you measure it.

Re:Algorithmic Trading with Go by geodel on Friday June 30, 2023 @10:16PM (#36545658)
Yeah, keep changing the measure until Bill Gates, Jeff Bezos etc are below poverty line.
Re:Algorithmic Trading with Go by robertlagrant on Saturday July 01, 2023 @03:04AM (#36547512)
The worst way to measure it is inequality. How the top person is doing relative to the bottom person isn't important. How the bottom person is doing now compared to the bottom person 100 years ago is.
Re:Algorithmic Trading with Go by ir123 on Saturday July 01, 2023 @02:20AM (#36547207)
sorry, i don't believe inequality is rising, at least in ways that matter. in the last 50 years, a substantial number of people were pulled out of poverty.

Obviously this would mean that countries that previously relied on subsidised labour from those third world countries would have to start paying up. I'm not suggesting that it is a zero sum game however.

Re:Algorithmic Trading with Go by otabdeveloper4 on Saturday July 01, 2023 @03:36AM (#36547697)
Ads are tremendously useful, just ask any business owner.

The problem with ads is not that they're useless, it's that it is an industry prone to scams and grift. (Because doing advertising right requires all sorts of actual science, and ain't nobody got time for that when there's money to be made.)

t. Worked for 20 years and adtech.

Re:Algorithmic Trading with Go by ilyt on Sunday July 02, 2023 @04:53AM (#36559635)
Disagree, most are actively harmful as it makes the product with best marketing win, not the objectively/subjectively best one.
Re:Algorithmic Trading with Go by logicchains on Saturday July 01, 2023 @04:53AM (#36548158)
>We as a society have managed to allocate so many of the “best and brightest” to either fintech wankery or placing ads in front of eyeballs

It's nothing to do with "we as a society". I'm a quant trader and know many others, and the vast majority are in the industry because we care about making money not some leftist save the world crap. Even if socialists managed to completely destroy the financial market, we'd just find another way to make money without trying to save the world (e.g. like the mostly corrupt officials in Russia and China when they were communist). "Society" can't change human nature; even mass brainwashing on the scale attempted by Maoist China failed.

I.e. the best and brightest will always work where they want to work, not where leftists like you want to "allocate" them.

Re:Algorithmic Trading with Go by Intermernet on Saturday July 01, 2023 @05:15AM (#36548260)
I think you just illustrated the problem. You have complete awareness of what you do, and you somehow manage to see it as a battle against "leftists" rather than selfish greed. I'm cool with that, but it precludes you from having valid opinions on anything related to improving the world for the majority of people. Please accept this and refrain from any social commentary. Your comment above demonstrates that you don't actually operate in society.
Re:Algorithmic Trading with Go by kortilla on Monday July 03, 2023 @03:33PM (#36577756)
> Please accept this and refrain from any social commentary. Your comment above demonstrates that you don't actually operate in society.

Cut the fascist bullshit. Everyone can comment about how society should be run, even people that are very successful financially.

If you try to exclude greed from the design of your societal system, it will immediately fail. In large numbers, economics shows us that altruistic people wash out of the model and everyone operates in their own self-interest (greed).

Re:Algorithmic Trading with Go by Intermernet on Tuesday July 04, 2023 @03:54AM (#36583586)
Self interests have externalities. The pleasure you gain from improving someone's life is in no way comparable to the pleasure you gain from making other people suffer. It's a fallacy to say "everyone operates in their own self-interest". It's usually parroted by anti-social people in order to justify anti-social behaviour.

> Cut the fascist bullshit. Everyone can comment about how society should be run, even people that are very successful financially.

It's not financial success that precludes someone from commenting on how society is run, it's blatant, deliberate anti-social actions. This is the foundation of a social contract. It's the same reason you'll get locked up if you go around punching people in the face.

Also, I don't think you know what "fascist" means.

Re:Algorithmic Trading with Go by kortilla on Wednesday July 05, 2023 @03:20AM (#36596785)
You’re suggesting that people can’t participate in societal planning because they disagree with your causes. You just dress it up in overly dramatic phrases like “anti-social” and “selfish greed” to make inhumanely oppressing them palatable. This was bog standard behavior of fascism in Italy.

It doesn’t seem like fascism to you because you’ve done some mental gymnastics to pretend you’re not just crushing intellectual opposition, but that’s all it is in the end. Op is not punching anyone in the face. He/she is just blatantly unsupportive of socialism.

Re:Algorithmic Trading with Go by Intermernet on Wednesday July 05, 2023 @08:20AM (#36599346)
Focusing solely on getting rich to the detriment of other people is the antithesis of "societal planning". I'm not sure why you're defending this behavior. Do you really believe that people who strive for profit over the well-being of other people are in any way being "social"? Do you see them as the necessary negative force for positive action to be possible? Do you really believe that humans require adversity to succeed, and that those who choose to be adverse agents are engaging in some self-sacrificial martyrdom so society can benefit from their negative influence?

Please, I want to know; what benefits do the actions of the op have for "societal planning"? The person he was replying to was at least honest in admitting that this behavior "served little social good".

Once again, I think you'd do well to actually read what fascism actually stood for. The propaganda of fascism had a lot more to say about nationalism, "shared history" and the good of corporations than it did to say about things being "anti-social" or even mentioning "selfish greed".

Re:Algorithmic Trading with Go by allenrb on Saturday July 01, 2023 @10:21AM (#36550414)
I’m a lot less leftist than you apparently assume. I’m a landlord, among other things. My problem with our system is that the things which “pay” are not things which have much benefit to society. I’ve got zero fault with you for choosing to make money. Didn’t I say I did the same thing and loved it? I just question the system that drives the behavior.
Re:Algorithmic Trading with Go by dougSF70 on Friday June 30, 2023 @07:05PM (#36543764)
Facebook Ads are equally valueless.
Re:Algorithmic Trading with Go by maest on Friday June 30, 2023 @07:26PM (#36544022)
HFT is _arguably_ better than advertising for society.
Re:Algorithmic Trading with Go by latency-guy2 on Friday June 30, 2023 @08:35PM (#36544748)
Whats the point in making a flyby comment without even mildly establishing the content in it?
Re:Algorithmic Trading with Go by DrBazza on Saturday July 01, 2023 @04:18AM (#36547962)
> it’s largely a big firm world now.

Largely, though I receive 1 or 2 job specs every week for start ups with the keywords 'hft' and 'low latency'. Admittedly there's going to be duplication there if you read them closely.

I think it's a bit of a myth that (ignoring FPGAs) that writing a low-latency software trading system is a time/cost expensive process. Anecdata = I worked at two firms where we did a rewrite from scratch with teams of 5-6 people and traded in the market within 3 months. I'd argue a senior dev that's been around the block a few times could achieve similar when you remove corporate politics, and bikeshedding over design.

The big firm part is paying for multiple quants at $200k++ to come up with strategies and historic market data access for trading models. Small firms are getting backing as long as the co-founders are 'ex-CxO from MegaCorp'.

Re:Algorithmic Trading with Go by dm3 on Saturday July 01, 2023 @05:16AM (#36548263)
> I think it's a bit of a myth that (ignoring FPGAs) that writing a low-latency software trading system is a time/cost expensive process.

This depends a lot on the complexity of the trading system and the trading venue specifics. A system to trade single stocks or futures can be built, certified and running in 3 months. A system for options market making will take a lot longer.

Re:Algorithmic Trading with Go by DrBazza on Sunday July 02, 2023 @04:57AM (#36559659)
Yes, stocks and futures was exactly what I was talking about. Though we also hit the market with options models within another couple of months.

The big costs for small firms are historic data (if you don't have any), colo, distance to exchange, and number of connections.

From the number of job specs I see, it feels like the HFT/low latency market place is healthy enough that there are always new firms appearing. It's competitive, so it's hardly surprising that if someone has new ideas they'll find a backer.

Re:Algorithmic Trading with Go by WestCoastJustin on Friday June 30, 2023 @03:13PM (#36540609)
YES, 100%! I honestly, cannot agree more. I've read pretty much every book that I could get my hands on and no one talks about the platform. This makes so much sense. Thank you for your perspective. It seems like so much of this stuff is silod off into each company and no one is talking about it.

HFTs are definitely playing a completely different game. I was reading about the exchange architectures and how things are actually wired. I'm getting my data from SIPs while HTFs are directly connected to the exchanges [1]. I'm transacting in seconds and they, like you said, are transacting in microseconds, so there is no comparison. Which, in a way is actually nice in that I'm not really competing with them. Or, maybe I am but I can still make some money. haha.

Cheers and thanks for the awesome comment!

[1] https://www.researchgate.net/figure/Latencies-in-the-Electro...

Re:Algorithmic Trading with Go by wwilim on Friday June 30, 2023 @05:02PM (#36542230)
Sample size one. Contracting for a trading shop for 2 years taught me that it's not technical aptitude that keeps the business rolling.
Re:Algorithmic Trading with Go by blibble on Friday June 30, 2023 @05:12PM (#36542347)
however ineptitude very quickly brings the entire thing down
Re:Algorithmic Trading with Go by mr_o47 on Friday June 30, 2023 @06:50PM (#36543590)
If you don’t mind me asking how did you land a contract gig at trading company
Re:Algorithmic Trading with Go by skummetmaelk on Friday June 30, 2023 @06:45PM (#36543544)
Seems more pointless than crypto to be honest.
Re:Algorithmic Trading with Go by nvarsj on Friday June 30, 2023 @07:26PM (#36544011)
It's quite a statement. You're almost saying capitalism and efficient markets are pointless. Maybe they are, but I think it's nothing like crypto.

In the old days before HFT, you weren't sure you'd get the best price. You'd have to rely on a broker to make sure that happens, but as a retail trader you generally got a worse price/out of date price.

Nowadays with HFT you can get pretty much the best price anywhere. Those <1ms HFT traders make that happen. It's the efficient market hypothesis in effect, made possible by HFT.

Now is it pointless to shave off even more ns in the all out war to grab a piece of the order flow? For retail and institutional investors, at a certain point, yes it's completely pointless.

But it's also just pure capitalism at work. HFT firms compete against each other, and the competition is about speed to provide the best price and volume. If you try to regulate with something like enforced delays, then what do you compete on instead?

Re:Algorithmic Trading with Go by Ecoste on Friday June 30, 2023 @08:13PM (#36544516)
> You're almost saying capitalism and efficient markets are pointless.

Capitalism necessitates efficient markets (and efficient markets necessitate HFTs) so any criticism of HFTs is a direct criticism of capitalism as well. I mean this isn't really a problem that's specific to HFTs -- there are just a lot of jobs that we can perceive as providing no value or even negative value (jobs that are possible specifically due to capitalism e.g. payday loans, 2008 style trading, certain scams or predatory practices etc.)

I think we can all agree that this is a flaw, and we're not criticizing capitalism to replace it with something else, but rather just recognizing this as a problem. At the end of the day, a useless job is a useless job even if it exists solely because of capitalism.

Re:Algorithmic Trading with Go by taberiand on Friday June 30, 2023 @08:14PM (#36544530)
To me what feels wrong is that millions of dollars of profit can be extracted from the system through such nanosecond fiddling.

It feels like there would be a lot of incentive to keep an inefficient system in place in order to keep the grift going, and a lot of convenient excuses available for why something better isn't possible.

Re:Algorithmic Trading with Go by semilattice on Friday June 30, 2023 @09:05PM (#36545062)
>You're almost saying capitalism and efficient markets are pointless. Maybe they are, but I think it's nothing like crypto.

People are saying this because, HFT sounds similar to 'crypto mining'. That's people with best infrastructure, the 'big-guys' -- win. While leaving out the retail investors as broiler chicken, pumped with 'drugs' (by influencers) to spend more on imaginary assets, so that they can be used for 'food' by these 'big-guys'.

There are different influencers for retail investors vs crypto. In retail investing there are promises of 'retirement paradise', actual tax deductions, the Jim Cramer-like people (at least what I heard in US)

For crypto investing the influencer are different, the geography is wider. A promise to participate in markets if you do not live the country that has adopted US/UK-based financial services.

- - - By the way, I think the markets will still have liquidity if there is a rule to wait, for say, 30 min before a stock that was just recently bought -- can be sold (unless by a clear fat finger mistake)

This rule will cause the HFTs to stop existing in the current form.

Re:Algorithmic Trading with Go by Solvency on Friday June 30, 2023 @09:28PM (#36545276)
So are retail investors truly no different from the people gambling their money on the lottery at the 7/11 every night?

Do any regular pedestrian middle class retail investors EVER actually earn enough to retire on? Or do anything meaningful with? If so.. what is THEIR secret sauce, since it's not HFT...

Re:Algorithmic Trading with Go by semilattice on Saturday July 01, 2023 @03:44AM (#36547751)
There are probably 3 classes of Retail investors

a)Members of political elite that get insider trading stock tips. (illegal of course). The number of folks in usa congress and senate that become 'very lucky' investors after they join the rank, has to be amazing

b)Lucky

c) everybody else -- that looses.

Overtime, I would say last 30 years, the amount of 'influencing' retail investors to trap them into unreasonable actions had gradually increased.

So the percentage of folks going becoming the victims of the charade, will become higher.

Certainly if you concentrate on ( b ) you create the plausible deniability defense for the manipulators

Re:Algorithmic Trading with Go by tesdinger on Saturday July 01, 2023 @08:54AM (#36549596)
> efficient markets are pointless

You are profiting off workers as a middle man in the economy by doing HFT, and trying the justify it by some vague concept of the "correct price". You are producing nothing of value, merely taking away value before someone else notices it is there.

Re:Algorithmic Trading with Go by nvarsj on Saturday July 01, 2023 @09:55AM (#36550146)
Just think about what you said. "There is no value in a middle man". Do you only purchase goods from the person who made it?

Our entire economy runs on "middlemen". Convenience has huge value to most people.

Re:Algorithmic Trading with Go by alphanullmeric on Friday June 30, 2023 @07:56PM (#36544348)
And like crypto, feel free to ignore it instead of making things you don’t like illegal.
Re:Algorithmic Trading with Go by ciwolsey on Friday June 30, 2023 @08:00PM (#36544383)
Dont make scams illegal just because you don't like them!
Re:Algorithmic Trading with Go by mhh__ on Friday June 30, 2023 @08:43PM (#36544849)
Should it be illegal to be a fool?
Re:Algorithmic Trading with Go by alphanullmeric on Friday June 30, 2023 @10:39PM (#36545825)
Which part of consenting individuals choosing to use their money how they wish is a scam?
Re:Algorithmic Trading with Go by tesdinger on Saturday July 01, 2023 @09:33AM (#36549927)
I hope someone steals from you and police ignores you.
Re:Algorithmic Trading with Go by alphanullmeric on Saturday July 01, 2023 @11:01AM (#36550850)
Which part of consenting individuals choosing to use their money how they wish is stealing?
Re:Algorithmic Trading with Go by fnordpiglet on Friday June 30, 2023 @08:19PM (#36544583)
HFT provides a great deal of liquidity and efficient pricing in markets that are adapted to it. It provides a real service, allowing people to transact without using a large bank or broker efficiently on an open market. The fact you can click buy and it buys on almost any stock is likely due to a HFT on the other side. That may not mean much to you directly but it does provide a lot of utility in markets. The biggest gripe people bring about HFT is it during high volatility HFTs usually pull out of the market at a time when people really value the increased liquidity. I think some of the more advanced HFT firms though have moved into longer time range trades which helps provide more liquidity in those markets.
Re:Algorithmic Trading with Go by shric on Saturday July 01, 2023 @12:09AM (#36546472)
My understanding was that HFTs make the most profits during periods of highest volatility. Why do they pull out?
Re:Algorithmic Trading with Go by fnordpiglet on Saturday July 01, 2023 @01:03AM (#36546762)
Depends on their strategy but a lot of strategies depend on some sort of price discovery which requires having a probable estimate of what the current price should be and some form of market making around the level. In a very dislocated market the price is unknowable and it becomes gambling, and generally market making strategies are explicitly not about gambling but about facilitating trades around the “true” price.
Re:Algorithmic Trading with Go by musicale on Friday June 30, 2023 @08:25PM (#36544636)
Nonsense - what could be more beneficial to society than providing imaginary "liquidity" by interposing yourself between legitimate buyers and sellers?

It's a bit like stock brokers - and why wouldn't we want stock brokers to operate at drastically faster-than-human timescales, because we all know the value of a company changes every nanosecond! And "flash crashes" create opportunities for investors to make huge amounts of money!

And just as crypto has poured money into GPU companies, HFT has poured money into networking companies.

Short of creating the great firewall or helping governments slurp up all the traffic on the internet, what could be a more beneficial application of network technology?

HFT (like finance in general) has also gobbled up lots of tech grads, making it easier to find jobs at tech companies.

Re:Algorithmic Trading with Go by nostrebored on Friday June 30, 2023 @08:38PM (#36544794)
> Nonsense - what could be more beneficial to society than providing imaginary "liquidity" by interposing yourself between legitimate buyers and sellers?

Now when I say the same thing about index funds people get all huffy

Re:Algorithmic Trading with Go by musicale on Friday June 30, 2023 @08:58PM (#36545005)
It's similar, though in theory you are paying the index fund to act as your agent, and the fee structure is observable.

Regarding liquidity, I imagine it's possible that the index fund might allow you to withdraw money faster than you could sell on your own, but realistically I kind of doubt it.

Re:Algorithmic Trading with Go by frankc on Saturday July 01, 2023 @12:48AM (#36546699)
forget index funds, you could say the same thing about supermarkets. Pointless middlemen!
Re:Algorithmic Trading with Go by tesdinger on Saturday July 01, 2023 @09:22AM (#36549824)
They are in the logistics and goods storage business. So you actually can't say that about supermarkets.
Re:Algorithmic Trading with Go by tesdinger on Saturday July 01, 2023 @09:32AM (#36549919)
The classic theory of longer term investing is that you are providing capital to businesses and rewarded for that. That is a little bit different from being a middle man. My personal opinion though is that lending money/investing capital and capitalism in general is power. Money quantifies the potential of making other humans do things for you, it allows you to excercise power over fellow humans. Inheritance means you can inherit that power from your parents. It's not all that different from feudalism.
Re:Algorithmic Trading with Go by Roark66 on Friday June 30, 2023 @08:49PM (#36544907)
It may seem so at the first glance, but such trading if carried out by many independent providers actually increases the liquidity if the market for everyone else.

Likewise with crypto. Personally I don't think that if you're calling an API over an Internet it matters if your trading bot is written in go or python (mine was in python). Use the language you're most comfortable in. The network and trade submission/execution at your broker will be 10x slower than your bot anyway. Unless the size of your operation approaches the size where you can get direct market access which seems to be reserved for big forms only.

Re:Algorithmic Trading with Go by Solvency on Friday June 30, 2023 @09:22PM (#36545224)
"increases the liquidity if the market for everyone else"

That's just it. The whole premise is pretty absurd. The market, the actors, everything. It's so far removed from literally anything remotely human. It's the financial equivalent of an infinite sea of AI bots producing CVs and research papers which are only being evaluated and read by other bots.

If you step away from it all for a second, what the hell is the endgame of this whole hustle.

Re:Algorithmic Trading with Go by mminer237 on Friday June 30, 2023 @10:31PM (#36545771)
I mean, efficient allocation of capital is the overarching goal. HFT is either a facilitator of that or a perverse byproduct, depending on who you ask.
Re:Algorithmic Trading with Go by cgio on Friday June 30, 2023 @11:15PM (#36546068)
At any point in time yes, this is an accurate description. When you integrate over time it’s not. At the end of the line it’s people betting with advanced tools for execution of their bets. Behind the mathematical beauty of risk free and arbitrage, there is a reality of someone, somewhere making a bet at end of a line of contracts. And there is also someone making the opposite bet. Markets are not disseminating information but beliefs as a proxy for information, and as such they are much more human than you would think. The end game is a network of beliefs, livelihoods, politics and petty or grand aspirations, the same mess as in any organisation. The only reason you question the futility of this one specifically is that it’s a clean room abstraction of the futility embedded everywhere. I would call it futility as a service.
Re:Algorithmic Trading with Go by hpenvy on Saturday July 01, 2023 @12:11AM (#36546485)
Your analogy isn't applicable here. What the OP was trying to get at is that even an individual who doesn't know anything about markets, HFT, liquidity, etc can still benefit from high liquidity from HFT (since it allows for transactions to occur sooner and quicker). In the AI example, the implication is that the final product isn't benefiting consumers.
Re:Algorithmic Trading with Go by tesdinger on Saturday July 01, 2023 @09:19AM (#36549796)
An individual who doesn't know anything about markets should not be trading, nor would they care about liquidity in the slightest.
Re:Algorithmic Trading with Go by happytiger on Sunday July 02, 2023 @01:49AM (#36558609)
It was always the only end game. AI on quantum computers is the ultimate computing technology — basically the final research technology in our made up little game of Civilization.

Anytime you create technology that sufficiently replicates the creators, you end up with the spirit of the creator embodied in the technology. So, of course digital brains are going to do weird things like crossword puzzles and sodoku at scale, because it's the same kind of useless shit we do to entertain ourselves.

You get into this conversation whenever you dive hard into cyberpunk, which is so many, many things. Even the Internet itself started out that way. The endgame started as a game, and it will end up being a game, played by our creations as odd mirrors of their creators.

I think there's a lot of people who subscribe to doing the same thing to save the planet, of which I have a keen interest. Solarpunk is the name of that movement, and it also has similar crazy ideas.

We're inventing digital brains. It's literally an architecture designed to be removed from being anything remotely human as it's a mimic or replacement technology for intellectual capacity.

If you really take a step back, the endgame is crazier than just bots producing content merely for other bots to consume (which basically describes the vast majority of scientific papers these days too, ironically). When you take that absurdity and multiply it by tens of thousands in terms of efficiency, the whole system we're building looks WILD and almost inconceivably strange to the way we do things now.

I know this is only tangentially related, so I appreciate your understanding that I already understood that and wrote this anyways. :)

Re:Algorithmic Trading with Go by bryancoxwell on Friday June 30, 2023 @08:17PM (#36544565)
Fascinating. Thanks for sharing.
Re:Algorithmic Trading with Go by mmasu on Friday June 30, 2023 @08:18PM (#36544568)
There’s a very nice book about this subject called “Dark Pools”. I found it very enjoyable, you certainly seem to have the knowledge to enjoy it even more :-)
Re:Algorithmic Trading with Go by anon-3988 on Friday June 30, 2023 @10:00PM (#36545536)
Is there a market for s much “slower HFT”. There’s a very wide gap between day traders and ns traders after all.
Re:Algorithmic Trading with Go by nurettin on Saturday July 01, 2023 @04:01AM (#36547841)
I'm in the medium frequency trading world. (calculate lots of market conditions, send at most a few orders a minute) I'd like to understand the HFT world a little better.

Is it basically "do what MFT does, but faster", or is there any specific advantage like getting into an order queue with priority?