Random Trading Strategy VS Buy & Hold Strategy Using Python

randerson112358
4 min readSep 11, 2024

Which is the better strategy randomly buying and selling or simply holding onto an asset for the long term?

Disclaimer: The material in this article is purely educational and should not be taken as professional investment advice. Invest & budget at your own discretion. Affiliate links are in this article (by clicking on these links you help me out with no additional cost to yourself). Please enjoy the article!

In this article, I will attempt to create a program using the python programming language that will show which investment strategy is more profitable, a random trading strategy or simply holding onto an asset for the long term.

So, basically, I want to see which strategy would give better returns. Also, I want to know if these two strategies are better than having the money in cash (this is easy enough as long as one of the strategies don’t give a negative return, then the answer is yes).

Video

If you prefer not to read this article and would like a video representation of it, you can check out the YouTube Video. It goes through everything in this article with a little more detail and will help make it easy for you to start programming the code even if you don’t have the programming language Python installed on your computer. Or you…

--

--