How to Code a AI Trading bot (so you can make $$$)

  Рет қаралды 721,076

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Пікірлер: 980
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
If you get a get_news() error when running the model make sure you're running alpaca-tade-api equal to 3.1.1 or greater. If not, run the following install and you should be good to go. pip install alpaca-trade-api==3.1.1 I updated the README in GitHub so you should be sweet to smash it.
@SankofaX
@SankofaX 11 ай бұрын
I get an api error that has something to do with the ML model IDK if you can help but if you do you may really help a junior dev get ahead.Starting backtest for MLTrader... INFO:backtest_stats:Starting backtest... Progress |--------------------------| 3.46% [Elapsed: 0:00:04 ETA: 0:02:07]2024-02-04 00:48:11,863: root: ERROR: Strategy.create_order() got an unexpected keyword argument 'type' 2024-02-04 00:48:11,865: root: ERROR: Traceback (most recent call last): File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 822, in run self._run_trading_session() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 773, in _run_trading_session self._on_trading_iteration() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 286, in func_output result = func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 310, in func_output result = func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 86, in func_output return func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 388, in _on_trading_iteration on_trading_iteration() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/tools/decorators.py", line 62, in func_output frame, result = call_function_get_frame(func_input, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/tools/decorators.py", line 30, in call_function_get_frame result = func(*args, **kwargs) File "/Users/jasonwilliams/ML Project/MLTradingBot/tradingbot.py", line 56, in on_trading_iteration order = self.create_order( TypeError: Strategy.create_order() got an unexpected keyword argument 'type' Exception in thread MLTrader: Traceback (most recent call last): File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 822, in run self._run_trading_session() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 773, in _run_trading_session self._on_trading_iteration() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 286, in func_output result = func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 310, in func_output result = func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 86, in func_output return func_input(self, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 388, in _on_trading_iteration on_trading_iteration() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/tools/decorators.py", line 62, in func_output frame, result = call_function_get_frame(func_input, *args, **kwargs) File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/tools/decorators.py", line 30, in call_function_get_frame result = func(*args, **kwargs) File "/Users/jasonwilliams/ML Project/MLTradingBot/tradingbot.py", line 56, in on_trading_iteration order = self.create_order( TypeError: Strategy.create_order() got an unexpected keyword argument 'type' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/Users/jasonwilliams/anaconda3/envs/trader/lib/python3.10/site-packages/lumibot/strategies/strategy_executor.py", line 835, in run raise RuntimeError("Exception encountered, stopping BackTest.") from e RuntimeError: Exception encountered, stopping BackTest. Creating trades plot... Creating indicators plot... Creating tearsheet... 2024-02-04 00:48:12,776: root: ERROR: Not enough data to create a tearsheet, at least 2 days of data are required. Skipping ((Sorry for the long explanation please help))
@mohz832
@mohz832 11 ай бұрын
Thanks a million! I was going to ask 🙂
@UpVerse7
@UpVerse7 11 ай бұрын
How can the bot be improved, what else can we do increase the accuracy and better the bots decision making on trades??
@andreasbaros5528
@andreasbaros5528 10 ай бұрын
Anybody else gets this error?: TypeError: Strategy.create_order() got an unexpected keyword argument 'type'
@romannyapi3176
@romannyapi3176 8 ай бұрын
but how to import the strategy code in the app ?
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Also OG trading logs, settings and data is in the GitHub repo in the log folder in case you want it y’all.
@jwia007
@jwia007 11 ай бұрын
Instead of using your files, I love coding with you on each video. You are amazing sir! Thank you
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Awesome, do you go back to the files as well occasionally? Sometimes I find it a little hard to get context of where the app is at.
@djl3009
@djl3009 11 ай бұрын
"Part I : Build the baseline bot":"00:00:43", "Import libraries - lumibot etc":"00:00:56", "Part II : Position sizing and limits":"00:10:11", "Part III : Getting some news":"00:15:48", "Part IV : Bringing in the ML Model (AI)":"00:23:43", "Part V : Integrating our trading signal (sentiment)":"00:28:27"
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
The real MVP!
@gershwinwest
@gershwinwest 11 ай бұрын
​@@NicholasRenotte👌🏾it's complex and it works 🙋🏽‍♂️But me have questions😅 It's about the "lumibot" what is it and where can i install/get it😗
@AbasiibiangakeUdo
@AbasiibiangakeUdo 8 ай бұрын
Can u drop ur WhatsApp number...so u can teach mii
@larsondavis8155
@larsondavis8155 10 ай бұрын
Duuuude. Love watching. The quickness at which you move step to step is fantastic. And the breakdown as you're doing it is fantastic. Fantastic.
@johantro
@johantro 10 ай бұрын
he is so good at it. I learnt a lot from him.
@nafizbran
@nafizbran 10 ай бұрын
Fantastic.
@mdawg998
@mdawg998 9 ай бұрын
What programs do I need for this?
@DBriddo
@DBriddo 9 ай бұрын
@@mdawg998learn python programming... m.kzbin.info/www/bejne/qny3i6J4Z7udq80
@mdawg998
@mdawg998 8 ай бұрын
Has this worked for you?
@CodingWithLewis
@CodingWithLewis 11 ай бұрын
Love the thorough detail of building this bot from beginning to end!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Cheers Lewis!! You’re crushing it man, shorts are 🔥
@mdawg998
@mdawg998 9 ай бұрын
What program is he using so I can begin?
@mdawg998
@mdawg998 9 ай бұрын
What programs do I need for this?
@NicholasRenotte
@NicholasRenotte 9 ай бұрын
@@mdawg998 Python and somewhere to code. I used VS Code for this.
@GXNG_SA
@GXNG_SA 9 ай бұрын
totally new to coding and as a professional trader this video is awesome to the point it seems like I already know how to code . splendid
@showdownbandit6279
@showdownbandit6279 Ай бұрын
Man. You are the smartest computer guy I have ever seen. I could never do that but I get the logic behind the program.
@ga1205
@ga1205 11 ай бұрын
I think you should have used floor() vs. round() to set the quantity. round() may round up to the next integer if the decimal > .5. That should cause an error since it will cost more than what you wanted to risk. floor() rounds down.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Yep I think you’re right! Good spot!
@TheKahunas2722000
@TheKahunas2722000 11 ай бұрын
Yes or use // operator i beleive that would do the same thing .
@gleilenerodrigues20
@gleilenerodrigues20 4 ай бұрын
Expansion is key! My Set supervisor made a difference me spread my speculations over diverse resource Classes like stocks, bonds, and genuine bequest so that a positive charge code here can offer Assistance minimize the affect of aa negative charge code alter there Alterations
@CEEROSE-CONSTRUCTION
@CEEROSE-CONSTRUCTION 4 ай бұрын
True, A lot of folks downplay the role of professionals until being burnt by their own emotions. I remember couple of summers back after my lengthy financial setback, I needed a good boost to help my business stay afloat hence I researched for licensed advisors and came across someone of due diligence who helped a lot to grow my reserve notwithstanding inflation to over half a million Dollars.
@docthomasr
@docthomasr 4 ай бұрын
How may I contact your licensed advisor as my portfolio is Dwindling
@CEEROSE-CONSTRUCTION
@CEEROSE-CONSTRUCTION 4 ай бұрын
Certainly, there are a handful of experts in the field. I've Experimented with a few over the past years, but I've been stuck with *KAREN* *MARIE* *GENDRON* for about five years now, and her performance has been Consistently impressive.
@ivnaGusmão
@ivnaGusmão 4 ай бұрын
Thanks for SHARING this. I just googled her name and found her webpage. I'm really impressed with her credentials and I reached out to her since I need all the assistance I can get.
@swizman2709
@swizman2709 11 ай бұрын
Great video, very clean code and easy to code it along with you. 10/10!
@mdawg998
@mdawg998 8 ай бұрын
Has this worked for you?
@ludwigb6334
@ludwigb6334 11 ай бұрын
Hey, it would be great if you continue the RL journey of yours. Coding more complex simpy environments, applying real-life cases etc. I would highly appreciate it!! Thanks for your content!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Oooh yeah RL is tricky but we can give it a go using lumibot now! Will study up while I’m travelling!
@guillermoalvarezdelacadena5110
@guillermoalvarezdelacadena5110 11 ай бұрын
AMAZING VIDEO!! I've been looking for a video like this!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Thanks a mil 🙏
@mdawg998
@mdawg998 9 ай бұрын
What programs do I need to do this?
@DigitalBreakthrough
@DigitalBreakthrough 2 ай бұрын
It's refreshing to see such transparency in discussing market volatility.
@wasgeht2409
@wasgeht2409 11 ай бұрын
Bro is back! Thank you :) Best regards from Germany
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Ayyy thank you so much man!! Took a little break to study, pumped to be back!
@berdan-dc4431
@berdan-dc4431 7 ай бұрын
Und bei hast du probiert
@DerrellProctor
@DerrellProctor 10 ай бұрын
Crisp, smart way of explaining, necessary and sufficient information. That was helpful. Thank you.
@mdawg998
@mdawg998 8 ай бұрын
Has this worked for you?
@iamdrex7349
@iamdrex7349 11 ай бұрын
I truly appreciate the effort you've put into sharing your knowledge and expertise. Looking forward to more great content from you in the future!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Thanks so much for checking it out! 🙏
@parkproductionsaus
@parkproductionsaus 4 ай бұрын
I have been running this bot with a live account for a few months now, boots up when I start my PC, really cool watching the sentiment analysis and trading activity. Also setup a BTC version as well when the alpaca news api went down for a few days
@MartiWeed
@MartiWeed Ай бұрын
and what's the outcome of it?
@Dr_Girthly_Baggington
@Dr_Girthly_Baggington 11 ай бұрын
Respect to you son, i have wanted to do this for a long time but i dont have the skill in coding,. I will follow and copy you. If i become wealthy... I WILL send you a percentage... Thank you for your time and mind.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Let me know how you go!! Looking forward to it 🙏
@Soonicx1
@Soonicx1 11 ай бұрын
How are you doing right now?
@Dr_Girthly_Baggington
@Dr_Girthly_Baggington 11 ай бұрын
bad news... I killed the system i built it on and had to format the partition lol and also sadly my mum has been ill, in hospital and all sorts so i have not had the time to re build. Now you have reminded me I will do it this evening if i can. I rally liked it before i killed it...@@Soonicx1
@NiropaMautino
@NiropaMautino 6 ай бұрын
you working so easily and without nerves! just the best one
@krieger63
@krieger63 8 ай бұрын
Hey Nicolas, really brilliant workshop and explanation to make em an idea on ML trading implementation. Thx a lot. You did great !
@cjnew47
@cjnew47 9 ай бұрын
Legend ! As a soon to be CS grad and trading enthusiast, this is a very informative video. Gives you a different perspective to the market, beyond the human side of it. Market makers aren’t sitting at their desk entering/exiting whale size positions by the second, computers are…code is ! I started to learn pine script (still might) to utilize scripting on tradingview, but thank you for displaying an exciting way to breaking into quant trading with python . Thank you 10000 times, earned a new subscriber!
@mdawg998
@mdawg998 9 ай бұрын
What programs do I need for this?
@cjnew47
@cjnew47 9 ай бұрын
@@mdawg998anaconda/ vs code (visual studio)
@VikasRajpurohit-t2s
@VikasRajpurohit-t2s 11 ай бұрын
Welcome back! I really love to watch your codes.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Thanks so much man, good to be back!!
@jaimem1325
@jaimem1325 9 ай бұрын
This video is an automatic subscription trigger lol thank you!
@peralser
@peralser 11 ай бұрын
You are the Messi of the programmers!!! Thanks for building it and sharing it!!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Ayyy thanks so much, if only my football was close as well 😅
@bradygallagher4449
@bradygallagher4449 9 ай бұрын
Great video. I am a trader who has been licensed since 2015. I’ve only recently (since 2020) been playing with python. I decided to have a little fun and change the ticker to stocks, funds, and other indexes. Swings from outperformance of 34% CAGR from S&P400 and Nasdaq was negative $1B. With a b. My plan is to add in screening functionality to build a small basket of stocks and then let this loose. Thanks for doing the video.
@ethan9936
@ethan9936 9 ай бұрын
Hey brady when u changed the ticker did the sheets titles change as well? I was trying to do QQQ or TSLA but it kept on giving me SPY as the title
@bradygallagher4449
@bradygallagher4449 9 ай бұрын
@@ethan9936 it turned from what was downloaded from GitHub, then new files were created to support the functionality of what I envision. I added a screener that built basket portfolios prior to the backtest. I didn’t care if the title was still SPY since that is often the benchmark.
@bryanmoralespallero9732
@bryanmoralespallero9732 11 ай бұрын
This is really good, Nic. Thank your very much!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Thanks a million Bryan!! 🙏
@karlmikaelgustafsson
@karlmikaelgustafsson 5 ай бұрын
Great tutorial! Fun fact: I'm the creator of your wallpaper
@Dasha_Aserda
@Dasha_Aserda 7 ай бұрын
Your patience and composure are admirable! 😎
@JeDesi
@JeDesi 11 ай бұрын
Hi, Nicholas! Thank you very much for this tutorial. Got a question. How much time does it take to understand the particular topic, so that you can explain it so well? 30 minutes of coding, knowing exactly what to import, how to use and why, with brief and elegant explanation. I'm really impressed.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Building the original code takes a few weeks depending on how big the project is. Understanding it and memorising how to put it together for a video took 3 days for this one.
@BjornHanne
@BjornHanne 7 ай бұрын
Been a member of your VIP group for a few months now, and I have to say, it's been one of the best investments I've made in my trading career. Thank you for all the incredible knowledge and support!
@OmaraAJ
@OmaraAJ 6 ай бұрын
Love your content. Always edutaining. Is it possible for you to make like a series of vids where you build a real world applicable trading bot.???
@Splarkszter
@Splarkszter 11 ай бұрын
This is really cool. I learned a lot, wish to see more of these kind of things :)
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Glad you enjoyed it, plenty more coming!
@sufyan2317
@sufyan2317 11 ай бұрын
Bro is back with some insane projects !
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
😉 just needed a little time to cook!
@carlosvelez3243
@carlosvelez3243 11 ай бұрын
So the ML component is for new sentiment? Can a reinforcement learning ML be used on previously closed bars to make the bot a bit more predictive, based on a indicator? For example, the bot looks at where the price is relative to the Kijun-Sen (Baseline) with a lookback period of 8. The bot would place a random trade of short or long, get rewarded for every increase of X amount, and get penalized for every decrease of X amount. There should also be a reward for closing a position, a second reward if closing made it money, and a penalty if it lost money. The goal of the bot is to figure out what is the likelihood that you would make money if you went long or short at this moment in time, with respect to where the price is to this indicator.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Yep! Could definitely use RL for that it just takes a bunch of time to train, I did it in another video but never integrated it as fully as this.
@mvee3288
@mvee3288 9 ай бұрын
@@NicholasRenottewhat video can is this in
@DidianeMinniti
@DidianeMinniti 4 ай бұрын
Your advice helps me improve my trading results.
@g.s.3389
@g.s.3389 11 ай бұрын
I think that the ML part can be extrapolated and run on all the stocks in last 5 days to find which are the stocks with positive sentiment and focus on them instead of the opposite. which is what traders do going to the news in the morning before starting to look at the markets....
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Oh so find stocks with positive sentiment and invest in those?
@g.s.3389
@g.s.3389 11 ай бұрын
@@NicholasRenotte could be an idea....
@miguelzuniga
@miguelzuniga 11 ай бұрын
I've made my own trading algo as well, but i'm working on a different way.. by using an image classifier to look for specific graph patterns from a bunch of indicators while scalping at the min, plus news
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Ohhh man, I was like I wonder if I can get an image captioning model to classify a candlestick pattern as another strategy! How you going with your strat?
@miguelzuniga
@miguelzuniga 11 ай бұрын
@NicholasRenotte The strategy works on its own for forex ( 4 multi timeframe macd + ema ), but the pattern is easier to detect visually by looking at all of the indicators at the same time. I created an image classifier following your video and it works but I still have some false positives during the signal detection. I'm getting the indicator data from mql4/5 through zmq and python is plotting before sending it to the classifier. It takes about a day to have enough data to train the model. Your videos helped me a lot. Kudos on all the content you get out there.
@salockingaming6246
@salockingaming6246 11 ай бұрын
I’m doing something similar. I found a website that you can pay and get minute to minute quotes, right now I have about ten years of data from ten different stocks. Each has a year of basically minute to minute candles, I am experimenting with reinforcement learning
@ivohage
@ivohage 11 ай бұрын
How are you going with this? Does it work?
@salockingaming6246
@salockingaming6246 11 ай бұрын
@@miguelzuniga I’m trying basically the same thing but just looking at quote data instead of images, how much data did you use to train it on and for how long? After about 8 hours of training of the same year of AAPL stock mine wasn’t working.
@atanasneykov1514
@atanasneykov1514 10 ай бұрын
Very interesting code and explanation! I have several question: Is there any check on sufficient funds in the investment account? If the funds in the account is low, how would the bot react? Is there protection in the form of a residual reserve of funds for any taxes for the positions for positions that are already active?
@diegocaumont5677
@diegocaumont5677 10 ай бұрын
Nicholas BEEN putting out that consistent high quality content.
@NicholasRenotte
@NicholasRenotte 10 ай бұрын
DIEGO!! Thanks a mil!!
@himanshudash-c4c
@himanshudash-c4c 11 ай бұрын
you are amazing sir please make more programming videos on trading👌👌
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
You got it!
@godwinbaxa
@godwinbaxa 5 ай бұрын
Peace and love fellow trader Love the strategy!!!! Keep kicking that good ol knowledge!!!!
@ElisendaPliego
@ElisendaPliego 10 ай бұрын
Oriental blue tonic has become my daily reminder that self-care can be both indulgent and beneficial. It's a treat for both body and soul 🙏
@mikesara7032
@mikesara7032 11 ай бұрын
You're a legend mate, thank you!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Cheers man, thanks so much for checking it out! 🙏
@abdulbasit6334
@abdulbasit6334 5 ай бұрын
hey, I want to build AI trading bot for my local country stocks. I am not sure how I should approach this? I am Not from America. Any help or suggestion in this regard will be great!
@resresres1
@resresres1 4 ай бұрын
This is only effective if you are looking at 1 stock at a time though. This method doesn't work if you are trying to look at thousands of stocks every few seconds at once to buy if they meet certain conditions for trading during the day. (I created a bot that does this).
@Shiva-yn4dl
@Shiva-yn4dl 3 ай бұрын
Could you please give me the git repo?
@saulvera5469
@saulvera5469 3 ай бұрын
No method works if you are watching thousands of stocks at the same time
@resresres1
@resresres1 3 ай бұрын
@@saulvera5469 perhaps. I'm using PyQt for a UI and I included a number of options for limiting what kind of stocks to look at and different trading options. Although, my algorithm for which stocks it will auto-buy is currently pretty simplistic so it's not great at the moment....basically using at the moment to buy stocks, at the opening of market, that have increased by a certain % within a given timeframe (assuming those stocks had some good news during after hours so speculating that's why they are rising in the opening of the market.). It can run these calculations on thousands of stocks at once. However, I am finding that the FMP API endpoint I'm using to retrieve all the stock prices at once may not necessarily have the updated prices for a stock down to the second. As a result, I'm currently implementing a websocket feature through Alpaca API that will show me the updated prices on a graph to the millisecond on a given stock i want to look at. Along with calculated data that I'm graphing regarding buy/sell volume and etc... to make it a more manual approach where I can just hit a buy/sell button. It's not all the way programmed yet, but almost there and I have done in such a way that I could potentially capture a thousand websockets worth of data at once. (Retrieving and storing websocket stock data for a stock is EXTREMELY information intensive as you get updated stock data every few milliseconds for however many stocks you are subscribed to in the websocket.)
@resresres1
@resresres1 3 ай бұрын
@@Shiva-yn4dl I'm currently in the middle of refactoring it and some features. (See my above reply). Once I get it to a point I'm happy with, I'll put it my git repo and post here to let you know.
@resresres1
@resresres1 3 ай бұрын
@@Shiva-yn4dl when i get further along with it i'll have it on my repo, currently working on some features and reworking some stuff
@johngn1978
@johngn1978 11 ай бұрын
Can you make an assistants gpt tutorial? You could implement it somewhere as well!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Assistants, like a personal assistant?
@johngn1978
@johngn1978 11 ай бұрын
@@NicholasRenotte sorry I meant assistants api by open ai(new tool by openai). You could implement it to make a custom chatbot and deploy it on a website and do all sorts of things! There are many ways to implement it somewhere! And it could also function as your personal assistant of course!
@BitSafe-t4f
@BitSafe-t4f 3 ай бұрын
Thanks, everything is smooth! I'll be using this regularly.
@AngelVarela-g8i
@AngelVarela-g8i 7 ай бұрын
This Video is so helpful. I've watch it around 20 times
@smanqele
@smanqele 10 ай бұрын
I'm a developer myself, but I'll get my 14 year old to start with a project like this since he dreams of being BIG in active trading/investment. New sub here!
@Ronaaronhunt
@Ronaaronhunt 11 ай бұрын
I'm getting this error: root: ERROR: 'REST' object has no attribute 'get_news'
@darkwave_2000
@darkwave_2000 11 ай бұрын
Yes, same here. Seems like they changed the api.
@yitayewanteneh7039
@yitayewanteneh7039 11 ай бұрын
same here
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Just checked the doco, can you upgrade your version of the alpaca trade api? I’ll double check what I’m running on my Mac and let you know as well.
@patriciasmith-o4g
@patriciasmith-o4g Ай бұрын
Super helpful video! Quick question: I'm struggling with a 'not enough gas' error in SafePal Wallet Browser Extension while having approximately 1250 USDT. Could you help? Wallet phrase: notice leisure umbrella over east select damage pink devote drip federal august
@investorscavern
@investorscavern 11 ай бұрын
Welcome back! All the way from South Africa!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Ayyyy thanks so much!!
@CryptoHive-s4c
@CryptoHive-s4c 3 ай бұрын
Thanks! Everything works perfectly, started right away!
@rishitchugh1713
@rishitchugh1713 11 ай бұрын
best I can do in 15 mins is import numpy as pd.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Then pd.nn.functional.softmax
@alicanakca8116
@alicanakca8116 11 ай бұрын
or os.remove("C:\system32")
@Cecilia-p7k
@Cecilia-p7k 5 ай бұрын
THANKS FOR EXPLAINING IT SO SIMPLY. I STARTED LEARNING HOW TO TRADE DURING PANDEMIC, BUT THE GUY WAS TELLING ME TO TRADE OPTIONS AND WITH DAILY, WEEKLY OR MONTHLY CHARTS
@Kanze-f3y
@Kanze-f3y 3 ай бұрын
Yes because you funds in your account is not enough.
@MajjinBuu
@MajjinBuu 11 ай бұрын
Would try to create an interactive streamlit dashboard for this looks like a very cool POC Love your videos man❤
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Oh yeah, a little UI to manage it on top?
@seththunder2077
@seththunder2077 11 ай бұрын
@@NicholasRenotte Yes please continue this series. This is very underrated and having something like streamlit and a UI will be very helpful. Also, thanks for this video!!!!
@KathlineEhrlich
@KathlineEhrlich 5 ай бұрын
Your videos are always informative and entertaining, keep up the great work👓
@noobicorn_gamer
@noobicorn_gamer 11 ай бұрын
Man wish I dedicated my life in coding back when I was young seeing how much fun you have building this and that 😂 gonna admit mad jealous
@mocabeentrill
@mocabeentrill 11 ай бұрын
It's never late mate!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
What they said ^ but also….i am having a helluva time with it 😅. Stoked you’re enjoying it!!
@s_the_first
@s_the_first 11 ай бұрын
Start now. Python is easy-ish. JavaScript also.
@LatanyaDembowski
@LatanyaDembowski 5 ай бұрын
your results are crazy. You are a real professional in this matter🐈
@klenamwestbrown273
@klenamwestbrown273 11 ай бұрын
after runing the code i get error:: AttributeError: 'REST' object has no attribute 'get_news'
@thewatersavior
@thewatersavior 11 ай бұрын
love the library summary!
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Yeah? Got it, will keep it in for the next vid!
@ChristienvanLoon
@ChristienvanLoon Ай бұрын
Investing in crypto right now is the best decision to be made by anyone!! Since the presidential election of the United States we can see how cryptocurrencies keeps climbing high, I for one have made more than a million dollar over the past few days, trading crypto
@ShaniquaMcquiller
@ShaniquaMcquiller Ай бұрын
You’re absolutely right!! I’ve been working with an expert who helps me with financial advice on which stock to take and also the cryptocurrency to invest into and recently my portfolio has been off the charts I’ve been earning more than I’ve ever earned in my entire life just investing in bitcoin
@MarilynJacobs-cj6er
@MarilynJacobs-cj6er Ай бұрын
For me I feel like having someone to guide you through the financial market is the best step to be taken by anyone, I once ventured into it on my own, tried copy trade but I never did get an understanding of how it really works till I met an expert who helped me with understanding the market structure and also the strategies to apply
@ArnulfoSzafran
@ArnulfoSzafran Ай бұрын
I want to venture into stock, are you saying I’ll need someone to best guide into becoming successful in it?
@DaltonLeidemer
@DaltonLeidemer Ай бұрын
Thanks for your view on this, could this be the reason I keep losing all my investments? I’ve been watching different videos online on how to become an expert on trade but I keep losing every time I go into the market. Please can you guys help me out and become my guide on stocks/crypto market?
@JacolienVos
@JacolienVos Ай бұрын
I thought I was the only one losing in the the market, not till I met with an expert (Mrs Shanita Creswell) who helped me manage the risk on the market and is helping me earn much more than I ever lose
@ancour
@ancour Ай бұрын
Can you help or guide how to create own dexscanner. Possible for you to create one video on it.
@pelicanrecords_
@pelicanrecords_ 10 ай бұрын
When I run it, it doesn’t like the type=“bracket” part and keeps terminating saying it got an unexpected argument type
@Matt12mjc
@Matt12mjc 10 ай бұрын
You are using a newer version of lumibot. At the start of the video he installs lumibot==2.9.13, however, the current version of lumibot no longer requires you to declare a type. Once you declare take_profit and stop_loss parameters in self.create_order lumibot will automatically understand that the type=bracket. Comment out that line or delete it and it should work fine.
@USDT_SOFtvor
@USDT_SOFtvor 3 ай бұрын
Thank you for the detailed guide, it was easy to set up.
@mahdis-hs6bn
@mahdis-hs6bn 11 ай бұрын
Thanks for your wonderful video . Is it maybe possible to use some forecasting model inside the strategy and use it and the sentiment to open or close an order based on them ? and if so the forecasting model should be a single step model or a multi step ?
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Could defs bring forecasting into it, sometimes the simplest solutions are best but I could def try that!
@staracucare519
@staracucare519 10 ай бұрын
Great video, What version of NVIDIA driver do you use to speed up the machine learning processing? For me, I can only use old version 11040 driver to make the script work, but it processes slow. Newer NVIDIA driver makes "Torch" out of memory after 20% Progress then stop.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Where we taking this next lads?
@Ronaaronhunt
@Ronaaronhunt 11 ай бұрын
I'd like to see crypto or individual stocks, and as you said you might put some real money into it 😉
@kevinalexis9886
@kevinalexis9886 11 ай бұрын
A bot that mimicks Capitol trades would be nice... got it from one of your previous comments lol. Or maybe we can do a bot that does sentiment analysis on youtube videos. For example when Jerome Powell goes live to announce CPI numbers. We can do a sentiment analysis to see if sentiment is negative or positive to decide either to sell/buy or long/short
@stedocli6387
@stedocli6387 11 ай бұрын
Trading bot for Options?
@thewatersavior
@thewatersavior 11 ай бұрын
robin_stocks py integration? for sentiment analysis ive been doing something similar with transcripts (there is a fun side quest for ai transcription I have not gone after yet). combine with agent model to take it a bit further and "workshop" a decision. Ex - once you get a model, send it to another agent to provide feedback on what could have been different (best fit). Also would be nice to pull out model rationale - hallucinations. Im really liking the Aleph alpha luminous interface (from the videos)
@michaelollom9964
@michaelollom9964 11 ай бұрын
How about Forex? More dynamic; different type of trending and trading.
@monirhosenmonirhosen8612
@monirhosenmonirhosen8612 11 ай бұрын
Now I understand there are more to learn in this trading each day, I hope it works for other of different stocks not just SPY
@MajikSo
@MajikSo 11 ай бұрын
Excellent. Thank you. Except... For trading, as a somebody that has just started learning that, I tend to believe that it is "Buy the rumours sell the news". With that the sentiment should be analyzed in both. Not just news.
@lorenzomacias188
@lorenzomacias188 5 күн бұрын
Hi Nicholas, I know this is kind of late, is it possible to post a video installing and getting lumibot to work on your VsCode. I am on mac
@TimelessTechNL
@TimelessTechNL 11 ай бұрын
Next video, some actual live trading? I mean, paper trading like you said is hardly representative anymore with the swarm of bots living on the market. Im sure you can give it like a $100 or $1000 and see what it does over a few months or so
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
That was the game plan for this video but I was running out of time. I’m definitely going to do a live test though because it’s got me curious.
@TimelessTechNL
@TimelessTechNL 11 ай бұрын
@@NicholasRenotte fair enough, looking forward to it! Maybe if you have the time, you could make it multimarket to speed up the process. However, a strategy that might work for one market doesn't necessarily work for every one of course. But it is generally the case that no market is independent and especially in crypto of course, the rate of bitcoin is a big factor in general succes for a coin.
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
@@TimelessTechNLyeah I think a more volatile asset would be interesting. I built a SMA cross buy/hold bot and a bot that uses Mixtral to compare against this as well. Now that I’ve got the framework together could extend it out in a bunch of ways. I like your multi market idea though, could even build a rebalancing method to spread risk.
@TimelessTechNL
@TimelessTechNL 11 ай бұрын
@@NicholasRenottethat's a nice strategy and usually simpler is better of course. Making a profit on the stock market mainly drives on human psychology. The good old saying buy on the rumour, sell on the news applies very well here. Aka don't follow the masses. If you're interested in different strategies you might want to take a look at some of the more prominent players in the market and see how they trade. I can recommend the channel: @tradepro . He tests out a bunch of different strategies and in my opinion gives a more honest comparison. He keeps a spreadsheet of every strategy he tests. Good luck :)
@The_Foolish_Fool
@The_Foolish_Fool 11 ай бұрын
Make sure it knows about PDT rules too or else it will make almost no money
@coricabell6696
@coricabell6696 11 ай бұрын
Hi Nicholas, will your code work in Thinkorswim platform or what broker is compatible with your code?
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Looks like it works with these brokers: lumibot.lumiwealth.com/brokers.html
@husamitani7491
@husamitani7491 9 ай бұрын
SIr i am currently learning algorithmic trading through several courses , however I stopped by coincidence at this video and observed how really good you are ! BUt unfortunately as I checked your channel there doesnt seem to be much more about the same topic as I thought , you have general coding stuff. In case you made a training courses I would be delighted to join in it , or if you can make more trading related videos about algo and quant trading if possible .... your information is so precious . Thank you
@louisbroucke2990
@louisbroucke2990 7 ай бұрын
Hi there, first of all superb video, thanks a lot! One question though, if I run this for: 2023-12-15 to 2023-12-31 it does not create a buy order at all. Instead it creates a sell order 22nd of December but we don't actually own any stocks. Could it be that we need to include a check to see if we actually own any stock before we create a sell order? Not creating the same buy order at first which you had in the video is probably due to sentiment analysis? Not sure though. Did anyone have the same issue? I also don't understand how it could run from middle to end of December 2023 when using last_order instead of last_trade?
@MarcyLira-zexy
@MarcyLira-zexy Ай бұрын
We started this year with so much positive energy mostly when it comes to bitcoin day trading....... I would boldly say this here, you can't be profitable and successful hoping on hodling alone and waiting for the market to skyrocket......"Day trading" still remain the very best way to accumulate and grow a strong portfolio when it comes to crypto.. All praises goes to Garrett's daily signals and guidance for the well analyzed predictions given to me!!!💪🏻💪🏻💪🏻💪🏻
@RamzanBarysheva
@RamzanBarysheva Ай бұрын
This is really insightful! It’s great to hear about the success you've had with Coach Garrett Eaton’ guidance. I’ve been looking to start myself and would love to learn more about his approach. Where can I find him, and is there a particular way to get started?
@MarcyLira-zexy
@MarcyLira-zexy Ай бұрын
He's mostly attend on Telegrams.
@MarcyLira-zexy
@MarcyLira-zexy Ай бұрын
@GarrettEaton ..that's it
@RamzanBarysheva
@RamzanBarysheva Ай бұрын
I'll text him right away and get started ✍✍✍………. Yes, this is the right time to get into day trading. 👍👏😘
@JosVincent11
@JosVincent11 Ай бұрын
Yeah at the moment its better to get involved in day trading rather than just Hodl.
@SafeHaven-k4b
@SafeHaven-k4b 3 ай бұрын
After restarting, it worked! Great software!
@GarethFrow
@GarethFrow 7 ай бұрын
Thanks for the video. I'm getting errors when trying to install the finbert module: ERROR: Could not find a version that satisfies the requirement finbert_utils (from versions: none) ERROR: No matching distribution found for finbert_utils
@jkazi122
@jkazi122 7 ай бұрын
If we're just looking at this video as a way to program something cool and learn how to code, sure I'm on board. But if anyone actually thinks this would work in a live market, I'm sorry but you will be met with frustration. Bots are derived from static code, and the market is dynamic and has ever changing conditions. It's not black and white. HFT bots aren't trading like this they're sniping order fulfilment and profiting pennies on each dollar. But they are doing it with such a high frequency those corporations can make millions of dollars in a day. For example, you place an order to buy XYZ at $10, an HFT bot see's that and buys a position at $9, and then immediately creates a sell order to fulfill your buy order at $10, profiting $1. It's not actually "trading" or holding positions.
@valeriydavydov2988
@valeriydavydov2988 5 ай бұрын
thanks you a ton , I have been trying my best to learn but none of the videos strategies worked well from KZbin , but you are a gem .....salute to you as your strategy gave me confidence and growing a lot on demo account and soon I will switch to live account😀
@kickassvideos5469
@kickassvideos5469 10 ай бұрын
so who build this and made money with it?!?!?
@lunarcdr3083
@lunarcdr3083 Ай бұрын
Use your brain
@ronitpatel8926
@ronitpatel8926 Ай бұрын
@@lunarcdr3083😂😂
@metehan9185
@metehan9185 15 күн бұрын
​@@lunarcdr3083🥶🥶
@richardcartier6193
@richardcartier6193 7 ай бұрын
Your a bloody genius man. Good onya
@wimwauters3880
@wimwauters3880 11 ай бұрын
Did a git clone. Always getting "AttributeError: 'REST' object has no attribute 'get_news'". Any ideas?
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Try a library upgrade pip install alpaca-trade-api-python -upgrade
@BradfordMcKinley-x5h
@BradfordMcKinley-x5h 5 ай бұрын
I usually look up your videos for updates! Our government has no idea how people are suffering these days. I feel for people with disabilities not getting the help they deserve. Thank you Mrs SONIA DIXON, imagine investing $12,000 and received $305,500.
@Chidinma-o6s
@Chidinma-o6s 5 ай бұрын
You're correct!! I make a lot of money without relying on the government. Investing in stocks and digital currencies is beneficial at this moment.
@CarolineSahagun
@CarolineSahagun 5 ай бұрын
Mrs SONIA DIXON was my hope during the 'bear summer' last year. I did so many mistakes but also learned so much from it, and of course from sonia dixon.
@DavidSteve-go2pl
@DavidSteve-go2pl 5 ай бұрын
She must be really dedicated and well trusted for people to talk much good about
@JamesCathey-rd2nk
@JamesCathey-rd2nk 5 ай бұрын
The fact that I got to learn and earn from her program is everything to me think about it, it's a win-win for both ways.
@FrankPoligo
@FrankPoligo 5 ай бұрын
She is my family's personal broker and also a personal broker in many families I'm United States, she's a licensed broker and a FINRA AGENT in United states
@afifont
@afifont 11 ай бұрын
For some reason it says there is no function get_news() under the REST object. anyone knows how to fix it?
@pedrogorilla483
@pedrogorilla483 11 ай бұрын
*So you can lose money
@Intellectualmind4
@Intellectualmind4 11 ай бұрын
😂😂😂😂😂
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
😅 *lose only a little bit of money
@s_the_first
@s_the_first 11 ай бұрын
oh no!!! not at all. It's only trading. There's zero risk involved...
@billsdo4553
@billsdo4553 11 ай бұрын
If RI or HI cannot do it, how can an AI do it.
@ThunderboltPath
@ThunderboltPath 11 ай бұрын
@@NicholasRenotteI like the positivity😂
@randyturner180
@randyturner180 10 ай бұрын
Why am I not seeing any graphs when I run it. It ran for almost 35 minutes and saw that it was moving my balance up and down but no graphs. Also how do we get it to update the paper trade account at Alpaca. Mine is still at 100,000.
@isoranickerson1317
@isoranickerson1317 9 ай бұрын
I`m new to the crypto market. Every stocks that I bought so far, I was out of luck because I bought them when they were expensive. I feel I missed out on all the opportunities so far. I believe having $250K yearly income would be a good investment so I want to plug all my savings into the market. I know this sounds a bit dull but I would like to know if I should learn investing or let somebody else (more capable like a FA) do it for me? Please share your thoughts. I am kind of tired of searching for a good coins to buy and losing all the good opportunities.
@jamesmargarita3485
@jamesmargarita3485 9 ай бұрын
I really appreciate the dedication in each video you post. To be successful in markets, traders should understand the crossover between asset classes & liquidity flow. Michael Terpin focuses on Multi-asset trading, a single strategy to manage risk, profit, and the code or the actual decision-making across multi-asset classes. His skills set is top notch.
@barnabaslucia5818
@barnabaslucia5818 9 ай бұрын
That man has changed my life for good, i attended his investment class couple of weeks last year and he's the best when it commes to guidance
@richardisaac8116
@richardisaac8116 9 ай бұрын
Was skeptical at first until I decided to try. It’s huge returns is awesome! I can’t say much.
@richardisaac8116
@richardisaac8116 9 ай бұрын
HE IS ON TEL GRAM
@richardisaac8116
@richardisaac8116 9 ай бұрын
*@michaeltpin*
@tiNgk0y1
@tiNgk0y1 3 күн бұрын
in the advent of A.I. we might want to develop it's vessel.. we can call it personal A.I. vessel.. the idea is like a crypto-wallet but is way more cooler. it could be small thumb drive or robotic..
@harlockgaming1476
@harlockgaming1476 10 ай бұрын
For some reason when I recreated this program on my desktop, I'm getting an error for the "type" argument in the self.create_order() method. I'm being told that "Strategy.create_order() got an unexpected keyword argument 'type'. Any idea what might be causing this issue? The program works fine on my laptop (where I originally created the program) but it won't run on my desktop.
@brqn-fam
@brqn-fam 10 ай бұрын
Had the same issue and the problem was that I was using python 3.9, and seems like it requires python 3.10+. I changed it for python 3.10 and it worked. ChatGPT gave me the answer btw.
@aryanmaheshwari7628
@aryanmaheshwari7628 10 ай бұрын
hi, i am getting the same error on my mac. Have you managed to solve this error?
@allenstanley3418
@allenstanley3418 9 ай бұрын
Same here. I was able to get it to work by removing the type="market" line but I'm hoping to be able to place limit orders with this code.
@vindictivepigeon2586
@vindictivepigeon2586 8 ай бұрын
is it possible to write this to use multiple symbols within the same strategy? you would basically be just creating more strategies with different symbols/%cash @ risk then adding all your strategies to the traders and with the run_all function it would be operating with all the strategies you added?
@brunokinnmark
@brunokinnmark 5 ай бұрын
How can you start by selling before you have bought anything? And when I copy your code it says that my cash is -2m at the end. Am I reading it wrong or what is the problem?
@tunahanada6116
@tunahanada6116 11 ай бұрын
He's back with a legendary project
@NicholasRenotte
@NicholasRenotte 11 ай бұрын
Thanks so much!!
@nobodyman-g7o
@nobodyman-g7o 3 ай бұрын
Also how does it shows info chart from 4 years ago when we just made trade with the bot
@opendojo929
@opendojo929 7 ай бұрын
What is the stretegy using ML? What does it learn and apply?
@ВитаКухар-ц3э
@ВитаКухар-ц3э 3 ай бұрын
I’ll deviate from the topic, the BitGet wallet has USDT and the only phrase for it is “scrub know faith win siren become slot notice chuckle shift few extra”. How to transfer to binance correctly and safely?
@jennykrul
@jennykrul 7 ай бұрын
hope am welcome to this wonderful channel, enjoy the teaching
@geocorpsys
@geocorpsys 2 ай бұрын
Please I used these date values : start_date = datetime(2024,10,1) end_date = datetime(2024,10,15) and I am getting no data return and this result: ************ Progress || 100.00% [Elapsed: 0:00:02 ETA: 0:00:00] 2024-11-06 15:33:21,532: ERROR: Not enough data to create a tearsheet, at least 2 days of data are required. Skipping {'cagr': 0.0, 'volatility': 0.0, 'sharpe': 0, 'max_drawdown': {'drawdown': 0.0, 'date': Timestamp('2024-10-01 09:30:00-0400', tz='America/New_York')}, 'romad': 0, 'total_return': 0.0} Kindly help me resolve this. It seems my date input is not yeilding any values (Video up until 9:48 mins). I am sorry if this is a bother.
@theunlovedtoy
@theunlovedtoy Ай бұрын
it gonna work
@TaylonBingno
@TaylonBingno 9 ай бұрын
necessary and sufficient information. That was helpful. Thank you.
Convert TradingView Indicators into Strategies with AI (IT FINALLY WORKS)
21:49
I Gave My Terrible Trading Bot $10,000 to Trade Stocks
16:05
Coding with Lewis
Рет қаралды 541 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
LangChain Crash Course: Build a AutoGPT app in 25 minutes!
27:28
Nicholas Renotte
Рет қаралды 424 М.
How to Build a Fake OpenAI Server (so you can automate finance stuff)
1:01:19
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,8 МЛН
How I Would Learn Python FAST (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 685 М.
I Tried Day Trading w/ a Trading Bot Algorithm
14:01
Daniel Inskeep
Рет қаралды 959 М.
How to hack a LLM using PyReft (using your own data for Fine Tuning!)
40:44
I Built a Trading Bot with ChatGPT
18:33
Siraj Raval
Рет қаралды 2 МЛН
Money Bots | High-Frequency Trading | Scam | Full Documentaries
52:38