Algorithmic Trading Python for Beginners - FULL TUTORIAL

  Рет қаралды 442,497

QuantProgram

QuantProgram

Күн бұрын

We have a created an Algorithmic Trading Course in python for pure beginners wherein we discuss multiple concepts from a basic zero to hero framework. The video is a full tutorial which starts from basic installation of python and anaconda all the way to backtesting strategies and creating trading API. There are more quality quantitative strategy video son our channel that can be found below:
/ @quantprogram
The full code can be downloaded from the link below:
www.quantprogram.com/Algorith...
Feel free to check out our Quantitative Trading course:
www.quantprogram.com
Chapters
00:00 Intro
00:55 Installation of Anaconda
01:50 Installing Yfinance
02:40 Working with Jupyter Notebook
06:58 Working with numpy and pandas and other libraries
07:50 Downloading stock data
12:00 Working with data
13:00 Read and writing Data
21:35 Separating and Segregating Data
23:00 Data visualization and graphs
26:00 Normalization
30:00 Making changes and creating new data
42:00 Deleting Data
44:40 Resampling Data
48:50 Histogram Graph
50:30 Mean, Variance and Standard Deviation
01:00:00 Scatter Plot
01:00:40 Stock Comparison with risk metric
01:01:50 For loops
01:09:00 Correlation and Covariance
01:10:20 Heat map
01:15:00 Challenge 1
01:16:00 Simple and Log returns
01:23:00 Creating Moving averages data
01:32:15 Challenge 2
01:35:00 Reindexing
01:37:45 Forward fill and Backfill
01:41:00 Cumulative returns and drawdowns
01:57:00 Creating and Backtesting Strategies
02:09:00 Comparison to buy and hold
02:11:40 Long bias Strategy
02:16:00 Challenge 3
02:16:30 Creating a function
02:26:30 Creating a class
02:43:30 Importing and Using a Class
02:48:45 Challenge 4
02:51:00 API
02:52:00 Working with API
Disclaimer: The contents provided in the channel are purely educational. We do not provide any financial or investment advice. There is a very high degree of risk involved in trading. Past results are not indicative of future returns. quantprogram.com and all individuals affiliated with this site assume no responsibilities for your trading and investment results. The contents, videos, columns, articles and all other features are for educational purposes only and should not be construed as investment advice.

