Backtesting Stock Trading Strategies in Python
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Related videos
Professional Python Testing with Mocks
NeuralNine
88.8k views
Simple Bluetooth Chat in Python
NeuralNine
53.9k views
Professional Expense Tracker in Python
NeuralNine
48.4k views
Scheduling Tasks Professionally in Python
NeuralNine
107.2k views
Working with YAML Files in Python
NeuralNine
57.1k views
Rotating Proxies For Web Requests in Python
NeuralNine
102.8k views
Coding Web Crawler in Python with Scrapy
NeuralNine
138.9k views
Secure Login System in Python
NeuralNine
125.3k views
Coding Encrypted Chat in Python
NeuralNine
57.5k views
File Transfer via Sockets in Python
NeuralNine
72.7k views
Top Comments (10)
I feel like he is making money from both applying this to his portfolio and YouTube, great videos keep it up
Awesome, been looking for something like this in python for a while. Thanks!🎉
Great Video! Can you simultaneously do a backtesting on all 4 symbols like for example EURUSD and SPUSD so if I buy on SP500 on 2011-01-07 and sell on 2011-01- 10 then in the next buy this program will recheck the opportunity in EURUSD and SPUSD and automatically matches the buying signal and then buy that stock after 2011-01-10 in this way we can have a full return on investment based on different stocks 😀
since i dev trading software, thx for this easy and good tool !
Wow thanks!
Great video very insightful!
Thanks for this content. Very nice. I'm not sure to understand, you say "the triangle pointing down is a buy", but if I deactivate the part of the strategy doing "sells" (meaning, I only should have buy trades) I have only triangles pointing up.. Are you sure about the orientation of the triangles ?? What did I miss
Hey super helpful vid, about the commissions part you set 0.002 per trade but aren’t most brokers today commision free? Do you have to pay for each trade?
Great content, thanks for your work! I am struggling with the size of the position for the backtesting. I am trying to risk 1% of the available cash per position so I enter the sl and size = 0.01. However, the risk is completely off and it only risk 0.014% And in your code, you don't enter any size, do you know how much is risked per trade? Would you maybe have a solution please? Thanks for your help!
Great intro to backtesting with Python! Backtesting has really helped me refine my strategies — I usually run my initial setups on FastBull to check for consistency across different market phases. Pairing code with a structured simulation platform makes the process even more insightful. Looking forward to more tutorials like this!
Unlock the Data Inside
Turn Videos into Knowledge
- Get FREE 10/day: transcripts, summaries, chats
- Chat with videos, export text & PDF
- $1 free API credit for RAG, chatbots & research
Free forever plan • All features unlocked
Top Comments (10)
I feel like he is making money from both applying this to his portfolio and YouTube, great videos keep it up
Awesome, been looking for something like this in python for a while. Thanks!🎉
Great Video! Can you simultaneously do a backtesting on all 4 symbols like for example EURUSD and SPUSD so if I buy on SP500 on 2011-01-07 and sell on 2011-01- 10 then in the next buy this program will recheck the opportunity in EURUSD and SPUSD and automatically matches the buying signal and then buy that stock after 2011-01-10 in this way we can have a full return on investment based on different stocks 😀
since i dev trading software, thx for this easy and good tool !
Wow thanks!
Great video very insightful!
Thanks for this content. Very nice. I'm not sure to understand, you say "the triangle pointing down is a buy", but if I deactivate the part of the strategy doing "sells" (meaning, I only should have buy trades) I have only triangles pointing up.. Are you sure about the orientation of the triangles ?? What did I miss
Hey super helpful vid, about the commissions part you set 0.002 per trade but aren’t most brokers today commision free? Do you have to pay for each trade?
Great content, thanks for your work! I am struggling with the size of the position for the backtesting. I am trying to risk 1% of the available cash per position so I enter the sl and size = 0.01. However, the risk is completely off and it only risk 0.014% And in your code, you don't enter any size, do you know how much is risked per trade? Would you maybe have a solution please? Thanks for your help!
Great intro to backtesting with Python! Backtesting has really helped me refine my strategies — I usually run my initial setups on FastBull to check for consistency across different market phases. Pairing code with a structured simulation platform makes the process even more insightful. Looking forward to more tutorials like this!