Backtesting a Trading Strategy in Python With AI Generated Code

  Рет қаралды 2,383

Ryan O'Connell, CFA, FRM

Ryan O'Connell, CFA, FRM

Күн бұрын

Пікірлер: 12
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
🤖 Sign Up For Datalore: jb.gg/check-out-datalore 💾 Download Free Code & AI Prompts Automatically: jb.gg/datalore-report 🖺 Link to Full Article: jb.gg/blog-datalore
@Abhinavjain2004
@Abhinavjain2004 2 күн бұрын
Sir, I want to express my heartfelt gratitude. You are truly one of the best teachers and a guiding light for many mathematics and computer science students. Your videos are incredibly insightful and make learning so much easier. Thank you for sharing your vast knowledge with us. If possible, could you consider creating a course or youtube playlist on Python for Quantitative Finance, covering everything from beginner to advanced topics such as risk models, option pricing, and algorithmic trading? It would be extremely helpful and invaluable for students pursuing a career in quantitative finance. Thank you once again for your dedication and generosity in teaching. 🙏🙏
@SariKhayyal
@SariKhayyal Ай бұрын
Great presentation! As you noted, if you factor in the 10 US Treasury note average interest rate over the past 10 years (2.0377%) the Sharpe Ratio works out to 0.730973 for the Mean Reversion Strategy, versus 0.776654 for the DIA, and this also doesn't include transaction costs - as you also mentioned - so caveat emptor for the implementation of this strategy.
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
Thank you and very good point! A more accurate backtest would include the risk free rate. I think a good way to adjust the prompt would be to ask the AI to source data on the 10 year treasury rates over the last 10 years, average it, and then include it in the sharpe ratio calculation as you hinted at
@SlashnKashmir
@SlashnKashmir Ай бұрын
Great video. Please continue similar strategy+coding concept.
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
Thank you! This video seems to be a hit so I will definitely make more strategy and coding videos in the future
@shih-binshih9889
@shih-binshih9889 Ай бұрын
thanks for sharing, always learning a lots from your video!!!
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
Much appreciated and glad to hear that you are getting value out of it!
@pablomoure2963
@pablomoure2963 Ай бұрын
Top notch video man¡ Could you please make a video setting up this strategy (or whichever you prefer) in a demo broker account? It would be nice to understand how to connect to broker apis, so we know the whole process end to end. Cheers
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
Hey Pablo, great idea! I have thought of creating a series of videos on setting up algorithmic trading strategies in a paper trading account (fake money for practicing) so I will absolutely look into it in the future
@alwikah5664
@alwikah5664 Ай бұрын
Top video. Possible to do the same process with Forex (EURUSD or GBPUSD) ? Thanks a lot !!!
@RyanOConnellCFA
@RyanOConnellCFA Ай бұрын
I appreciate it and thank you for the video idea! I can look into this as a potential future video topic
Black-Scholes in Python: Option Pricing Made Easy
12:22
Ryan O'Connell, CFA, FRM
Рет қаралды 8 М.
Expected Shortfall & Conditional Value at Risk (CVaR) Explained
11:52
Ryan O'Connell, CFA, FRM
Рет қаралды 4,7 М.
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 96 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 31 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 11 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 43 МЛН
I Gave My Terrible Trading Bot $10,000 to Trade Stocks
16:05
Coding with Lewis
Рет қаралды 500 М.
Delta Hedging Explained: Options Trading Strategies
14:11
Ryan O'Connell, CFA, FRM
Рет қаралды 6 М.
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,3 МЛН
I Built A Crypto Trading Bot And Gave It $1000 To Trade!
10:25
Hallden
Рет қаралды 1,2 МЛН
Her Uncle Made $000's Trading This Strategy Over 30 Years!
17:56
Trading Nut
Рет қаралды 101 М.
Mean Reversion Trading Strategy for a High Win Rate (includes FREE CODE!)
22:43
The Transparent Trader
Рет қаралды 43 М.
Morgan Housel: What You Need to Master (And Avoid) to Get Rich, Stay Rich, and Build Wealth
1:34:19
Stock Valuation with Dividend Discount Model
12:36
Finansialpost
Рет қаралды 1,5 М.
Umar Ashraf revealed MILLIONAIRE'S TRADING STRATEGY @UmarAshraf28
54:42
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 96 МЛН