In this paper, we generalize the Markowitz measure of the risk proposed in a stationary setting. We provide an evolutionary Markowitz-type measure of the risk with a memory term and show that this function is effective, namely an existence theorem for the general financial problem can be proved.