Algorithmic Trading Strategy in Python
HTML-код
- Опубликовано: 3 июл 2021
- In this video we learn how to implement an algorithmic trading strategy 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 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/ - Наука
Dude, you are in beast mode... Awesome videos. Much love, thanks for making your videos
Nice bro! Will try this algo, thank you. Keep them comming
Great video man, today, i can finally say, that i got real knowledge
Perfect video. I like this very much. Thank man.
This was awesome. Thank you.
Great tutorial man, thanks!
What PyCharm theme is it you're using?
it would be awesome if you could put the algorithm in real use, using a sandbox may be, to see how much would you make in a month or so. but, what I'm gonna do is, I will use this algorithm and try to adjust the parameters for different stocks. it would be really good for swing trading. thanks a lot for your time, great video!
Amazing Video, Gratitude! Gratitude!
Nicely explained!
Thanks bro..... helped a lot....
Good day to you You make it look so easy!. Would be nice to have a no code option like PlutoHQ Trading or Three Commas or FXTrader but do they work?
Is there anyway using Pandas Datareader to get different time frames of data. For example, right now using the Yahoo source, we are getting daily adjusted closes, but I'd like to make an SMA algorithm using 4 hour adjusted closes instead.
Thanks
Please, how could we include ADX for confirmation? With different values for ADX, +DI, -DI? This would improve a lot the results, believe me. Gratitude Master.
Have you ever considered a video about linking a trading bot with a brokerage account? Or a video about how to trade using the Schwab API for traders? thank you.
Great tutorial! I have one question though, when I generate the plot, all of the dates on the x axis are very congested. I tried to maximise the window like you did but it stated the same. Any help would be greatly appreciated. Thanks!
I figured it out. Pycharm was generating the plot in the scientific window as a png rather than as a figure in its own window
Nice python work but the prices you are getting are daily closes, wouldn't you be better off using yfinance so that you can specify the chart time frame?
Hallo Florian, welche Python-Programmier-Plattform nutzt Du für Dein Coding?
Ich bin Python-Anfänher.
Danke für Deine Unterstützung & Frohe Weihnachten!
Beste Grüße
Frank
I would combine this algorithm with a DCA one so for example if it says buy we have two cases:
1. Sell when reaching buy level + 100 pips
2. Buy more using a step let's say 100 pips each step. After multiple buy trades if we have a profit of 100 points with our DCA we'll sell all trades
Do the same for a first sell trade but reversed
Also you will not have access to yahoo finance anymore. I offer free downloads of csv on my website for forex.
How to setup this program to give the next future signal? , i believe re-running the program will change the past buy/sell signal based on incremental data and we lost track of previous buy/sell points, please advice
hi! how are you? can I ask which software you used for making the code, Im using vscode and I tried used the same code it showed me a lot of errors.. I just start started learning programming recently and id like to know more and be better coder.
does the data reader already have access to the yahoo api? i try to Run the same as you did in the video but no data prints. im new to coding but any help is much appreciated
Thank you so much for this video!!
Is it possible to build a trading bot with okex platform ?
Nice video, thanks, how can i contact you ? and one more question what the icon for which is black with fan symbol in the bottom tab. hope to hear from you soon.
Depends on for what you want to contact me. For business inquiries use the mail. For anything else social media or discord. But I don't do troubleshooting
@@NeuralNine well, it could turn out to be a good business for us both.
Please make a detaile video on ccxt python
Good coding section. A better way to test an algo on stocks, it is better to test it on down-trends. Because many theories can make you earn on an uptrend. If the algo profits on downtrend than it can be said that it is working. And unfortunately sma, ema , bollinger bands or rsi, they can give an idea about trades. There are many things to consider, but I think correct elliot wave count is the best way to predict the future. And here important word is 'correct'.
But elliott is sometimes gets so much complex and i dont think it is easy to make a bot out of elliott
Thxs
Wow!
Great video, can you make a video on how to code to trade with real money in a broker's platform. Else please share some insights about it and can I use the knowledge of this video
Did you mean connecting with api?
the fact that my brain has still not developed but he is developing my brain
Please show how to handle live stream data.
Thank you! Great tutorial. What about implementing a percentage gain and including it in the if statement? Wont that guarantee gains?
panda Datareader has probs with connection at the time.
pandas_datareader._utils.RemoteDataError: Unable to read URL
I ran into the same problem with this and another tutorial. Seems like the yahoo finance service is down at the moment....
@@user-kq5cd7bd3o You can use instead:
import pandas
from pandas_datareader import data as pdr
import yfinance as yfin
yfin.pdr_override()
then
df = pdr.get_data_yahoo("TSLA", start="yyyy-mm-dd", end="yyyy-mm-dd")
print(df)
@@rtr195807 Thank you!
@@rtr195807 Thank you
what program are you using
or software
this video is very good but Invert the buy and sell it would perform better
This strategy is only good to learn how to code; not for actually trading
Can someone give me the code ?
Just use Google lens
Your content is top quality, but fintech is kinda a waste of talent, just my opinion, good work
Code code plzz
watch my Q&A episode 1
@@NeuralNine I'm getting errors need to compare it to mine
This guy has got the skills, he should learn how to code
Yeah totally
And you should learn how to set profile photo on RUclips
@@destiny_02 that joke went above your head, didn't it?
this video doesn't make sense where are the predictions?????????
No predictions, it provides an indication of when might be good to buy and when might be good to sell
@@robinweaver4690 i know that, but it oldy provides old indications
I'm new to this and I keep getting this:🤣🤣
KeyError: 'Adj CLose'