Use Artificial Intelligence (AI) to Predict the Stock Market with Python

preview_player
Показать описание
#Programming #Python
How I used AI & XGBoost to predict the stock market

Disclaimer: The material in this video is purely for educational purposes and should not be taken as professional investment advice. Invest at your own discretion.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
⭐Please Subscribe !⭐
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🐦🔥🐤 Support The Channel🐤🔥🐦
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
⭐Get the code and data sets or just support the channel by becoming a supporter on Patreon:
⭐Website:

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
📚Helpful Python Programming Books📚
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
► Hands-On Machine Learning with Scikit-Learn and TensorFlow:
► Learning Python:
►Head First Python:

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
📚Helpful Financial Books📚
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🌟Stock Market Investing Books:
✔️The Bogleheads' Guide to Investing
✔️The Intelligent Investor
✔️A Random Walk Down Wall Street

🌟Money Mindset Books
✔️Rich Dad Poor Dad:
✔️Get Good With Money: Ten Simple Steps To Becoming Financially Whole:
Рекомендации по теме
Комментарии
Автор

How the flow of a forwardtest such prediction is:
Step 1: Download the csv till current date
Step 2: Delete the last 20% of the timestamps of the csv so if it's like data of 2000 till 2023 then cut till 2019 and save this as training_SP500.csv
Step 3: Do the opposite of step 2 wich u cut the first 80% off and save it as future_Sp500.csv
Step 4: train only on the data of training_SP500.csv
Step 5: u test the the prediction for the missing 20% of the current data
Step 6: on same chart plot the original data of the current s&p500 data

And Voila a chart wich u can clearly see is those prediction where in the right direction!!

Nice vid, good education

leandrogoethals
Автор

This type of algo is usefull just to predict the next time event. You have 70% accuracy but you are predicting just the next day price based in the last day price multiple times

joao_paiva
Автор

should it be more reasonable to use the price the day before to predict the price next day in train and testing?

Mr._Cousin
Автор

Use Your prediction and check the return %, the results is very very poor. The prediction is basically noise with baseline of open price. You can just plot open price vs close price, the are similar to your prediction.

pohu
Автор

Are you sure that it is not learning from the high and low prices of the current day that has not yet closed? How to make sure?

GoodManVlogs
Автор

Where or how did you produce the input file for historical data? Where can it be obtained?

yourbestlifebrandi
Автор

This works only for one stock. Is there any way to design a neural network model that can be used to predict stock price of more than one stock?

kaushikmetha
Автор

i keep getting an error at the "model.score" it says model is not defined

hamzazakaria
Автор

im new to ML, the final plot only show some orange line near the end, what does it mean and where are the rest?

JCCreatorStudio
Автор

actually thats almost useless prediction coz we know volume when only when close is known

codeline
Автор

Hope you had tutorial for deployment of this and for real time price to predit.

Aether_
Автор

way of Telling the program is brief . how can we get the csv files for example like yours SPY.csv

ncielkrommalzeme
Автор

How do I, predict more, like not only the test set for example 3 years forward

Talangenz
Автор

typo? train_data= data.iloc[:int(.99 * len(data)), :]
test_data= data.iloc[int(.99 * len(data)):, :] data 1%
i also get a xgboost error. probably has something to do with the shape of the train and test data not matching

rverm
Автор

Stopped this video when he included 99% of the data in the train_data. Makes no sense

IkaroSampaioDj
Автор

Hey, nice, can you do a tutorial for optimal execution on python using almgren kriss?

dansimon
Автор

Nice Video but not useful for real time prediction, volume information will not be available beforehand

shilpabaranwal
Автор

Very interesting! But, how could it be used in algotrading?

vladvol
Автор

I followed you step by step, but my historical chart is a downtrend for some reason.

useradav
Автор

shame there's no code (just pitching for sign-up), I'll just type it in:)

antonyhartley