I know this topic is old, but it seems worth mentionning...

The zorro examples in this thread all run the prices through a roofing filter AND THEN through an automatic gain control (AGC) before calculating the correlation coefficients.

Ehlers code on the other hand, doesn't use an AGC at that point.

Besides wouldn't the AGC mess up some of the correlations in the data?