Build a Python Trading Bot for Algorithmic Trading Using AI | Full Tutorial

preview_player
Показать описание
Learn how to build a Python trading bot for real-time algorithmic trading in this complete step-by-step tutorial. You'll connect to live market data, implement an AI-powered trading strategy, and automate trades using Interactive Brokers. Whether you're interested in day trading bots, algo trading with Python, or just want to explore automated trading strategies, this tutorial covers it all. Perfect for beginners and aspiring quant traders looking to break into algorithmic trading using Python. By the end, you'll have a fully functional Python trading bot making real-time paper trades!

🧠 *Sign up for Datalore:*
Use promo code Analyze_Like_Ryan for 50% off Datalore Cloud (monthly or yearly)

📓 *Copy the Datalore Notebook Template:*

✅ *Final Code Notebook:*

📈 *Sign up for an Interactive Brokers Account:* (click “Open Account”)

💾 *Download TWS & TWS API:*

Chapters:
0:00 – Intro to Building an AI Paper Trading Bot
1:00 – Sign up for Development Environment: Datalore
1:30 – Create a Copy of the Code Notebook
2:00 – Sign Up for an Interactive Broker’s Account
3:10 – Download Trader Workstation (TWS) & TWS API
4:48 – Configure TWS for API Access
7:42 – Set Up SSH Tunnel Between Datalore & TWS
8:33 – Import Python Libraries: nest_asyncio & ib_insync
9:32 – Connect Datalore to TWS
10:40 – Print Server Time to Test Connection
11:14 – Enter a Test Buy Order
12:51 - Enter a Test Sell Order
13:42 – Retrieve Free Historical Stock Prices From IBKR
14:51 – Create a Simple Moving Average Graph
17:44 – Implement the Simple Moving Average Strategy
18:46 – Run the Simple Moving Average Strategy
20:55 – Use Live Stock Data to Make Real-Time Trades
21:49 – Using a More Powerful Machine to Run a Real-Time Strategy
22:35 – Use Code Promo Code for 50% Off
23:12 – Switching the Machine & Restarting the Kernal
24:43 – Connecting to Live Data Source Polygon
25:42 – Explain Our Real-time Simple Moving Average Strategy
27:52 – Visualize Our Real-time Simple Moving Average Strategy
28:35 – Run Code to Start the Trading System
28:58 – Explaining Code to Monitor the Trade Signals
31:35 – Start Real-time Trading Signal Visualization
32:56 – Enable Trading For Algorithmic Bot
33:40 – Run the Live Algorithmic Trading Bot!
35:14 – Analyzing the Results of the Algorithm
36:38 – Next Steps For Algo Trading In My Paper Trading Account

*Disclosure: This is not financial advice and should not be taken as such. The information contained in this video is an opinion. Some of the information could be wrong. This channel is owned and operated by Portfolio Constructs LLC. Some of the links above are affiliate links, meaning, at no additional cost to you, I will earn a commission if you click through and make a purchase.
Рекомендации по теме
Комментарии
Автор

🧠 *Sign up for Datalore:*
Use promo code Analyze_Like_Ryan for 50% off Datalore Cloud (monthly or yearly)

📓 *Copy the Datalore Notebook Template:*

✅ *Final Code Notebook:*

📈 *Sign up for an Interactive Brokers Account:* (click “Open Account”)

💾 *Download TWS & TWS API:*

RyanOConnellCFA
Автор

well explained, great video, Ryan, thx and keep it up

startrekkerll
Автор

For this advance maths or programming required

harshitjain
Автор

Hey Ryan, amazing video! Would you recommend implementing these strategies in faster executing languages like C++ or is Python sufficient enough?

composingpizza