Mark Best Profile
Mark Best

@MarkBestForex

1,728
Followers
270
Following
85
Media
1,397
Statuses

I model professionally. HFT, MM, rust.

Joined January 2015
Don't wanna be here? Send us removal request.
Pinned Tweet
@MarkBestForex
Mark Best
4 months
There are rusty ways to write code and if you come from languages like python or even c++ it can be quite different. These are a few things that could help people getting into it and its slanted towards #hft / #hpc .
3
3
53
@MarkBestForex
Mark Best
4 months
@airkatakana I heard a story once that McKinsey gave a lecture to the new grads about work life balance at 7pm on a Friday.
1
16
623
@MarkBestForex
Mark Best
14 days
@PaulSkallas This is a big deal if you're into astronomy. Orange light is easy to filter. LEDs are basically impossible. So if you live in a modern city, star gazing sucks.
2
2
107
@MarkBestForex
Mark Best
4 months
Recent discussions about tick to trade made me do a more in depth analysis of the practical problems. Data is really bursty and the problem is actually worse than i thought. Thanks @BruHFT_quant for the inspiration.
8
17
101
@MarkBestForex
Mark Best
2 months
If you have some time this blog is really worth checking out. There is some absolute gold in there.
2
12
93
@MarkBestForex
Mark Best
1 month
Tweet media one
5
0
80
@MarkBestForex
Mark Best
4 months
I don't say enough nice things about python. Being able to write stuff like beta = np.linalg.pinv(X.T, @ X) @ (X.T @ y) is absolutely beautiful.
5
0
67
@MarkBestForex
Mark Best
3 months
@B0RN2RUIN So long and thanks for all the fish
0
1
63
@MarkBestForex
Mark Best
3 months
I put up a new blog post in case you're dying to read about issues coding an HFT OMS.
1
6
50
@MarkBestForex
Mark Best
4 months
OK, linear algebra in rust is awful. I take back everything bad I've ever said about python.
5
2
35
@MarkBestForex
Mark Best
25 days
Do you need more rust in your life? Do you need to shave nano seconds off your hot path logging? Were you dumb enough to copy paste my old logging code? In that case this new article maybe this is of interest.
2
0
35
@MarkBestForex
Mark Best
4 months
Just finished this. A lot of useful ideas for parameter optimisation of hard to simulate systems (see mm). Author is ex getco. Its a pretty easy read and the stats are not too spicy.
Tweet media one
1
1
30
@MarkBestForex
Mark Best
29 days
I finally got to deep dive Py03 and use it for something real. I have to say, I am really impressed with it. I can now process billions of ticks without ever needing to leave python. I really wish I'd looked into it sooner.
2
0
24
@MarkBestForex
Mark Best
2 months
@__paleologo A lot of traders I know aren't math people. It's in fact pretty much the opposite. I'd say their main skills are sniffing out sentiment and knowing which markets to be in when.
1
0
22
@MarkBestForex
Mark Best
2 months
you miss 100% of the shots you don't take
Tweet media one
2
1
21
@MarkBestForex
Mark Best
4 months
If you have a trading strategy with a 20% chance of being profitable. If you keep running it for 6 months there's a 120% chance you'll make money. It really is that simple.
3
0
19
@MarkBestForex
Mark Best
2 months
@patio11 You miss the game theory element. Not answering the margin calls is a red flag that led to them dumping. That's the genius in this. Some of the senior bond traders i kmow would just have a sixth sense. They'd just know something was wrong and dump positions at great expense.
0
0
16
@MarkBestForex
Mark Best
7 months
@TimMeggs I heard one of the bond quants at DB did this. Not in the middle of the day but just disappeared and never came to work again. No one knew what happened to him and it was the days before social media.
1
0
16
@MarkBestForex
Mark Best
2 months
@Dub0x3A You can test its ability to predict forward returns. So what has lower error price-fair or future price- price. There are also causality models I.e granger causality. You can also test for the proces mean reversion to your fair price.
1
0
16
@MarkBestForex
Mark Best
2 months
When you start using a new library its good to write a bunch of test cases around it. This has two advantages: 1. You can check it works the way you think it does 2. You can make sure this is true over time as version change. And yes, i just got burned by not doing this.
1
0
15
@MarkBestForex
Mark Best
2 months
Remember to not abuse definitions. This formula is called Jensen's alpha. It's a simple way to test if beta is > 1 and if alpha > 0. People should be quoting their confidence intervals on alpha/beta if they want you to take them seriously.
Tweet media one
@__paleologo
Gappy (Giuseppe Paleologo)
2 months
It is AMAZING the latitude of opinions within finwit about the meaning of alpha and beta. It's mostly a matter of definitions, and i don't aspire to be a beta lawyer, but you people should have a giant rave party, hug each other, and come up with a common definition.
8
0
56
2
1
14
@MarkBestForex
Mark Best
2 months
God damn you rust
Tweet media one
1
0
14
@MarkBestForex
Mark Best
2 months
@quantymacro There is a set of standard tests
Tweet media one
0
2
13
@MarkBestForex
Mark Best
3 months
@emil_priver If you don't think history matters, you've never had to backtrack a release or you're working at such a slow pace and releasing a couple of features at a time. Git is not that complicated and if you can't keep a clean history it only says that you've never worked professionally.
3
0
13
@MarkBestForex
Mark Best
1 month
How do you control for idio syncratic risk in a portfolio? Do you use regularisation or do you estimate it and put caps inside the portfolio construction step? There's just always risk in crypto that one coin goes bananas so I'm wondering how you manage that?
3
0
12
@MarkBestForex
Mark Best
20 days
How do i know its going to be a good trade? My broker's site is completely broken and I cant log in.
0
0
12
@MarkBestForex
Mark Best
4 months
Tweet media one
1
1
11
@MarkBestForex
Mark Best
30 days
This is the future
Tweet media one
@Hamptonism
ₕₐₘₚₜₒₙ — e/acc
1 month
Quantum Finance. this is the future.
Tweet media one
30
145
2K
2
0
11
@MarkBestForex
Mark Best
2 months
@DegenSugarBoo @BruHFT_quant @Dub0x3A @BeatzXBT @nayshins Where you need to fix yech debt is 1. you will make the system much better from a business stand point. 2. The tech debt is causing other dev to be done in a suboptimal way. 3. It caused preventable prod issues. There's a good spolsky blog why rewiting code is bad.
2
0
11
@MarkBestForex
Mark Best
3 months
@PtrPomorski Sometimes i wonder if we are too mean to you. Then you post stuff like this.
1
1
11
@MarkBestForex
Mark Best
2 months
Dialect in europe is crazy. I can meet people from new zealand/india/kenya etc and have no problem talking to them. In Europe, you can travel 50km and have no idea what anyone is saying. Language seems to be a continuous thing with dialects bridging the gap between countries.
0
0
10
@MarkBestForex
Mark Best
2 months
I hope all my fellow linux devs had a chilled and productive friday.
0
0
11
@MarkBestForex
Mark Best
2 months
@BeatzXBT @SmallCapSmarts @Dub0x3A Its interesting that not a lot of c++ hft stuff gets posted. Probably because it's all in funds and people tend not to share it. That or its absolutely horrendous and its hard to explain a 1000 lines of asm and avx512 riddled code.
3
0
9
@MarkBestForex
Mark Best
1 month
I ordered a book from the US and its gone missing while in customs. I rarely order anything from outside the EU because its such a pain. The issues is a lot of stuff isn't made here. I don't know if this is just govt inefficiency or done on purpose to promote buying local.
3
0
10
@MarkBestForex
Mark Best
2 months
@macrocephalopod @__paleologo @alz_zyd_ I'm doing that every day reading X
0
0
9
@MarkBestForex
Mark Best
18 days
@macrocephalopod This is what your pnl would look like if your account exclusively posts click bait. I asked a while ago about something else and was instructed that i just didn't know what LSTM was. 10/10 no notes.
1
0
9
@MarkBestForex
Mark Best
4 months
Rust peeps, does anyone know a good tools for measuring code complexity and hopefully suggesting targets for refactoring?
2
0
8
@MarkBestForex
Mark Best
2 months
Prime day deals are a joke. They're trying to make out stuff is 50% off and it's the same price as usual, but with an insanely jacked up the RRP.
1
0
9
@MarkBestForex
Mark Best
2 months
Tweet media one
0
0
9
@MarkBestForex
Mark Best
29 days
0
0
8
@MarkBestForex
Mark Best
14 days
@BeatzXBT can you now start working on a rust version? 💋
1
0
8
@MarkBestForex
Mark Best
1 month
@fengtality It's one of the few metrics that isn't path dependent. Its not a great proxy to pnl since the time to hedge is also a function of toxicity. Its one of those "all models are wrong, some models are useful" things.
0
0
8
@MarkBestForex
Mark Best
3 months
@macrocephalopod @0xfdf I can only assume its people who work in c#. Which raises more questions than it answers.
3
0
7
@MarkBestForex
Mark Best
3 months
@experquisite @ByrneHobart A huge amount of hft is working out if the conditional return distribution is the same as the signal return distribution. For some signals you can see their good because of the alpha decay as a function of latency.
0
1
8
@MarkBestForex
Mark Best
5 months
Pro tip: if you want people to use your open source project. Don't commit changes that break the build and then tag them in a release.
2
0
7
@MarkBestForex
Mark Best
3 months
ChatGtp et Al is really going to change education. I've been using it to learn German. The ability to ask specific questions is super helpful in working out the grammatical nuances. I hope this helps a lot of kids that don't like a subject because their teacher sucks.
3
0
8
@MarkBestForex
Mark Best
3 months
@quant_arb This is how I feel reading python.
Tweet media one
0
0
8
@MarkBestForex
Mark Best
2 months
Well the love affair with backtrader lasted about 1 day. I cannot work out for the life of me how to simulate short positions on perps.
2
0
8
@MarkBestForex
Mark Best
29 days
@miniapeur I started to study cosmology and astro physics. I have a math background so figured it'd be not too difficult to grasp the basics. I eventually gave up. I get the feeling many of the theories seems to be more story telling than science. Dark matter is just Texas sharpshooting.
2
0
7
@MarkBestForex
Mark Best
9 months
Tweet media one
0
2
7
@MarkBestForex
Mark Best
1 month
The thing that is missed from this is the detrimental effect on compounding. Starting with a $10k portfolio, over the last 40 years of snp returns it would end with $327k. With 10% unrealised cap gains the final balance is 209k, and 20% unrealised cap gains would make it 133k.
@BitcoinNewsCom
Bitcoin News
1 month
Starting in 2025, 🇦🇺 Australia will begin taxing unrealized gains in employee pension-fund accounts with balances over A$3 million ($2 million).
Tweet media one
594
343
2K
1
1
7
@MarkBestForex
Mark Best
7 months
@phoenixstealthy @BeatzXBT The only tricky thing with go is the gc. The production of garbage is correlated to the amount of work you're doing. That in turn is correlated to if the gc will run. I'm generally not a fan of gc based languages for hft.
0
0
7
@MarkBestForex
Mark Best
1 month
Given previous discussions about sharpe ratio vs sortino, has anyone used the ulcer index? I was reading and although I've seen the UI before in quantstats etc ive not dug into it. It seems to improve on the Calmar and solve pnl path related issues.
3
0
7
@MarkBestForex
Mark Best
2 months
@liquiditygoblin @macrocephalopod Providing liquidity to the masses. Truly God's work.
0
0
7
@MarkBestForex
Mark Best
30 days
@BruHFT_quant The amazon reviews are gold
Tweet media one
0
0
6
@MarkBestForex
Mark Best
2 months
@Dub0x3A How much data is this per day. I.e how many ticks? It must be insane. I am assuming this is not for eth or btc? Also how are you making sure the timestamps on recorded data is aligned?
2
0
7
@MarkBestForex
Mark Best
2 months
@MyLatinLife then you go to a coffee shop and no one can understand you at all. Reading Portuguese isn't the hard part, speak it is. The tonics, man, that is just raw pain.
0
0
7
@MarkBestForex
Mark Best
1 month
@systematicls @BlackSwan_ptf Didn't know about this. Seems pretty nice.
0
0
7
@MarkBestForex
Mark Best
1 month
@therobotjames I miss her too james
Tweet media one
0
0
7
@MarkBestForex
Mark Best
3 months
Q: Are the CME crypto futures 24/7 A: yes. Sunday 6pm to Friday 5pm with one hour maintenence per day.
0
0
7
@MarkBestForex
Mark Best
3 months
@BeatzXBT @AirM4rx @Alice_comfy @levbeta @DegenQuant @sergeesolovev @Dub0x3A @OBS_orderflow @cryptoquantHQ @max_holloway @yenwod_ Have you considered conflation. It'd basically just pull everything off the queue if you still have quotes on there or get a trade msg/other non quote. Then process the book and trades. It saves expensive feature calculations when you get a lot of irrelevant updates.
1
0
6
@MarkBestForex
Mark Best
7 months
@BeatzXBT I'd actually make a counter point to this as if you get a burst of messages on the websocket, if your processing time is about 1ms, you can get quiet behind. Cpp/rust ipc is between 100 and 500 ns to put it into comparison. At least then the qs don't get backed up.
2
0
7
@MarkBestForex
Mark Best
1 month
Everyone is loosing their minds over this retracement. Have some perspective.
Tweet media one
3
0
7
@MarkBestForex
Mark Best
2 months
So it turns out you can give ChatGPT python and it will dump out a perfectly working pine script strategies.
2
0
6
@MarkBestForex
Mark Best
9 months
@therobotjames You mean the M&S Christmas pudding I ate yesterday?
2
0
6
@MarkBestForex
Mark Best
4 months
@levbeta @Dub0x3A This is also a little bit @BruHFT_quant fault. That's who i blame at least.
1
1
6
@MarkBestForex
Mark Best
2 months
@Dub0x3A And the last issue is if your fair price I'd even tradeable. If you're using certain features you'll get a great prediction but you'll never be able to execute it.
1
0
6
@MarkBestForex
Mark Best
2 months
@_kacper____ @BeatzXBT @SmallCapSmarts @Dub0x3A The Art of Writing Efficient Programs: An advanced programmer's guide to efficient hardware utilization and compiler optimizations using C++ examples This is a good general book that's got a lot about valgrind etc.
1
0
6
@MarkBestForex
Mark Best
6 months
Refactoring rust really is a joy compared with other languages. Even renaming variables in python is a nightmare.
1
0
5
@MarkBestForex
Mark Best
2 months
@DegenSugarBoo @BruHFT_quant @Dub0x3A @BeatzXBT @nayshins So you need to know what is the cost of leaving it there. What is the benefit of changing it. How much work is it to fix and also important is how likely are you to break other things fixing it.
1
0
6
@MarkBestForex
Mark Best
2 months
@PtrPomorski This repo sucks. A good repo would be 70% data prep, 20% about oos robustness and the rest just linear regression. You don't need an CNN if your input data is garbage.
2
0
6
@MarkBestForex
Mark Best
3 months
One reason why English people can't handle 26 degrees is no one opens the windows. In Germany it's often in the mid 30s but you'll flush the house in the morning and then keep the shutters down. It's a very effective strategy for managing the heat. They also have better windows.
0
0
6
@MarkBestForex
Mark Best
3 months
@PtrPomorski Not everyone doesn't. I've run stuff that optimised the calmar. It has some practical problems in that it tends to prefer low trade counts which have a high calmar due to luck. So you need to correct for that.
2
0
6
@MarkBestForex
Mark Best
4 months
@BeatzXBT not all LOC are equal. When its green field you can get a lot done, if you are fixing someone else code or even your own it might take 2 days to make a 2 line fix. LOC ~= Productivity.
1
0
6
@MarkBestForex
Mark Best
3 months
@tsoding A guy in marketing using chatgpt built and fit some survival models without any deep knowledge of stats and econometrics. It was using Cox models and others. He managed to find a few really good insights from the data . This changed my opinion of what possible with LLMs.
2
0
6
@MarkBestForex
Mark Best
9 months
@worstcontrarian @liquiditygoblin And the carbonara filter?
1
0
6
@MarkBestForex
Mark Best
1 month
@Vertox_DF I love that no one thought to ask you this. With amd you get more cores and it really helps for thing like compile times and also runing parrallel simulations. I have 3950x but the current one is ryzen 9 5950x. I would also suggest getting a large slow HDD for market data.
5
0
6
@MarkBestForex
Mark Best
30 days
@andrew_lfc18 They are really not great as an online filter fyi. They're useful for calibration of online models by fitting deviation expectations. They are just a center smoother and when used online it has to guess half the data which ruins any abilty to predict.
1
0
6
@MarkBestForex
Mark Best
1 month
My friends a Web dev/designer and looking for an internship or a placement. He used to do a ton of 3d modelling and has a really nice eye for design. If you can share this around/help I'd much appreciate it.
1
1
6
@MarkBestForex
Mark Best
11 days
@BeatzXBT @HangukQuant @Dub0x3A You need risk to make money. Its incredibly difficult to do mm and not have some delta
0
0
6
@MarkBestForex
Mark Best
9 days
@quantymacro There is a bit of a chicken and egg problem. You can't get hired without a sharpe of x, it's really hard to learn to trade yourself. The main thing seems to be there are not that many seats at top firms and they can pick and choose.
2
0
6
@MarkBestForex
Mark Best
25 days
@0xyieldmaxi The really good stuff doesn't get written about.
1
0
6
@MarkBestForex
Mark Best
2 months
@DegenSugarBoo @BruHFT_quant @Dub0x3A @BeatzXBT @nayshins I'd say it will always be a judgement call. There are some tech debt that really annoy me but I've not fixed. An example is for time we use u64 and not an i64. So we have to be careful to not get issues computing time deltas. Simpler things were fixed as they caused prod issues
1
0
6
@MarkBestForex
Mark Best
7 months
@BeatzXBT Once you start using signals across instruments/exchanges it becomes a lot of data very quickly. I know your feeling about python. I've written hft systems in python so know the limitations. I'm not sure how much you can offset with numba/ cython.
1
0
5
@MarkBestForex
Mark Best
7 months
@BeatzXBT Rather than starting with design and tech choices. Start with requirements. How fast do you want to be. How scalable?
1
0
5
@MarkBestForex
Mark Best
27 days
@RGBCubed Python scoping is an absolute dumpster fire. Its super easy to introduce bugs due to it and it also means refactoring tools suck since its difficult to work out variable scope.
0
0
4
@MarkBestForex
Mark Best
2 months
@BruHFT_quant @Dub0x3A You might want to look more at your latency tracing as it should be able to detect this. Dm if it's actually a concern. I know you're mainly focuses on multi asset stink bidding atm.
2
0
5
@MarkBestForex
Mark Best
3 months
@DegenQuant @levbeta I was doing a bit more research into this and i think criterion benches give much better numbers than its possible to get live. I'm assuming it's just because the cache is super hot with using the same message. In reality I get super different numbers than the bench gives.
4
0
4
@MarkBestForex
Mark Best
2 months
@Dub0x3A With all of this you have to be careful. Most stat tests are L2 and use some square loss function. In trading you have an L1 loss. So you can also just run a backtest and compute its ability to predict that way.
2
0
5
@MarkBestForex
Mark Best
4 months
i know there is a typo and no i am not paying to be able to edit tweets
0
0
5
@MarkBestForex
Mark Best
3 months
@DegenQuant @levbeta Its also cope since i dont want to rework my deserialisers at the moment and im upset you guys are getting these numbers! Its interesting to see that you can get a lot more out of serde with a little tuning.
1
0
4
@MarkBestForex
Mark Best
2 months
@arnaud710 @0xMagnus_ @ScottPh77711570 At this point it is just a bit sad. This is not a legitimate response to someone asking questions. If you ever want to work as a quant/trader, having a job will be 10x more brutal than this.
1
0
5
@MarkBestForex
Mark Best
2 months
@KlondikeFX @Dub0x3A The problem with the stat tests is they're not conditional on fills. If you were to run a take strategy then you'd only trade the distribution tails and your loss function would zero everything else. So its best imo to think how to trade and walk backwards.
0
0
5
@MarkBestForex
Mark Best
2 months
@PtrPomorski I didn't really want to write that. It's just that bad. The other repo you recently added I thought was good. I mainly took issue at this since a lot of courses & books focus too much on models. Then newbies think, "if I just use an LSTM model it's easy money."
0
0
5
@MarkBestForex
Mark Best
3 months
I don't understand why all bakeries aren't French bakeries.
1
0
5
@MarkBestForex
Mark Best
2 months
@systematicls Glad you're calling out charlatans.
1
0
5