marcelo you normalise equities values by ''(value-mean)/std deviation'' it seems to me it's not realistic since all equities do not follow a normal distribution.
how can you justify such a behavior ??
nevertheless the technical code are very well done, congratulations.