Create a Live Trend Following Algorithmic Trading Bot for Gold
Вставка
- Опубліковано 19 кві 2023
- @MattMacarty
#algotrading #python #tradingbots
How to Code a Trading Bot in Python
Building a Gold Trend Trading Bot with Python, Lumibot and Alpaca: A Step by Step Guide
✅ Please SUBSCRIBE:
ua-cam.com/users/subscription_...
✅ Get the code: github.com/mjmacarty/algorith...
✅ Learn the basics here: • Building a LIVE Algori...
✅ Lumibot Documentation: lumibot.lumiwealth.com
✅ Alpaca Markets: alpaca.markets
✅ Visit alphabench.com for more Excel, Python and MySQL tutorials
✅ Learn how to use Quantstats as a stand-alone backtester • How to Backtest Tradin...
**This video is for educational purposes only. It should not be construed as investment advice.**
Gold is one of the most popular assets in the financial world, with a rich history of serving as a store of value and a hedge against inflation. However, trading gold can be complex and time-consuming, requiring constant monitoring of market trends and analysis of data.
This example Gold Trend Following Trading Bot is based on the principles of trend following, a popular trading strategy used by professional traders worldwide. Trend following aims to identify and profit from trends in the market by following the direction of the price movement. This video shows you how to implement a moving average cross-over indicator to either buy or short the GLD ETF.
Thank you for these videos.
Glad it helped
Thank you
Glad it helped
Thank you so much! Amazing content. For the next video, would it be possible to take into account slippage and commissions when backtesting the strategy?
Glad it helped. Commissions, etc. can be accounted for as when setting up your backtest. See an example here: lumibot.lumiwealth.com/getting_started.html#adding-trading-fees
Thank you very much with this tutorial. Would you also do a video on cryptocurrency trading as well?
I don't have anything in the works, but this sort of script can be repurposed for crypto by changing the symbol(s).
Did you take the course that lumiwealth offers? I'm having trouble finding complete or up to date documentation anywhere. I figure the only way to access it is to pay for the self guided course. Wanting documentation on using other brokers and also implementing live cryoto kline data. Things of that nature.
I didn't take the course. The documentation is pretty good here: lumibot.lumiwealth.com/index.html. lumibot doesn't work with all brokers. It works with Interactive Brokers, and anything built on top of Alpaca. You might try contacting them to see the timeline for other broker support.
Great video! Can you tell me how to stop the bot/ the run_all function for the Trader? I know there is a function called stop_all, but once I started run_all, it runs forever
You can just stop in the IDE or close the program
I do not have a knowledge in trading bots but would like to have my own and stop paying for other people monthly fees.
OK, lots of ways to do this, but I can only suggest lots of education before jumping in.