V. 22:3 (24-38): Sidebar: MetaStock Code For TPR Explorations by Giorgos Siligardos, Ph.D.
METASTOCK CODE FOR TPR EXPLORATIONS
Use the code below as a filter to identify TFs that last up to 60 trading days and produce retracements of no more than 50%. In column A, write exactly the same
code, but in the last line substitute “TPR>0” with
“TPR.” You may also name column A as “TPR.” The
code works with daily charts and requires the zz(20%)
to have produced at least four swings in chart history
to function properly.