r/ProgrammerHumor • • Apr 04 '23

Meme That's better

Post image
59.2k Upvotes

1.0k comments sorted by

View all comments

187

u/huuaaang Apr 04 '23

I had a coworker the other day go on and on about an AI model he's developing as a side project to predict stocks based on 60 years of historical data for a particular stock. I didn't have the heart to tell him the last 10 years of that data, at least, is already tainted by AI models doing that exact same thing. The historical data is completely useless.

23

u/DownvoteEvangelist Apr 04 '23

After Brexit, Covid, Russian invasion of Ukraine I'm amazed people think historical data can be relied on for any sort of financial forecasting...

6

u/WillTheGreat Apr 05 '23

After Brexit, Covid, Russian invasion of Ukraine I'm amazed people think historical data can be relied on for any sort of financial forecasting...

Historical data is actually far from useless, the issue is basing medium and short term trends with long term data and vice versa. Models and technicals don't tell you when or what, but it monitors the movement of money leading to these events to suggest certain bias in the market.

I would say most indicators leading up to Brexit, Covid, Russian Invasion, and even the recent regional bank crisis all leaned bearish. What it doesn't tell you is how violent the move is, how long it will last, and when exactly it'll happen.

There's a pretty simple rule. Short term data is for short term move, medium terms are for medium term moves, and long is just to go long. Your data sets are not particularly interchangeable. You don't use 60 years of data to analyze a move that will occur today or tomorrow and you don't use a couple days of data to make a transaction for a few minute or hours. Surprisingly, from my own experiences, this is what fucks over quants all the time.

1

u/DownvoteEvangelist Apr 05 '23

It also doesn't tell you if it will happen. Like no data from up to October 2019 could have told you anything about Covid...

1

u/WillTheGreat Apr 05 '23 edited Apr 05 '23

Like no data from up to October 2019 could have told you anything about Covid...

I used to work in IB, my models are not all that different from what most IBers track and monitor. I got strong sell signals back in August of 2019, and short confirmation signals in December of 2019, COVID initial outbreak in China basically fundamentally confirmed the short signals.

As a matter of fact, my model signaled extremely strong sell and bearish signals in December 19 in crude as well, price action suggesting that it goes to 0. Which made me think my model on crude was broken. Actually I didn't even know it Crude could even trade negative.

You're correct in a sense that it didn't tell me anything about COVID, but usually the market trends down when the FEDs are in the process of cutting rates. So the sell indicators were directly correlated with the FED's direction.

Invasion of Ukraine for example, I received light buy signals on Crude in December 21, strong buy in mid-Jan and it was further confirmed when the US signaled that given the Russian forces built up the invasion of Ukraine was inevitable.

All these models don't exactly tell me the fundamental reasons why, I just know that money is slowly flowing in or out.

I'll also say that HFT don't actually make money, those things scalp pennies with large sums of money. I've seen LFT and Automatic trading systems work but it's heavily monitored. The reason is that is that algos are incapable of risk assessment. What people don't understand is that historical data isn't predictive model, it's a probability model. Chart patterns, tape reading, moving averages, etc, all common indicators used are all based on historical data, and it only tells you where the money is flowing. It's up to you to figure out why, and make your own risk assessment and make the best trades/investment.

I'll give you a recent example, my model has a sell signal on TSLA on 2/28. If you tried to gamble on short term options you would've gotten burned. It still shows sell, so if you chased it at any point chases were that you would see short term losses. It would've triggered trailing stops, or stop losses. But yet the stock between then and now is down 15%. It still maintains bearish signals, but it whiplashed so hard that it's a bit scary to hold through the entire move down 15% where it is now. Again it's a probability model, it had a high probability of happening. However, how it happened probably meant that you didn't stick with the trade all the way through given the harsh whiplash.

1

u/DownvoteEvangelist Apr 05 '23

Come on, nobody knew about covid in August, it didn't even exist. Earliest possible patient zero is November 17th. The first report by doctors in Wuhan to Chineese authorities that something might be amiss is on December 27th. In August, data that there will be Covid outbreak did not exist on planet earth, let alone in stock market data. Whatever signal you got wasn't caused by impeding covid pandemic...

1

u/WillTheGreat Apr 05 '23

Come on, nobody knew about covid in August,

Literally what I said. However, COVID occur just conveniently when all the markets were sending out bearish signals predating the first outbreak. If you actually read, that is exactly what I said.

1

u/DownvoteEvangelist Apr 05 '23

Correlation doesn't imply causation... And there's plenty of time between August and December, you could have also easily said I had bearish signals in February 2019... You could be also conveniently interpreting the data, ignoring the bullish signal you got in September for example...

→ More replies (2)