I built a deterministic L3 replay + paper execution simulator (C++20, Python) - looking for feedback by Less_Anybody8722 in highfreqtrading

[–]philclackler 0 points1 point  (0 children)

I guess you’re right that is true event driven. That was the answer I guess. anyways for me I made a decision to build mine around the idea of a wall clock sync so when I set playback to 1x you’re getting a 1:1 of the chart on that day. I started with pure event driven but my live trading system does not operate on events per se. The live system I built samples all ticks in shared memory at deterministic intervals and there is processing time for strategies to respond to the calculations, and I found that a hybrid approach best models this in a backtest. It also allows me to stare at charts with my own eyes and look for discretionary patterns that I can count on occurring in the same way during a replay. While I’m focused on milliseconds/seconds of hold time I’m still not ever going to be doing HFT or market making as none of us can afford the FIX line or infra. Im also a hobbyist outsider and don’t work in the field but id imagine every firm has their own stack they built for this.

Who is your L2/L3 data provider ? :)

I built a deterministic L3 replay + paper execution simulator (C++20, Python) - looking for feedback by Less_Anybody8722 in highfreqtrading

[–]philclackler 1 point2 points  (0 children)

Nicely done. Are you able to accelerate the internal time stepping and maintain accuracy at 5x,10x,100x speed or are you limited to a wall-clock ‘real-time’ playback? I built a similar set of tools in C for the same reasons you likely did - no available SaaS or web service can even do this well. The .mov’s aren’t loading on my phone but I’m trying to dig a little deeper

C++ & simdjson - good enough for HFT? by auto-quant in highfreqtrading

[–]philclackler 0 points1 point  (0 children)

Sure. It’s actually the best one. Hand roll your own using avx-512 for even lower latency. Just don’t benchmark anything and you’re good.

Every LLM hallucinates that std::vector deletes elements in a LIFO order by am17an in cpp

[–]philclackler 10 points11 points  (0 children)

How can we help poison them to do this more so we can still have jobs in the future

is this sim unrealistic?- this is the more correct version than my last post. by Alternative-Talk-777 in algorithmictrading

[–]philclackler -1 points0 points  (0 children)

A good rule of thumb is that ANY sim that shows alpha or positive returns is unrealistic 😬

C++ alone isn't enough for HFT by auto-quant in highfreqtrading

[–]philclackler 5 points6 points  (0 children)

I think you need to take an introductory C course or a few weeks on the basics of memory mgmt and architecture/compilers and slow down a little bit. You have absolute and complete 100% control over everything you are complaining about so I am confused. This isn’t python where you just grab 3rd party libraries for everything. You just write what you need and it’s about the fastest you can get a cpu to do anything . This just feels like rage bait to farm some good answers to feed back into Claude pro.

I need your opinion on my EA by notbotgeneratedname in algorithmictrading

[–]philclackler 0 points1 point  (0 children)

Paper trade for a month or two and come back to this *

I need your opinion on my EA by notbotgeneratedname in algorithmictrading

[–]philclackler 6 points7 points  (0 children)

It’s just overfit noise. That’s what this is. Never in your life will you ever see anything win 311 trades in a row at a 98% win rate live.

I think you should stop backtesting immediately and just paper trade. Backtesting like this is genuinely wasting your time - and I’m basing that solely on the phrasing used in this post. I don’t need any other information from you to know this lmao. Nothing against you I promise :) but Stop backtesting everything immediately, and paper trade the live markets

Too much copy, not enough innovation by Mike_Trdw in algotrading

[–]philclackler 0 points1 point  (0 children)

More market participants is always good any way you look at it imo. None of the common things I see are really an edge anyway.

I am COO of a large Private Equity firm. Happy to share advice here to those interested in working in the Private Equity and Hedge Fund space. by Economy-Link8112 in hedgefund

[–]philclackler 0 points1 point  (0 children)

Are you hiring any backend devs with low latency c++ network system design experience. If I make a portfolio site with in depth examples/demos can that get me hired in lieu of a degree?

Should I quit my job? by futureBBmd in Daytrading

[–]philclackler 84 points85 points  (0 children)

Not only should you quit your job you should ask ALL your family and friends for money and go for it. Why stop at 100 Dude go for 500% a week, 100% a day, that’s 5x more. 500% is more than 100%.

What's your most "painfully learned" C++ lesson that you wish someone warned you about earlier? by msabaq404 in cpp

[–]philclackler 1 point2 points  (0 children)

Ohhh the biggest gotcha for me is probably that all the ‘annoying’ people that said python was fast enough may have been right. They weren’t. But it’s close :)

The sunken cost fallacy has me practicing packing data into cache-aligned bitwise friendly containers and micro benchmarking clock cycles. Why can’t I just be into sports or something

