Great work sharing your process! How do you decide when to stick with a simple for loop versus optimizing with Pandas or other libraries?
When a For Loop Powers Your Stock Backtester - Devlog
Suleyman Sade
posted
Originally published at python.plainenglish.io
3 min read
0 Comments
Suleyman Sade
•
I would normally rather using the optimized Pandas approach almost always, but as I mentioned in the post I stick with a for loop partially because it is easier to read. But the other underlying reason is because I couldn't exactly figure out how I would record day to day price changes with the pre-recording approach. I didn't spend too much time into this since the regular for loop approach worked fast enough.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From Suleyman Sade
Related Jobs
- Remote Payroll Associate — Stock Grants & GrowthDeel · Full time · Turkey, NC
- Urologist -- 4.5 Day Schedule | Shared Call | Build Your PracticeSampson Regional Medical - Provider Services · Full time · Clinton, NC
- Language Data Annotator ( Spanish)Innova software Services Inc · Full time · Canada
Commenters (This Week)
Karol Modelskiverified
2 comments
john-nichev
1 comment
Knihal
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!