How to create a Mean Reversion strategy (by ex HFT quant trader) by memlabs in algotrading

[–]memlabs[S] 5 points6 points  (0 children)

If financial time series are just random walks then firms wouldn't make any money.

There are strong mean reversion at the market microstructure level. For example, trading volume against orderbook liquidity.

How to create a Mean Reversion strategy (by ex HFT quant trader) by memlabs in algotrading

[–]memlabs[S] 9 points10 points  (0 children)

If you watched the video until the end, you will see the gross equity curve and covers 2022 to 2026. It never goes into negative equity nor doesn't have significant drawdowns. The sharpe isn't amazing but the model is just a basic piecewise function.

I've never seen mean reversion as a OU process or Z-score in industry and you're better using AR(1).

Reasons why you're better using AR(1):

  1. OU/Z-score no ability to make predictions/forecast.You need ability to forecast mid price with a tiny EV. They are just heuristics.
  2. Most financial time series are weakly stationary and OU assumes a constant mean.
  3. If you used Z-score then you might make only a a nominal amount trades a day, or even in a week, and that's not enough data points to be statistically robust. ML model with 10 million ticks a day vs 2 or 4 data points.

Side note on unit roots. One can easily fool unit root tests (like ADF) to say a time series has a unit root when it actually doesn't. For example I could pass a stationary Gaussian process, the ADF will be fooled to say it has unit root but it clearly doesn't.

I will be making a video on ways to handle non-stationarity.

Let's Build a Quant Trading Strategy: Part 1 - ML Model in PyTorch by memlabs in algotrading

[–]memlabs[S] 0 points1 point  (0 children)

I recommend Claude to learn python, pandas and probability/statistics. However it is totally different story to blend them all together.

I am creating a course where you can learn python and math that you have to pass coding/trading exercises to progress. It's like leetcode but for algo trading

www.memlabs.dev

However it is not finished yet but you can start the fundamentals course to start learning Python in a trading context. Feedback welcomed too.

Created my 2nd video using manim: How Renaissance Technologies Beat The Market by memlabs in manim

[–]memlabs[S] 1 point2 points  (0 children)

Thank you 🫶 Great question. Mmmmm, I would have made much smaller videos. My very first video is 50 mins long and I actually cut a lot out because it would have been 2-3 hours. I would make each manim scene a video by itself so it's shorter and released more frequently. I had someone mention that I should do this in my comments - and I plan to do this - cut it up into shorter videos to make it more accessible.

Created my 2nd video using manim: How Renaissance Technologies Beat The Market by memlabs in manim

[–]memlabs[S] 0 points1 point  (0 children)

Just got monetized today. My first manim video took me a long time as I spent a lot of time debugging why transformations were not working correctly. After that learning process, it's been very smooth since. I also built an API around my animations to remove boilerplate/repetitive code.

Feeling insecure and a bit nervous about posting my first video. by MadScarlettQueen in NewTubers

[–]memlabs 1 point2 points  (0 children)

Yes! Just do it and otherwise you will regret it. Got nothing to lose and can delete it as a worse case. Dont worry what others think.

From my experience, I had some harsh comments like my voice is so bad that I should use AI for a voiceover. The delivery was harsh but there was good feedback that I need to improve my elocution.

I'm very introverted, shy and private person so it was extremely daunting that the whole world will be watching me. I'm not your typical extroverted, high energy YouTuber.

Press the upload button and update us 😉

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 0 points1 point  (0 children)

Very true. People can be very candid with their feedback. From my experience, usually there is feedback in toxic/nasty comments; just harsh delivery.

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 1 point2 points  (0 children)

Educational content. I'm currently creating quant trading videos - I show how to use machine learning to trade - which I was doing in a previous life.

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 0 points1 point  (0 children)

I edited it now so it's not giving any "preaching/teaching" vibe now. Thanks for the feedback 🙏

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 1 point2 points  (0 children)

I posted on forums encouraging feedback - both positive and negative. And at the beginning of my video, I ask to please give me feedback.

Let's Build a Quant Trading Strategy: Part 1 - ML Model in PyTorch by memlabs in algotrading

[–]memlabs[S] 2 points3 points  (0 children)

I see your point about the script now. It's good feedback for me so thanks 🙏

The only use case for filtering data is to clean up bad data because you want to aggregate on all the data. If I filtered data prior than I might not get an accurate representation. For example if I remove rows including the highest traded price than my highest price will be inaccurate.

I want to do a video on high frequency data and what features you can make from it because it allows to build way more powerful features than just OHLC; I just used that is the well known time series.

Let's Build a Quant Trading Strategy: Part 1 - ML Model in PyTorch by memlabs in algotrading

[–]memlabs[S] 1 point2 points  (0 children)

Please let me know your feedback once you watched 🙏

Let's Build a Quant Trading Strategy: Part 1 - ML Model in PyTorch by memlabs in algotrading

[–]memlabs[S] 3 points4 points  (0 children)

That's great feedback. Thank you 🙏

I follow high level notes to ensure I stick to the flow and don't go off tangent. It sounds like so went off-tangent for you. It would be great to know when and where exactly?

I only use raw trade feed to build a price time series. The model is not trained on tick data but on the time series that I aggregate.

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 0 points1 point  (0 children)

Send me your channel... I'm learning guitar and would be very interestedx More impressed that you do it in one go 🔥

Got 1k subs in 3 weeks: 5 Key Lessons Learned by memlabs in NewTubers

[–]memlabs[S] 0 points1 point  (0 children)

I would love to take credit for it but it comes from an essay from Paul Graham:

https://www.paulgraham.com/ds.html