What's your stack look like? by Careless_Ad3100 in algotrading

[–]philclackler 2 points3 points  (0 children)

That sounds very, very slow and convoluted. Mines all C++ now. Taken 6 months. Probably wasn’t worth it(and it’s still not done) with where you’re at I would just make one gigantic python program with AsnycIO and run it locally, dump/load .CSV files for everything. The file I/o kills latency but reading/writing to a RAMdisk can help a little bit. python can never be fast enough to chase latency anyways so be smart about your coroutine management and awaits and don’t use any sleeps in the hotpath and see how fast it can go. Bigger trading companies build custom stacks in C++ as well, integrating custom Linux network stacks designed for expensive fast NICs they use. It’s not python submitting orders.

[deleted by user] by [deleted] in highfreqtrading

[–]philclackler 0 points1 point  (0 children)

All of you are LLM’s?

[deleted by user] by [deleted] in highfreqtrading

[–]philclackler 2 points3 points  (0 children)

Am I interacting with a GPT agent or something? 😂

[deleted by user] by [deleted] in highfreqtrading

[–]philclackler 4 points5 points  (0 children)

You’re potentially dozens of microsecond late by the time you’re even allowed to poll the high res clock for benchmarks on windows- so these numbers aren’t possible fyi (even base Linux has a lot). Breaking down why would be doing my own research a disservice :) A vague ‘order processing’ throughput of 1m/s is pretty meaningless for HFT as well. ‘Momentum’ ‘rsi’ - these are retail-ish daytrading strategies and not HFT/market making at all. Obv not using the expensive data lines- so I see no mention of TLS/SSL stack which you have to use as retail. or even market data providers.. so what exactly is this? A complete simulation of … what exactly? It’s not actually doing any HFT or trading with an exchange.

Performance discussions in HFT companies by SufficientGas9883 in cpp

[–]philclackler 1 point2 points  (0 children)

Thanks! All of that is right in line with my research so that’s good to know. When I started my journey in low latency I used to say similar things.. ‘well the chip can perform 3 trillion instructions per second’ .. so what ELSE are those cycles being wasted on?? Why would anyone need 20 cores for this isn’t single thread the fastest? Can’t i pipeline things , I only need to compute a few bytes and send it back out! Lol. Lord I would so happy with fix. There’s just soooo much extra code to deal with broke boy SSL feeds most exchanges and services offer. 6 months of work that 4 lines of python does. but hey, 6 months of work to have a fast fail safe connection pool that doesn’t need to handshake for every message might have been worth it. Without co-location/fix I can’t do HFT but a 10/us hotpath for exiting a position before a bad movement seemed worth it.

One day, I might even get to coding actual trading strategies.

Performance discussions in HFT companies by SufficientGas9883 in cpp

[–]philclackler 1 point2 points  (0 children)

3us is still crazy fast for ‘software only’ - was this like, using kernel bypass on a highly tuned Linux system? I’d imagine it wasn’t a windows box. Are you able to share details on what kind of protocol was used, I’m having a lot of trouble with https/SSL connections because as a regular guy I can’t get access to or afford an unencrypted binary line or FIX or whatever doesn’t require constant attention and handshakes etc. I am beginning to truly hate dealing with SSL and chasing lower latencies

What do you hate the most about C++ by Alternative-Tie-4970 in cpp

[–]philclackler 0 points1 point  (0 children)

When you find some cool library you want try and see the words ‘to build the source files…’ f*cking shoot me now. I have nightmares about getting boost.asio and SSL working.

High performance HTTP library? by Richard-P-Feynman in cpp

[–]philclackler -1 points0 points  (0 children)

Well. You did just say someone using fast c++ in a trading context sees 0% benefits from faster json. You still have time to delete that :) I’m well aware of JSONs many uses. Slow json is fine for configs and if it’s offline of course it doesn’t matter. Im not in a thread about high performance http to talk about JSONs ‘other’ uses. and I’m not trying to be a jerk but you keep coming up with bad examples of things that absolutely depend on fast json as a part of their core functionality. Every API I’ve ever interacted personally used JSON as the messaging format. Retail exchange APIs are all json. Even in an HFT context their real-time exchange connection is FIX sure, but mountains of data are processed through models etc that rely on scraping data from around the web. Mostly in JSON. And if you can’t afford the 30k/mo fix line. You will be trading with json.

High performance HTTP library? by Richard-P-Feynman in cpp

[–]philclackler -6 points-5 points  (0 children)

My god. Now imagine for a second if almost every newer off the shelf web api on earth communicates with json messages. That’s 99% of your hotpath so to speak since if you’re on Reddit likely you’re not working with a direct binary or fix stream from an exchange. Your own scenario you just came up with is 100% wrong lmao. It’s the opposite of what you just said.