Тёмный

How to Build a Python Momentum Algorithm Trading Bot w/ Lumibot & Alpaca 

Matt Macarty
Подписаться 28 тыс.
Просмотров 12 тыс.
50% 1

​ @MattMacarty
#algotrading #python #tradingbots
How to Code a Trading Bot in Python
Building a LIVE Stock Trading Bot with Python, Lumibot and Alpaca: A Step by Step Guide
✅ Please SUBSCRIBE:
www.youtube.co...
✅ Get the code: github.com/mjm...
✅ Learn the basics here: • Building a LIVE Algori...
✅ Lumibot Documentation: lumibot.lumiwe...
✅ Alpaca Markets: alpaca.markets
✅ Visit alphabench.com for more Excel, Python and MySQL tutorials
✅ Interested in backtesting in general? • How to Backtest Tradin...
**This video is for educational purposes only. It should not be construed as investment advice.**
Take your trading to the next level with a bot. In this tutorial, we'll show you step by step how to implement a trading bot on Alpaca.markets using the Lumibot Python library. From connecting to your Alpaca account to backtesting and deploying your strategy, we'll cover everything you need to know to get started. Learn about the features and capabilities of Lumibot and how it can help you automate your trades and increase your profits. Whether you're a seasoned developer or new to bot trading, this video is perfect for anyone looking to get started with automated/algorithmic trading.

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@user-jk7uk5rw2b
@user-jk7uk5rw2b Год назад
I just recently discovered your channel and i must say you are a great teacher. You explain things well, and make me feel motivated to make my own projects; Please make more videos!
@MattMacarty
@MattMacarty Год назад
Thank you. Glad it's helping
@Entheogeneticz
@Entheogeneticz Год назад
Fascinating topic ! I wanna learn and impliment this !
@MattMacarty
@MattMacarty Год назад
You can try it as is with a paper account on Alpaca.markets
@sreekanthvarmayadavalli4193
Thanks share your knowledge . Please one by one Set playlist to easy identifying . Teach me more even begginger to understand each market in series wise.
@MattMacarty
@MattMacarty Год назад
Hi, yes there is a playlist with all my algo trading videos
@systemadminn
@systemadminn 8 месяцев назад
Your videos on Lumibot and Alpaca have been awesome as an entry point for someone with a passing interest in this area. I've been following along and playing around with my own environment. Do you think you might be able to do a video dedicated to back testing with lumibot*? What's possible, what's not, what limitations it has? That would be amazing. You mentioned in this video that you couldn't back test this strategy due to something with the last price function, and maybe I'm missing something obvious, but I thought the last price function executed as if it was the day/point in time the backtest date was at. So, I'm not sure I understand why that isn't possible. If I had to guess, my assumption would be that maybe the yahoo data is only on a daily grain, thus running more than once a day wouldn't yield different high low close open? (Because it's still just the one row for the day) *EDIT: "With lumibot"
@systemadminn
@systemadminn 8 месяцев назад
PS: liked and subscribed. 🙂
@MattMacarty
@MattMacarty 8 месяцев назад
Thanks. Have you seen my video on Quantstats? That will probably get you started. Lumibot actually uses Quantstats for backtesting, plus their homegrown "equity line". For finer grain testing you are going to have to get data from a different API, and the easiest thing to do is save it into a pandas DataFrame and then switch the backtest module in lumibot from Yahoo to pandas, then just give it a path to the data. Let me see if I can put a demo together and post. They aren't sponsoring me anymore so not sure of the timeline.
@jjones503
@jjones503 8 месяцев назад
Thank you for the video. Do you happen to know why, when trying "get_historical_prices" or the deprecated but still existing "get_bars", it says that Yahoo does not have any data for any timestamp? Even the default value "minute" gives an error saying yahoo doesn't have any data for "minute". I am trying to backtest. Thanks
@MattMacarty
@MattMacarty 8 месяцев назад
That is a lumibot warning. I would check with them directly.
@SnowyCocoon
@SnowyCocoon Год назад
Great video! Are you planning to make more of those?
@MattMacarty
@MattMacarty Год назад
Yes. I will post more soon
@possessedbear651
@possessedbear651 4 месяца назад
i get an error now saying endpoint in my config file is deprecated and should be replaced with "PAPER"... however... then it wont run the program
@MattMacarty
@MattMacarty 4 месяца назад
It looks like the lumibot package has been updated since making the video. Check their documentation
@IICuervosMalditos
@IICuervosMalditos Год назад
Hi Matt, I have an algorithm to trade BTC but I need to not be charged fees for entering and exiting the market. the algorithm performs the scalping. What do you recommend me? some platform. or where I can run it. I also need it to have no spread.
@MattMacarty
@MattMacarty Год назад
You can do this with an Alpaca paper trading account
@esthercodes8400
@esthercodes8400 11 месяцев назад
Hi Matt, thank you for this. I checked out your code but can't run the paper trading option due to ERROR:alpaca.trading.stream:error during websocket communication: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129) Have you been able to run it recently? Solutions on the Internet have not resolved this problem and I'm on Windows
@MattMacarty
@MattMacarty 11 месяцев назад
That error indicates a problem with your API KEy and or your SECRET KEY. Alpaca tends to regenerate them especially if you refresh the Alpaca dashboard screen.
@keitasamba3259
@keitasamba3259 7 месяцев назад
@@MattMacarty I have the same error. Last code work without error, this one have an issue
@hamzasaleemi7390
@hamzasaleemi7390 21 день назад
On Mac, the problem is resolved by clicking on the "Install Certificates.command" file located in the Python directory of the Applications folder. To run the command, open a new Finder window. Click on "Applications". Then click on the directory where Python is installed. For example, "Python 3.7". Finally, kick on the "Install Certificates.command file. All of this can be accomplished by executing the following command in the Terminal application: open "/Applications/Python 3.7/Install Certificates.command" NOTE: You need to be logged into the account that downloaded and installed Python 3.7.
Далее
Они захватят этот мир🗿
00:48
Просмотров 312 тыс.
How Financial Firms Actually Make Money
22:40
Просмотров 349 тыс.
Automated Options Trading Bot in Python
42:55
Просмотров 32 тыс.
I Gave My Terrible Trading Bot $10,000 to Trade Stocks
16:05