Predicting Crypto Prices in Python

preview_player
Показать описание
Today we learn how to predict cryptocurrency prices in Python.

DISCLAIMER: This is not investing advice. I am not a professional who is qualified in giving any financial advice. This is a video purely about programming using financial data.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Timestamps:
0:00 Intro
2:33 Disclaimer
3:33 Loading Financial Data
8:37 Preparing Data
13:21 Neural Network Model
17:34 Testing The Model
27:03 Price Prediction
28:48 Predicting Into The Future
30:55 Outro
Рекомендации по теме
Комментарии
Автор

Dear Sir and class,
the range of your x_test should be
test_start=dt.datetime(2020, 1, 1)+dt.timedelta(days=-prediction_days)
test_end=dt.datetime.now()

I think the model_inputs should have data range:
(60 days prior to 2020, 1, 1 to 2020, 1, 1) plus (2020, 1, 1 to now)
, not (60 days prior to now to now) plus (2020, 1, 1 to now)

the mistake will be reflected at 25:30, since the btc has an increasing trend, your predicted price in the beginning should not be way higher than actual. The reason is you use (60 days prior to now) to predict (2020, 1, 1)

Please clarify
Thank you
Kai-

ChangKaiHua
Автор

I don't know know why my fingures automatically tap on your video notification 😂 You are amazing with amazing projects 👍🏼

aadarsh_chaurasia
Автор

Please can you show us how to predict a month ahead and plot the graph? That would be nice to see!

Covalent
Автор

this channel is the real thing!! no bull shit, straight forward, well arranged information. Thank you so much for all the effort!

ProGuitarUA
Автор

Can you show us how to feed the predicted data back into the model so the model can make actual predictions, please?

antondelagarza
Автор

Traceback (most recent call last):
File numpy as np.py", line 69, in <module>
x_test = np.reshape(x_test, (x_test.shape[0], x_test.shape[1], 1))
IndexError: tuple index out of range

juminokahlister
Автор

Thanks for the clear instructions, the process went smoothly.

CryptoMine_Hub
Автор

Amazing content as always, keep up the great work!

timothymagsino
Автор

Can you show us how to feed the prediction data into the model so we actually predict ahead? I mean not just one day. How can we predict the next month? Thanks 🙏

Covalent
Автор

vi user here! Yeah I remember when I used it in '88 or so! thanks for mentioning it - muscle memory is a weird thang. Great video! Subbed. I love the way you type as I do, yet explain so well. Keep going dude.

TheRetroEngine
Автор

you may not need to do a whole indepth theoretical video on neural networks, just explain what you're actually doing with the tensorflow stuff.
like what the units=50 values do if they're lower or higher, same with the Dropout(0.2), why you need the return_sequences and what does more layers give you, etc.

horseradish
Автор

Why did you scale the entire dataset using MinMax Scaling.. It causes data leakage into the test set. The reason why your prediction looks similar to actual values is because there is data leakage.. We should always fit and transform the train set only to fit the test set.

tuhindas
Автор

You should include some indicators, eg EMA and its prediction for confirmation.

slawomirgontarek
Автор

Thanks. Very interesting lessons, but I think you should follow and add more explanatory comments. This will allow you to analyze the code better over time.

slawomirgontarek
Автор

Great tutorial! New subscriber. Now, what if the neurla network could take it´s own predictions compare them with the actual prices in the past, calculte the mistakes and sort of learn from them, and then do that again with the refined results and so on to finally obtain a better prediction? Is that also programable on your script? Do you think that would work?

kalilveramartinez
Автор

Great tutorial, but would like to know what is it actually doing here. Is it looking at historical patterns? How many days is considered a pattern, 60? Also, when you offset the data by 60 days then is the same true when you had the data offset by 1 day? In other words, should the prediction line be shifted 1 day out?

dnas
Автор

am I confusing something or testing data overlaps with training data? Is it not a problem?

vincenthughes
Автор

Smart YouTube, exposing your video on right time.

rvmishra
Автор

this does not work : data = web.DataReader(f"{crypto_currency}-{against_currency}", 'yahoo', start, end), says "string indices must be integers"

CallmeMrRoyal
Автор

Have problem with data = DataReader(f'{crypto}-{against}', 'yahoo', start=start_date, end=end_date) no conected from yahoo

tomaszpielecki