r/Python • • Aug 17 '26

Discussion What are some Python automations you built for your life?

What Python scripts/projects did you built to use on a day to day basis? Or maybe someone else built it, but it’s useful for your personal life in some way

I think the “projects ideas” thread is really missing those useful opportunities

I myself thought about automating tax calculations, but still didn’t take the time to do it hah

323 Upvotes

164 comments sorted by

View all comments

Show parent comment

8

u/gabriel_GAGRA Aug 17 '26

Has this been proved actionable / useful? I mean, did you buy or sell because of an alert?

I’m more of a “buy and hold” guy (lol), but I really liked the idea and the project, especially for very high changes

18

u/ironykarl Aug 17 '26

Unless they're firmly ensconced in some industries in such a way that they have genuine insider knowledge, there's basically zero chance this is useful. 

https://en.wikipedia.org/wiki/Efficient-market_hypothesis

I'm not discounting that it's fun... but it isn't a viable way of beating a basic index fund

5

u/gabriel_GAGRA Aug 17 '26 edited Aug 18 '26

I just realised we are talking about funds and not stocks. Yeah, I 100% agree, not so useful unless you are real time watching someone manipulating the market

I could see some use for stocks though, if you are a frequent trader, maybe waiting for opportunities to buy more. Though ofc, by itself (without investigating and researching causes of that change after such alarm), I’m sure it would be more negative than anything

1

u/FisterAct Aug 17 '26

Markets are not efficient lol. Especially stock markets. If they were, then we wouldn't see volatility.

9

u/ironykarl Aug 17 '26

They're efficient enough that the recommended investment strategy for almost everyone is index funds. 

Even professional money managers can't pick stocks that outperform a passive index fund.

That is a consistent and robust finding and something like a soft version of the efficient market hypothesis is part of the reason why.

-7

u/FisterAct Aug 17 '26

I have simple way to disprove that. Professional money managers can't bea the market because they're constrained by regulation pretty tightly.

Anyway here's a strategy for you to beat the market:

  1. Take the S&P500.
  2. Drop the current 5 bottom performers for the year YTD.

And that's it. I guarantee you by December that that'll be up over the S&P500.

2

u/ironykarl Aug 17 '26

There are a ton of index funds that are the not S&P 500.

As an asset class, index funds outperform basically anything else, and there certain is basically zero capacity for regular people to act on market news to pick stocks or marketing timing in a consistently profitable way

2

u/MrSlaw Aug 17 '26

Anyway here's a strategy for you to beat the market: 1. Take the S&P500. 2. Drop the current 5 bottom performers for the year YTD.

And that's it. I guarantee you by December that that'll be up over the S&P500.

Do it then?

You're seemingly forgetting that the S&P is cap-weighted, so dropping the bottom 5 will barely affect anything.

But more than that, the lowest performing stocks typically have the highest tendency to outperform. So if anything, you'd likely see lower returns, not higher.

And even more than that, even if this was a viable strategy, it would already be priced-in.

2

u/sinceJune4 Aug 17 '26

I’m 99% buy and hold, but I did act on this recently to buy into an energy etf, with the volatility in oil prices.