Positive and Negative Periods

The number of either positive or negative monthly returns is calculated by the below: