--- I encourage all of you to see A few simple rows – Restated for the most up-to-date work --- Today, I show you a simple illustration of how the investment strategy works. For brevity, I choose to focus on only five of the most popular OMX 30 constituents. Doing so, I overcome some of the problems associated with irregular pricing dates and missing values and my code will hopefully also become easier to follow. First, we need data and I use yfinance to download historical prices and volumes. Second, I take out the adjusted close prices and volumes from the total data frame. These will be used for calculating stock returns and the two asset factors of past trading volume and market beta . Before we continue any further, it now makes sense to show you some of the math behind the strategy that is largely based on the parametric portfolio policy . If you want to even more about this topic, I recommend you take a look at my master's thesis in finance (a...