Like the video? Support my content by checking out Interactive Brokers using the link below: www.interactivebrokers.com/mkt/?src=ptlPY1&url=%2Fen%2Findex.php%3Ff%3D1338 Buy Me a Drink: www.buymeacoffee.com/parttimelarry
Truly unbelievable times we are living in... Being able to have access to this kind of content for free is just crazy. Greetings from France my friend !
I think that's the thing... he does all this smart stuff so he never has to work a full time week. He probably still does more than 40 hours a week *shrugs*
Your knowledge of coding with a logical approach to building concepts from the ground up is excellent and deeply appreciated. One of the best lessons on the subject of coding a bot I have seen, and I have viewed over 30 so far. Well done and thank you!
Great step by step guide! Started on my own bot last weekend, but didn't make a lot of progress until I found this video. Going to watch all your vids now!
@@parttimelarry just watching your video now. It will be apreciated if you can make a trading bot that can work with robinhood or nasdq. Ps to fix your lighting, use a light to the left and right of your computer each with its own dimmer switch, that way you can regulate the light on your left and right.
Thanks for the lighting tip. I definitely want to up my production quality. I have a light that isn't dimmable. Do you have any specific recommendations on Amazon?
@@parttimelarry @Part Time Larry something like this, cheap and very effective www.amazon.com/TOPGREENER-Table-Top-Dimmer-Incandescent-Halogen/dp/B07DL2HV9F just play around using different light bulbs in you desk lamps, like 60 watt,100 watt, bright white or natural light(slight yellow). ideally you want to use a blackout curtain for your window so you can better control your lighting and that light through your window does not affect your lighting
I'm so lucky to find this type of in-depth content. I just started creating my first bot and this is really well laid out! I'm subscribing to your quality content.
Thanks for the entire series, I learned a lot! A week ago, I had almost no knowledge of python, and now I'm looking for and backtesting strategies and can apply it with a bot. Thanks for going into all the different libraries! You make a great teacher. If I make a succesful trade with it, I'm definitely buying you a coffee :D
I’m also getting into it and I think it will be beneficial to share results and modifications . Should we get together somewhere else (discord , slack..)?
Even 5 years ago, teaching urself to code was way less accessible/interactive/more lonely endeavour than today - where you have seriously smart, capable people explaining things which you would've had to work out on your own literally a few years ago! Truly incredible hehe
One suggestion. Once you buy in you shouldn't be looking for overbought to make the sale, instead you can set a profit target of let's say 2%. Once you hit that target you can sell it. This could significantly increase the chances of closing your positions with a profit. Great tutorial, btw. Thanks a lot for the video! I managed to run the bot smoothly. I Had some trouble with ta-lib because of missing c++ packages but found the answers in their git repo.
After using 3 commas myself for two months and evaluating its pros and cons, I finally develop a trading bot myself. Your video really help me a lot and now my trading bot is working very well.
Thanks for recommending Pring's book, Larry. I've been looking a while for a more theoretical foundation to get started with more advanced TA in my scripts, and I'm glad I finally found something worth studying. I've bought a copy and am currently well into part I of the book, it's a really well written book that every aspiring technical analyst (algorithmic or not) should look into. A thousand thanks!!
In case you're a noob like me and you got confused, Larry accident didn't include adding "in_position" as a global variable in the video. Regardless, great video Larry! You're a gem mate.
Youre a genius programmer, the only problem is the strategy as you know, cou cant just operate with one simgle indicator like that, you have to impose a bunch of conditions else, but keep up your work, I´m learning a lot with your tutorials, I wish I could get my strategy into that kind of code. I hope you can develop the strategy and use at least: 2 EMAS of 10 and 50 periods; One ADX with a key level support; one MACD monitor, and a volume profile(look into trading view) greetins from Argentina.
Thank you for the great content! While the strategy itself is too simple to be applied in real life is good to see how to build all the process. One thing I consider very important will be if you can show how to program a trailing stop loss based on conditions like the last two green lowest candles (for long positions) and the last highest red candles (for short positions) trailing. Thanks again! You are amazing! ❤️
Very nice tutorial! It would be interesting if you can make a video how to trade binance futures through the API ( how to adjust leverage, keep track of your positions, etc)
First off let me start by saying that your videos are amazing. I love playing with the code alongside your videos. Is there any way of creating a trading app that works with the Coinbase API? For some reason none of the Binance sites allow me to open an account because I live in Florida. I don't know why . Coinbase on the other hand seems to be much more user friendly. I think many people with the same issue would find this sort of bot much more useful, thank you again for your channel. its amazing and keep up the great work.
Hi Larry, Thank you for your great works! Can you provide a code to provide resilience and stability to the code? A couple items that come to my mind: 1- Bot staying live while there could be issues (such as Binance server issues, Binance Server slow, Binance server log out, Binance Server down, internet cut off and resumption, etc) 2- Bot staying live under other unfavorable conditions 3- Limit Orders that would get filled, sizing and strategy, trailing stop loss and take profits, and re-entry to close a position that it was not filled completely so that we are not stuck with an ever losing remnant of an incomplete order 4- Stoploss and Trailing Stop Loss and Take Profits that are placed simultaneously in one order without risking potential unwanted leftover orders 5- Hand Over - When bot has issues and informs the Owner to take over the trade manually 6- Handling errors and warnings without killing the bot 7- Safe landing: when the Bot encounters conditions that is not safe to continue, or receives an order from owner to close the sessions, stop new orders and close remaining orders in a as less risky and with as lowest loss as possible 8- Safety and Security - Malicious injection of codes in third-party Python Libraries - How to prevent our codes from being changes? How to inspect and approve a stable library and do not change it? How to isolate it from updates, etc.? 9- Other Safety and Security safeguards when accessing Binance with Python and third-party libraries. You can also send me emails directly.
I was planning on starting a pet project to make a binance crypto trading bot implementing a trading strategy I have been manually using for a while now and this video was extremely helpful to getting it started. Thank you kind sir! Greetings from Greece !
brilliant. Very well explained. watched it a few times and all great, followed the tutorial and all works and i understand why! the crypto/python tutorial i have been looking for! I have coded back end websites for 25 years, but am new to python. i under the logic and OOP fine, but next i want to understand the structure/file organisation better... i like things to be neat and easy to follow. Thanks again! i will now look through your other videos
Part Time Larry, thank you for the inspiring video. As a full time Futures trader, I would like to make a few suggestions. 1) Try your bot with DOW (YM) eMini contracts. The DOW moves in a mostly predictable pattern, and the moves are usually in the hundreds of points (more money to be made). 2) Use the Commodity Channel Index (CCI) Indicator. Like RSI, the CCI will show Overbought and Oversold conditions, but the CCI is not limited to a numerical level. In other words, the RSI might swing between +100 and -100, but the CCI can swing to +/-400 or more. 3) Use a 15 minute chart / candles. 4) For Overbought, the bot needs to look for the CCI signal to cross above 220. The bot should NOT do anything as the CCI goes above the 220 level. When the CCI indicator turns and begins a downward swing, the bot should execute a SELL Market order at +220. The bot should hold that contract until the DOW drops 200 points, or the DOW touches the Oversold level of -220. If you want to add a STOP LOSS order, you can set 100 points above the entry SELL Market Order. 5) Likewise for Oversold, the bot will look for the CCI to cross below -220. As the CCI indicator turns and crosses back over the -220 level on the way up, the bot executes a BUY Market order. The bot holds the contract position until the DOW goes up 200 points, or the CCI reaches the Overbought 220 point. Again, a STOP Loss can be applied to the Short. You will find the bot only executes one or two trades per day, because on a 15 minute chart the CCI indicator rarely reaches +/-220. But you will also find that the DOW predictably swings between Overbought and Oversold on a daily basis. The key to this trading strategy is you are only executing Buy and Sell orders when the market reaches it's most extreme levels from high to low (or vice versa). In short, the best time to Buy is when the market is as Oversold as it can be. And the best time to Sell (Short) is when the market is as Overbought as it can be. Remember, 15 minute chart. I will be bookmarking this video to check back later, so if you give this a try please pass along the results. Thanks.
@@OhSoSumptuous I only started using this trading strategy this month. Trading one eMini DOW contract each time, I was up $7200.00 on June 9. The down side to this method is I rarely use stops. I got caught holding a Long on Thursday, June 9 when the freaking institutional traders did some inside bullshit and shorted the market a day before the CPI report that was supposed to be released on Friday, June 10. I have been holding my Long contract since that time (watching the DOW drop 3000 points 🤮) . I should have set a Stop about 200 points under my Long, but I am hard headed about things sometimes. If I was using a bot, I would definitely program in stops. Just speculating, I think if I had been using stops since June 1, I would probably have a 70%+ win rate. Without using stops, I was hitting 100% win rate up to June 9. But keep in mind I do not mind holding a contract for as long as it takes for the market to correct. If anyone holds a contract until the market corrects, they will always have a 100% win rate.
@@darthbrandon2149 very much appreciate the in depth reply. I'm working on coding a bot and was very interested in your strategy. Are you using leverage?
@@OhSoSumptuous Yes, brokers will give you huge leverage for Futures trading. But that is a problem too, because they do not mess around about Margin Call. They will liquidate a Contract in a second if your account cannot cover the position. I keep at least 50% more money in my trading accounts to cover DOW contract(s).
@@darthbrandon2149 Got ya. That worries me a little without having stops in place. But i understand your logic. What goes down, must go up? Lol. Really appreciate the insight man!
I almost never comment, but wow. You are an amazing teacher! Thank you so much. I've learned so much by you going into depth when you explain why we are doing each step.
TA-Lib was really tough to install on PyCharm in windows, but I finally got the bot running and I'm excited to get into back testing! Thanks PT Larry, you sleeper programmer you!
And one more point for the video, in_position should be added to global. I could not make the buy until I add it. (Finally I found you add it in the source code. ) Again. Thank you so much! You are such a nice guy!
Guy, you are not from this planet! Watching your videos one after the other one - can’t get enough. If you get the chance for a trading bot with bollinger bands related to kraken would appreciate that bro! however, love you bro ;)
to be very simple... you only need to change on_message function with a more complex use of ta_lib indicators , that you actually use while making your own orders .. code them there ... and ready to go... of course i'm putting other stuff like... if you reboot the bot he doenst know if you have open orders ... but... you made a fantastic job by showing the basics to everyone and for free.
Thank you so much for how indepth you go! I am just starting out and most resources assume that I know a fair amount about what I'm doing so I greatly appreciate this. The more depth the better!
Great video, thanks for sharing! I'm interested in crypto and learning to code and this feels like the perfect entry point for me! Appreciate the way you clearly explain all the trading theory and coding concepts. Very cool, I've liked & subscribed :)
Easily the best video and channel on the topic that you'll find online. Extended reference to research material, APIs, documentation libraries and the whole process. Plus good explanation of the thought process behind coding
I have programmed in 10 languages from basic scripting to C++ but hadn't gotten into python. Looks easy enough. I've been getting into investing and just learning. My first thought was the strategy blows, but keeping that part simple is the right idea. I really liked what you did here. Mine will obviously be much more complex but it was great to just see a basic example. Also your deriving RSI was fascinating, but I was happy to see it wasn't needed. Thanks.
Never visited this channel before but before clicking on the video I though "software meets trading" and that's exactly what the presenter said on the introduction 😂
awesome vid - thanks for pulling this together - I'm learning a lot!!! At 14:57 in the video you add the currency code "ethusdt" to the stream. You typed it in by hand, so it's hard to see where you found the currency codes from. If I wanted to use a different currency code, where do I find the list?
Great video!! But i have one question. If you would run this bot forever, the array would have billions of values right? Will this bot crash at some time or how do you manage the infinite numbers?
Good point, you are right that it probably isn't a good idea to just run this forever as is. It would be better to reset or pop some values out of the array periodically instead of appending to it forever :)
party time larry! Brah.....fu..ing love Jah hair....though I've never partied with you.....you're ahead of your time.....I am elder by age n experience but not by knowledge in your area of devotion...... Saweet🔯....to find your channel...many blessings on your journey🙌🏽🙏🏽
Thank you very much for making these videos, they have been extremely helpful, you are a good teacher. They have served as a great introduction to programming for me so thank you.
Without a doubt 💯 this man his made a a wonderful combination between business and technical by using RSI formula and using python language to explain in a direct way the Binance API as much as possible. Wish you all the best.
Excellent video Larry...I was looking for something like this for quite some time...your explanation makes it sound much easier than it really is...thnx for the tremendous effort!!