Пікірлер: 341
@quantprogram
@quantprogram 2 жыл бұрын
Chapters Download the python file in the description if you face any errors. You can also watch quantconnect via python tutorial on our channel to execute/automate your live strategies via your broker. Visit our website for more detailed algorithmic trading course with 10 strategies to start of your algorithmic trading career. 00:00 Intro 00:55 Installation of Anaconda 01:50 Installing Yfinance 02:40 Working with Jupyter Notebook 06:58 Working with numpy and pandas and other libraries 07:50 Downloading stock data 12:00 Working with data 13:00 Read and writing Data 21:35 Separating and Segregating Data 23:00 Data visualization and graphs 26:00 Normalization 30:00 Making changes and creating new data 42:00 Deleting Data 44:40 Resampling Data 48:50 Histogram Graph 50:30 Mean, Variance and Standard Deviation 01:00:00 Scatter Plot 01:00:40 Stock Comparison with risk metric 01:01:50 For loops 01:09:00 Correlation and Covariance 01:10:20 Heat map 01:15:00 Challenge 1 01:16:00 Simple and Log returns 01:23:00 Creating Moving averages data 01:32:15 Challenge 2 01:35:00 Reindexing 01:37:45 Forward fill and Backfill 01:41:00 Cumulative returns and drawdowns 01:57:00 Creating and Backtesting Strategies 02:09:00 Comparison to buy and hold 02:11:40 Long bias Strategy 02:16:00 Challenge 3 02:16:30 Creating a function 02:26:30 Creating a class 02:43:30 Importing and Using a Class 02:48:45 Challenge 4 02:51:00 API 02:52:00 Working with API
@tradingforliving6556
@tradingforliving6556 Жыл бұрын
Excellent bro... Love to learn from you a lot ..
@classicmedia001
@classicmedia001 7 ай бұрын
is it not better to use the exponential moving average than to use the simple moving average and also how do I find the best moving averages?
@jimgrajek3142
@jimgrajek3142 9 күн бұрын
If you think you are going to do this in just over 3 hours by following along that is not going to happen. Plan for 3 days. Just a great video. So much information. Thank you.
@agermoune
@agermoune 6 ай бұрын
Exactly what I was looking for, both the curriculum and finance subject. Glad I found your channel, subscribed immediately and will explore your other videos later. Thank you for all your time and effort to spread knowledge!
@pravinsharma765
@pravinsharma765 Жыл бұрын
I am just halfway down the line and I can say that it's the best video to date on Algo Trading!
@quantprogram
@quantprogram Жыл бұрын
Thanks so much Pravin
@thetradingelevation
@thetradingelevation Жыл бұрын
No cap!
@sameerlule5781
@sameerlule5781 Жыл бұрын
Why would you date on algo trading when you can do that on bumble or tinder or in-person which I think probably is the best way to date
@motivationaltime5
@motivationaltime5 6 ай бұрын
Pravinsharma sir I want to talk you plz allow me sir
@anm_yoga
@anm_yoga 3 ай бұрын
This is the absolute best algo trading tutorial I have ever seen on KZfaq because it is the only one completed. From now I only want to follow your channel. thank you for your excellent teaching.
@quantprogram
@quantprogram 3 ай бұрын
Thanks so much mate. Appreciate it
@kritimathur7201
@kritimathur7201 6 ай бұрын
This video is the reason I got my first internship ever and I'll forever be grateful for it, thank you for this amazing content.
@quantprogram
@quantprogram 6 ай бұрын
That’s amazing. Congratulations. Thanks so much for the comment. Appreciate it
@omeruzun9625
@omeruzun9625 Жыл бұрын
Unbelievable ... The algorithm recommended that video but I did not see it in the list when I looked once. I am at minute 6 and learned already some useful shortcuts for jupyter. Very good content thank you very much I will enjoy that video I see it helps to learn to code in a very practice-related way, that is how I like to learn!
@oneouthere
@oneouthere Жыл бұрын
Thank you this was a great course, I look forward to your looking at your other content.
@sahil8466
@sahil8466 11 ай бұрын
What a video!! Just a simple and very good explanation so far on youtube. Tried learning from many, but this is the best❤
@quantprogram
@quantprogram 11 ай бұрын
Thanks much mate
@buggycoder3896
@buggycoder3896 2 жыл бұрын
I came here from the code camp course. You are so much more easy to understand. Though with a lot of struggle I had managed to cope with the instructions of Codecamp course, turns out a lot of functions mentioned in the course are outdated. I was confronted with many decoding errors. So I luckily found your course, which is super beginner friendly and more importantly everything works!! Thank you very much for this course!
@quantprogram
@quantprogram 2 жыл бұрын
Thanks so much for watching mate. Much appreciated for the comment. Check out the Donchian breakout strategy video which is also done in python on our channel. You'll be able to create your breakout strategies after that. I'll also be uploading a Python backtrader full tutorial video soon as well. Once thats done then the whole package of Algo trading in Python should be done and then we can then move on to more serious neural network and machine learning strategies.
@buggycoder3896
@buggycoder3896 2 жыл бұрын
@@quantprogram Wohooo Gotcha Sensei! I'm fortunate to have found someone so early, just precisely when I've started my learning journey! Thanks a lot for your uploads. I'll make the most of them and try to keep up with everything.
@buggycoder3896
@buggycoder3896 2 жыл бұрын
Also if you ever get into blockchain development do upload those tutorials as well. Thanks a lot!
@quantprogram
@quantprogram 2 жыл бұрын
@@buggycoder3896 Will do mate. Thanks again
@quantprogram
@quantprogram 2 жыл бұрын
@@buggycoder3896 Hi mate, The discord idea is under our radar. The issue we are facing really is the members and spam people that could be involved and the time intensive situation we will face removing and managing the group. However we might start this in the near future. Thanks much for you suggestion
@TheRoandroid
@TheRoandroid 5 ай бұрын
Excellent video! I'm looking forward to watching the rest of your content. You explain concepts very well, and I particularly enjoyed your Python teaching skills. Watching a real person code and troubleshoot is incredibly valuable. This is an excellent and honest video that provides valuable content.
@quantprogram
@quantprogram 5 ай бұрын
Awesome, thank you!
@Tipate78
@Tipate78 3 ай бұрын
Just got through with the full tutorial ! Thanks a lot for putting online such a great video !
@quantprogram
@quantprogram 2 ай бұрын
Thanks for the comment mate. Appreciate it. If you are free it would be great if you can share it on your social media.
@darshitgoswami
@darshitgoswami Жыл бұрын
One of the finest video on the topic, heavily underrated.. thanks for this..
@quantprogram
@quantprogram Жыл бұрын
Thanks much mate. Much appreciated!
@romainbrs8508
@romainbrs8508 6 ай бұрын
Such a Wonderful video! Good idea the concept of challenge. Thank You for this
@pauleasther
@pauleasther 10 ай бұрын
Great help, thanks for taking the time to create the video 😊 As a youtuber myself I know the time involved in creating vids can be 100 times longer than the play time
@quantprogram
@quantprogram 10 ай бұрын
Thanks much for watching mate. Yes it did take a lot of work but kind of enjoyed it, made me go back to the basics.
@rev0luci0n
@rev0luci0n 2 жыл бұрын
This is awesome thank you for so much detail!
@quantprogram
@quantprogram 2 жыл бұрын
You are so welcome!
@froggyana
@froggyana 5 ай бұрын
Thank you for taking the time to make this video. I have really benefited. Cheers
@quantprogram
@quantprogram 5 ай бұрын
Thanks much for the comment. Appreciate it
@prestondavison5076
@prestondavison5076 Жыл бұрын
Phenomenal video and explanation. Thank you so much for this!
@quantprogram
@quantprogram Жыл бұрын
You're very welcome!
@crazyvideos7428
@crazyvideos7428 Жыл бұрын
15 MINS INTO THIS TUTORIAL I am already hoooook. I pray it goes well because I have been searching for aa step by step way to learn algo trading and none has been so helpful but this. Thanks so much. I am coding along and pausing the video to take note and I can tell your simplicity in explaining complex python syntax is epic i have not encountered any issues yet. Thanks
@quantprogram
@quantprogram Жыл бұрын
Thanks much mate. Much appreciated!
@marcellenberger6656
@marcellenberger6656 Жыл бұрын
Thanks for the input.
@MichaelAlcock
@MichaelAlcock 11 ай бұрын
24:07. You may come accross an error when trying to use seaborn as explained in the video. This is due to an update in Python since 3.6(i think). My work around was: " %matplotlib inline import matplotlib.pyplot as plt import seaborn as sns sns.set_theme() plt.style.use("seaborn") " Just an extra step but it works.
@quantprogram
@quantprogram 11 ай бұрын
Yes you are right. There are many updates that's happening which can cause errors or warnings to some of the codes. Thanks for giving the heads up to the viewers mate. Much appreciated
@MichaelAlcock
@MichaelAlcock 11 ай бұрын
still working through it but going well so far
@fezilempaka2337
@fezilempaka2337 4 ай бұрын
To me it's not working still have the same problem(Alternatively, directly use the seaborn API instead), any other advice maybe?
@Turul-Magyar
@Turul-Magyar 2 ай бұрын
%matplotlib inline import matplotlib.pyplot as plt plt.style.use('seaborn-v0_8-darkgrid')@@fezilempaka2337
@drewproskovec7886
@drewproskovec7886 4 сағат бұрын
Ur the man for this. Thank you
@mathiasmorgan5792
@mathiasmorgan5792 Жыл бұрын
Very well done, far superior to most others vids on youtube on this topic.
@quantprogram
@quantprogram Жыл бұрын
Thanks mate
@mahantrushik6485
@mahantrushik6485 Жыл бұрын
Holly crap this guy is way more better than my university professor. Most underrated YT channel.
@quantprogram
@quantprogram Жыл бұрын
Thanks mate
@AllTimeMoneyyy
@AllTimeMoneyyy 7 ай бұрын
By far d Best course for beginners into python n trading. Pros: amazing step by step explanation of code as well as concepts Methodological way of explaining and breaking down code. Amazing teaching 👏 Won't get bogged down or bored by the length of code. Hats off!! Thankyou for this wonderful beginner course!! SUBSCRIBED,LIKED AND COMMENTED!!😊 learning worth the time spent!!
@quantprogram
@quantprogram 7 ай бұрын
Thank you so much . Appreciate it
@Lnd2345
@Lnd2345 Жыл бұрын
Superb tutorial thanks.
@theweirdsiblings8391
@theweirdsiblings8391 3 ай бұрын
Thank you very much for your video.
@ashwnicoer
@ashwnicoer 10 ай бұрын
In resampling 48:00 ,I think inf must be handled by ret.replace([np.inf, -np.inf], np.nan, inplace=True)
@bushido5206
@bushido5206 2 жыл бұрын
Excellent tutorial
@raffaelloti
@raffaelloti Жыл бұрын
perfect for beginner. thanks!
@quantprogram
@quantprogram Жыл бұрын
You're welcome!
@Juan-Hdez
@Juan-Hdez 4 ай бұрын
Very useful. Thank you!
@quantprogram
@quantprogram 3 ай бұрын
Thanks for the comment mate. Appreciate it
@sb77de
@sb77de Жыл бұрын
fantastic content. watching in 30 minute sessions because its just jam packed with gems PS bonus points for your copy/paste action, makes me want to buy a mac 😆!!
@quantprogram
@quantprogram Жыл бұрын
Thanks much mate
@omurgokcinar4187
@omurgokcinar4187 7 ай бұрын
great video! best part was hearing the adhaan on the background
@venerateweb8384
@venerateweb8384 2 жыл бұрын
Fantastic video. Quick request actually: there seems to be a lot of talk about using AI (with python) in algorithmic trading. Could you make a video showing this in the same fashion/detail as you've created this wonderful video?
@quantprogram
@quantprogram 2 жыл бұрын
It's on the way mate. Should start with simple regression models and work up to the deep learning and neural network models. Videos will be coming up soon covering these topics. Thanks much for your feedback
@venerateweb8384
@venerateweb8384 2 жыл бұрын
@@quantprogram You are wayyyy ahead of the curve. Awesome stuff! Can't wait to see it!
@nguyenduyta7136
@nguyenduyta7136 Жыл бұрын
Yeah you have created a great things. And I’m looking forward something nice and I love even you open an online course that for full stack app , connecting to api and have SQL to store database. Thank so much
@hassayuthiyea2743
@hassayuthiyea2743 8 ай бұрын
Your explanation is clear and easy to understand. Great job.
@quantprogram
@quantprogram 8 ай бұрын
Thanks much mate. Watch our Quantconnect tutorial video if you plan on executing strategies live via python
@hassayuthiyea2743
@hassayuthiyea2743 8 ай бұрын
Hello, I decided to purchase your QuantProgram Prometheus course. I already paid with paypal; however, it got error, but the money is pending in my bank account? Could you help solve my problem to get your course content? Thank you very much.@@quantprogram
@ethanseidner3262
@ethanseidner3262 10 ай бұрын
Incredible tutorial!!
@quantprogram
@quantprogram 10 ай бұрын
Thanks mate
@deadpool1977
@deadpool1977 5 ай бұрын
In just 5 minutes I was amazed by the knowledge that you shared. Just subscribed to your channel bro, keep up the good work and keep sharing good knowledge
@quantprogram
@quantprogram 5 ай бұрын
Thanks mate
@kunstrikerasochi2103
@kunstrikerasochi2103 7 ай бұрын
Wow what an awesome course. Thank you
@quantprogram
@quantprogram 7 ай бұрын
Glad you like it!
@CodewithKython
@CodewithKython Жыл бұрын
This is fantastic content. i learnt so much today. Thankyou Thanks. I have subscribed and liked the video
@quantprogram
@quantprogram Жыл бұрын
Awesome, thank you!
@philipfiguerres7737
@philipfiguerres7737 2 жыл бұрын
Much Thanks for the very informative video
@quantprogram
@quantprogram 2 жыл бұрын
Thanks for watching Philip
@chriskinney7953
@chriskinney7953 2 жыл бұрын
Thank you so much!!!
@quantprogram
@quantprogram 2 жыл бұрын
You're welcome mate
@IndustryOfMagic
@IndustryOfMagic Жыл бұрын
At 1:02 It's no longer called "individual", it's now called "Distribution"
@quantprogram
@quantprogram Жыл бұрын
Yeah they have made the update on their website. Just download that
@KundanRajasthani_0512
@KundanRajasthani_0512 6 ай бұрын
Thank you for sharing this valuable content
@quantprogram
@quantprogram 6 ай бұрын
Glad you enjoyed it!
@makro8998
@makro8998 9 ай бұрын
great one krub
@ryantao6015
@ryantao6015 Жыл бұрын
Thanks for the great video. It is very easy to understand. However, through the challenges, using multiple data columns and creating new ones for each is difficult. For example, for Challenge 2 where I had to create a moving average for every stock, you put spy["SMA50"] = spy.rolling(window=50,min_periods=50).mean() This worked and made another column for a 50 SMA. When I put a dataframe with multiple stocks into it such as unriskstocks["SMA50"] = unriskstocks(window=50,min_periods=50).mean() It gave the error that I was trying to put many columns into the column SMA 50. I had to manually type out every stock such as how you did it. Is there a better and more efficient way to do this, especially with a trading strategy? Thanks
@quantprogram
@quantprogram Жыл бұрын
Thanks for watching the video mate. Coding is a bit tricky, you have to think deeper why you got the error and also outside the box. The reason why you were getting errors, i would assume from the info provided is that spy had 1 stock but you were putting all stock data in 1 column instead of multiple columns. Spys sma was put in 1 column. 1 stock datas moving average has to be put in 1 column. 10 stocks sma cant be put in 1 column, it has to be 10 columns. Apart from doing it manually, one way to do it will be using For loops, in that way you only need to write a few lines of codes and you can find sma for 1000+ stocks easily. we have discussed about how to create and name columns and also using for loops in the video. This would be combining all the necessary tools that you learned in the video. But its quite easy to do it. You can create the code if you think deeper, this is the only way youll learn. Just use for loops, give in the sma creation statement with column name and thats pretty much it.
@thienphan1541
@thienphan1541 9 ай бұрын
Thanks for making this video
@quantprogram
@quantprogram 9 ай бұрын
Thanks for watching mate. Check the quantconnect video on our channel. It uses python as well. Could help if you plan on creating a live algo
@Chris-si4ox
@Chris-si4ox 6 ай бұрын
this is brilliant, thanks
@quantprogram
@quantprogram 6 ай бұрын
You're very welcome!
@sb77de
@sb77de Жыл бұрын
Thanks!
@quantprogram
@quantprogram Жыл бұрын
Thanks much mate. Let me know if you need any help
@trends8770
@trends8770 Жыл бұрын
Thanks for Sharing, super good content .
@quantprogram
@quantprogram Жыл бұрын
Glad you enjoyed it
@botsprofit
@botsprofit 8 ай бұрын
you are super good teacher once again !!!!!!!
@quantprogram
@quantprogram 8 ай бұрын
Thank you! 😃
@virgilmonteiro9385
@virgilmonteiro9385 2 жыл бұрын
This is amazing sir thank you
@quantprogram
@quantprogram 2 жыл бұрын
Most welcome
@user-pr8ki4wo3v
@user-pr8ki4wo3v Ай бұрын
What I have to know something before Joining this course?
@fhackman
@fhackman Жыл бұрын
Thank you so much
@quantprogram
@quantprogram Жыл бұрын
You're most welcome
@Bringdasnowmonster
@Bringdasnowmonster Жыл бұрын
I'm trying to apply a SMA50 to the multiple stocks I thought were the best, but I'm receiving an error saying "Expected a 1D array, got an array with shape (10791, 5)". For reference I tried "stocks3["SMA50"]=stocks3.rolling(window=50,min_periods=50).mean()" where stocks3 is my stock data.
@jakobesken731
@jakobesken731 Жыл бұрын
Great content! In general: Isn't it better to use "adj close" which includes dividends and splits?
@quantprogram
@quantprogram Жыл бұрын
Yes it is Jakob. The only reason we to choose close is to make it easier for people to understand the coding process
@user-dk1zu9mb9k
@user-dk1zu9mb9k 6 ай бұрын
excelente
@Vev79
@Vev79 4 ай бұрын
Thank you
@quantprogram
@quantprogram 4 ай бұрын
You're welcome
@arkadiygrishin4460
@arkadiygrishin4460 6 ай бұрын
Hi, can a newbie start trading or do I need a specific degree for it? Also, any resources/books that you'll recommend?🍉
@AjaySharma-jv6qn
@AjaySharma-jv6qn 8 ай бұрын
Very few people are blessed for teaching and you are one of them
@quantprogram
@quantprogram 8 ай бұрын
So nice of you mate. Thanks much
@travisfubu9053
@travisfubu9053 Жыл бұрын
Thanks, bro liked and subscribed, I too checked that freecodecamp video but as I'm not good with python yet it was too difficult and when you try to learn python the traditional way lesson by lesson it gets boring and your brain starts to wanna quit because you're not interested in just learning but applying it to what you want (in my case trading) as you learn it. Glad this rock called earth has a few geniuses like you who thought this through before making this video.
@quantprogram
@quantprogram Жыл бұрын
Thanks much for the comment mate. Much appreciated
@travisfubu9053
@travisfubu9053 Жыл бұрын
@@quantprogram My pleasure bro I always support good content when I find it
@AndreGTunechI
@AndreGTunechI Жыл бұрын
Awesome video, however I encounter a problem at (resample) around the 44min
@pragneshmistry6845
@pragneshmistry6845 11 ай бұрын
Challenge 1 , 1 and 2 completed.
@anonymousdetective7432
@anonymousdetective7432 Жыл бұрын
I have never traded before or done any kind of market analysis, but I have the interest to ackknoledge and do some investments. Should I watch this video, or this is for the intermdediate expert traders? Can you give me guidelines?
@rishavshaw1042
@rishavshaw1042 2 жыл бұрын
Amazing stuff. What are the key skills required for becoming a professional algorithmic trader?
@quantprogram
@quantprogram 2 жыл бұрын
Coding, Math and Trading skills
@abrafgesvbeac3676
@abrafgesvbeac3676 2 жыл бұрын
WOW!!!
@Myboy21
@Myboy21 Жыл бұрын
Is this the only video after which we can make our own automatic algos for intraday trading?
@LOCKED-INGAMING
@LOCKED-INGAMING Жыл бұрын
Great video I have never coded before and became interested in algo’s recently. I have a strategy in mind but don’t know how to implement it. Any chance you can help out?
@gunjankumar7559
@gunjankumar7559 Жыл бұрын
Please create a pinecode for ATR exit strategy.
@Mark-nm9sm
@Mark-nm9sm 2 ай бұрын
Nice video, would prefer it if it was more finance detailed, after all if someone wants to learn python they can take a course or watch a tutorial specific for that, no need to merge those 2 together. Still great insight!
@roccchow
@roccchow Жыл бұрын
Great video mate. Fun thing: I was watching it midnight in my bed and I was like why there are crows outside so loud bothering me watching the video. Wait… we don’t have crows here lol and then I realized that it is from the video 😂
@quantprogram
@quantprogram Жыл бұрын
Lol. If you watched it in midnight , i understand that it was weird and maybe scary. But hey you were alert for the whole video to notice that. I assume you absorbed every bit of knowledge in the video. Thanks for watching mate. Appreciate it. Have a great new year
@brich8110
@brich8110 Жыл бұрын
hey anyone have an idea on how to solve the first challenge, i cant find a way to sort the ret.corr() data and get a top 5 of the lowest stocks correlation. Any ideas ? Also nice course thank you
@buggycoder3896
@buggycoder3896 2 жыл бұрын
Hey the challenge 2 at 1:33:20 . Is it possible to download 5 stocks that we picked and execute the graph of all of them in one function, or we need to individually graph the Moving averages of all of them? Like are we looking at 5 different graphs?
@quantprogram
@quantprogram 2 жыл бұрын
Sure, will just need to put those functions in a class. And make the functions do the job of plotting 5 graphs, ie store the data and give instruction to plot the data 5 times in the same function
@thetradingelevation
@thetradingelevation Жыл бұрын
Beautiful video, can I ask for more clarification on std deviation. Whats considered a good value? or does it depend on the particular symbol
@quantprogram
@quantprogram Жыл бұрын
Yes you're right. It depends on specific stocks. Certain low cap stock are more volatile and their std will be higher as compared to others. Large cap stocks tend to be less volatile but understanding this information can be useful. When these large cap stocks do deviate higher there can be bigger reversion to mean and hence a better risk to reward profile
@girishgastgar9115
@girishgastgar9115 2 жыл бұрын
Thank you so much for the detailed video. I have a query. How secure is the new code written in python? Can I keep the python code secret or it will visible to other users as well?
@quantprogram
@quantprogram 2 жыл бұрын
It will be secure as long as your computer is secure. Saving a python file is just a similar as saving a word file. The file is stored locally in your computer. So as long as your computer is safe then you should be safe. However if you post this in github and make it public it will be available for everyone to see. Same thing goes for uploading in cloud, the security of file depends on the security of the cloud company.
@Mark-nm9sm
@Mark-nm9sm Ай бұрын
Can someone please help me understand, does the profit from the SMA long short strategy actually make sense? I have coded a similar thing but for EMA and the cummulative sum that comes out is different from the one i have tested
@jaychow5220
@jaychow5220 Жыл бұрын
I had reopen the Jupyter but when I follow the steps then it said that pd, stocks is not defined. May I know how do I recall those data after I close the jupyter?
@tracywang1
@tracywang1 3 ай бұрын
Thanks for the tutorial! However, I have a question about backtesting strategy: in 2:08:21 Y simply multiples daily return and long short position However, I think that would only work for long only posiiton (buy and hold) right? When you have short position, simply adding up log return is not correct for example: at day 1 the stock goes up 10%, day 2 goes up 10% agian, then long position is (1+10%)*(1+10*) that's correct however, if I short, then my cumulative return is not (1-10%)*(1-10%) it should be somethinglike (1-10%)* (1-12%) I found a lot of tutorials do it this way while I think is wrong, can you shed some light? Thanks!
@IndustryOfMagic
@IndustryOfMagic Жыл бұрын
I am wondering if there is any function similar to yfinance to pull out all the supported crypto-pairs like for example ETHUSDT, ADAUSDT, XRPUSDT, etc.. So far the only pair that works with yfinance library is the BTC ticker. Thank you for replying.
@quantprogram
@quantprogram Жыл бұрын
Im not aware of it as i don't trade crypto. We are focussed more on stocks.But I'm pretty sure there are some resources available online. stackoverflow and google are you're best friends in coding department
@richardlong7734
@richardlong7734 2 жыл бұрын
This is a such great video, thank you very much. I keep trying to follow along with the jupyter notebook a little everyday, however every time i close the notebook and then come back the next day to where I was nothing is saved in my notebook. All the code and progress is still there and showing however if I try to load anything in the command line it says it's not defined and I have to import everything and define all over again. I've tried save and checkpoint but nothing i import stays and i have to import all over again? Any idea what I am doing wrong. Using mac os. thanks for any suggestions so i can follow along a little everyday and get through and thanks again for the awesome video
@quantprogram
@quantprogram 2 жыл бұрын
Hi Richard, If all the code is still there saved and you can see them, there is nothing to worry about. When you start the next time after you have opened your file just go click "Cell" at the top and then "Run all" and all the code will be run in chronological order. The thing is we defined some important function and header files(pandas, matplotlib,etc) and when you close the jupyter notebook and anaconda these functions get closed as well. So these have to defined ie run again. By hitting "run all" all these things that you have done before will be run again all at once and you won't have to do it individually. Hope you understood the system. Let us know if you require further clarification
@richardlong7734
@richardlong7734 2 жыл бұрын
@@quantprogram thank you so much, that worked!
@quantprogram
@quantprogram 2 жыл бұрын
@@richardlong7734 Your'e welcome Richard
@gyadapakaakash8865
@gyadapakaakash8865 2 жыл бұрын
good video bro
@quantprogram
@quantprogram 2 жыл бұрын
Thanks mate
@nndsmsjsjs2501
@nndsmsjsjs2501 Жыл бұрын
The Video I Was Searching
@solemath
@solemath 9 ай бұрын
Great vid! why do we need .copy() around 23:00, is it possible to assign it to close without using .copy() function?
@quantprogram
@quantprogram 9 ай бұрын
Yes it serves similar purpose but not exactly. If you avoid copy() when you make changes to close then dataframe of original can be changed. Using copy() ensures the dataframe of where we choose the data doesnt change even if we make modifications to "close" in the future. The other reason why we put it is so studnts can understand what copy() does
@solemath
@solemath 9 ай бұрын
@@quantprogram thank you!!
@chansam2675
@chansam2675 Жыл бұрын
Sign in and click on terminal, it shows (base) c: user/, instead of (base) username@password %. How can I switch to % ?
@amirabbasma635
@amirabbasma635 Жыл бұрын
Thanks for the amazing video👌 I mentioned the request to access the full code on the website but I didn't get any email. Do you know the problem?
@quantprogram
@quantprogram Жыл бұрын
Which email did you send the request to, please check your spam folder as well
@cimpsamo5563
@cimpsamo5563 2 жыл бұрын
can you please tell me where i can learn or download all trading codes so i can create any kind of trading bot with any strategy that i want
@alexandrepetit3203
@alexandrepetit3203 2 жыл бұрын
hey man have you found an answer to this question?
@bharathsekar9640
@bharathsekar9640 6 ай бұрын
Hey Hi I am from India can I get the fundamentals of algo trading from this course and utilise in Indian stock market Can you say something upon it?
@william5792
@william5792 Жыл бұрын
Great video! ive been working through your course but i encountered an issue at @45.35 with the .resample("M") as i recieved an error saying " TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'Index' " so i downloaded you code to see what i did wrong but i get the same issue when i try to run your code aswell, is there anything im specifically doing wrong as the code seems to work on the video.
@quantprogram
@quantprogram Жыл бұрын
Hi william, I dont seem to find any issues, I ran the codes again and seems to work perfectly well. I think you must have missed a certain line of code, make sure all the odes are in chronological order. Also when you close jupyter or anaconda or terminal window, you have to restart all the codes again as all the logs will be deleted. You can do this by clicking "cell" on the top and run all. From your error what i can see is that its not a datetimeindex, which is not true as "aapl" is in a datetimeindex. which means most likely you. have missed a code. Regardless if you want to change some data to datetimeindex all you have to do is df['x'] = pd.to_datetime(df['x']) so in this case you can store to some value. eg newdata = aapl.AAPL newdata=pd.DataFrame(newdata) newdata = df.set_index('date') but in your case im pretty sure its a missing code You can also try "aapl.index = pd.to_datetime(aapl.index, utc=True)" Regardless if you still have made sure there is no missed code, please send the jupyter notebook file to quantprogram@gmail.com and Ill have a look
@seanmcnelis8060
@seanmcnelis8060 Жыл бұрын
I am currently having the same issue. Let me know if you find the solution. Thanks.
@ozgur3143
@ozgur3143 Жыл бұрын
@@quantprogram i did this "aapl.index = pd.to_datetime(aapl.index, utc=True)" get this kind of date type 2010-01-01 00:00:00+00:00 is it ok? Because .resample("M").last() worked just fine.
@quantprogram
@quantprogram Жыл бұрын
@@ozgur3143 If the code form the video worked just fine, dont change anything. It works perfectly well in my end too The new code was given as there seems to be some issues with some people, maybe because of the operating systems or upgrade of python or anaconda
@classicmedia001
@classicmedia001 7 ай бұрын
when checking which stocks are the best to invest in, should it be checked base on the correlation heatmap or base on the annual risks/returns plot?
@quantprogram
@quantprogram 7 ай бұрын
There is no strict one rule mate. These are all analytical tools. You have to find your own method and style that suit your risk profile
@classicmedia001
@classicmedia001 7 ай бұрын
@@quantprogram how do I find stocks to build models for?..is it base on most active stocks, most stocks gainers, most stocks losers and PE ratio?
@classicmedia001
@classicmedia001 6 ай бұрын
@@quantprogram Please recommend books on algorithmic trading with python or machine learning🙏🙏
@surendrapalsingh2431
@surendrapalsingh2431 2 жыл бұрын
Can you please make a video on pyjion with detailed information
@mobileheavyequipmentrepair2981
@mobileheavyequipmentrepair2981 2 жыл бұрын
Yes!!! Please
@avikmital5548
@avikmital5548 Жыл бұрын
I'm using a ticker symbol say stock XYZ and in order to have yfinance recognize the ticker symbol accurately, I need to write XYZ.exchangename. Now @27:14 where you do close.AAPL, I would have to type it out as close.XYZ.exchangename which gives an error because of the .exchangename. How do I get past this problem?
@quantprogram
@quantprogram Жыл бұрын
You can also use close["AAPL"] to get same results as close. AAPL. In your case it will be close["XYZ.exchange"] The other way is to rename your column which is what i would do. Having a dot in column name is not a good practice. Furthermore you should learn to use resources like google search and stack overflow. coding has lots of self learning to do . i wont be around all the time to walk you through
@prashantpatadia2586
@prashantpatadia2586 Жыл бұрын
Can we do Paper trading using Python..
@affiliatemarketing8463
@affiliatemarketing8463 Жыл бұрын
Sit it will create option chain indicater
@shivratanyadav8307
@shivratanyadav8307 6 ай бұрын
Algorithm trading in c+ plz make video
@jonching3473
@jonching3473 Жыл бұрын
Have you got any forum that you can suggest me to get help from my coding and leave some questions about my code like - "what's wrong with my code?" Thanks for your time and looking forward to your reply
@quantprogram
@quantprogram Жыл бұрын
I told you in the email mate, stackoverflow and google are you best friends. Now chatgpt as well. Its lot of self work. Nobody is ging to work you through this journey line by line. Also you have to understand how each line of codes work rather than just copy pasting. I saw in your email, you wanted to change the datetimeindex(remove time) and i warned against it and thats whats causing the errors. Stick to the foundation, dont make changes because the graphs doesnt look good. you want to change the labelling. of graphs theres other way of doing it
@jonching3473
@jonching3473 Жыл бұрын
@@quantprogram Thanks Man, I had follow your instruction in this video until 45:00. I had replace ANDE instead of AAPL (ande.ANDE.resample("M").last() ) but it gots TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'RangeIndex'. I had follow your video for the first 45 minutes (Only replace ANDE instead of AAPL). Hence, I don't change any datetimeindex(remove time). Perhaps I need to learn it on my own man.
@user-ws3pb9pk5l
@user-ws3pb9pk5l 8 ай бұрын
Hi, how would be apply monte carlo to this? do you have any videos on this
@quantprogram
@quantprogram 8 ай бұрын
I do Monte Carlo tests using 3rd party softwares like amibroker. It’s possible to do it in python but it’s coding intensive especially when we do portfolio backtest. There is a likelihood to make errors
@mahmou6
@mahmou6 7 ай бұрын
Hi, Salam, Shalom, Anyone knows why we sample data on 44:40. thanks
@smaail_aiso
@smaail_aiso 8 ай бұрын
Hey i have a question from the beginning of the video. Why do you use jupyter? Is this a system you like to use or is this mandatory?
@quantprogram
@quantprogram 8 ай бұрын
Its not mandatory. But jupyter notebooks has so many pros and convenience as compared to python ide. Easy to work with data , good with visualizations, collaborations with libraries among many other pros. You can get a giant list comparing both. You dont have to use anaconda specifically. You can also use Google colab as well. LLl the codes in the video should work in colab as well
@aaryachitnis8104
@aaryachitnis8104 Жыл бұрын
Could someone give a summary of what exactly the program is going to do?
@quantprogram
@quantprogram Жыл бұрын
It teaches you how to be an algorithmic trader. Summary is available in the description box and the introduction of the video
@im_learning_XX
@im_learning_XX 2 жыл бұрын
I can't update the Anaconda Navigator to the current version, even though, I click yes to update it everytime. Do you have any tips for that?
@quantprogram
@quantprogram 2 жыл бұрын
Thats strange. Uninstall Ananconda and download the newer version again reinstall it. Should work then
@edwardstudd4820
@edwardstudd4820 8 ай бұрын
Question ? Instead of yahoo finance - can one introduce IB Cme data ? If you can advise gratefully appreciated 👍
@quantprogram
@quantprogram 8 ай бұрын
I'm pretty sure you can but we will have to understand how the data is send. What are the names and structures of the columns? are they in pandas dataframe or should we convert?. Once we get this info then youll have to adjust the coding accordingly
@illuminati5302
@illuminati5302 Жыл бұрын
Hey, i ran into an issue @27:06 . After using copy() to copy the close price , when i try to use 'close.AAPL' as suggested in the video , i get an error which says " DataFrame doesnt have attribute AAPL" . What am i doing wrong. TIA
@quantprogram
@quantprogram Жыл бұрын
Thats super strange mate. See if you have made any spelling mistakes or missed any other codes prior. Refer to the code that can be downloadable in the description
What is Algorithmic Trading & How to Get Started
15:56
TradeOptionsWithMe
Рет қаралды 535 М.
Python Machine Learning Tutorial (Data Science)
49:43
Programming with Mosh
Рет қаралды 2,7 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
1 класс vs 11 класс (неаккуратность)
01:00
БЕРТ
Рет қаралды 2,2 МЛН
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 16 МЛН
I Built a Trading Bot with ChatGPT
18:33
Siraj Raval
Рет қаралды 1,8 МЛН
👩‍💻 Python for Beginners Tutorial
1:03:21
Kevin Stratvert
Рет қаралды 3 МЛН
Jim Simons Trading Secrets 1.1 MARKOV Process
20:13
QuantProgram
Рет қаралды 376 М.
I Tried Day Trading w/ a Trading Bot Algorithm
14:01
Daniel Inskeep
Рет қаралды 857 М.
Financial Data with Python: yfinance
34:09
Data Science for Everyone
Рет қаралды 65 М.
How Financial Firms Actually Make Money
22:40
QuantPy
Рет қаралды 325 М.
He Makes a Living Algo Trading in Forex - Scott Welsh | Trader Interview
34:28
Etienne Crete - Desire To TRADE
Рет қаралды 39 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30