The ulcer formula is on
https://en.wikipedia.org/wiki/Ulcer_indexFor strategy performance you calculate ulcer with no prices or drawdown, but equity retracements from prior equity peaks. Zorro also deviates from the formula by using the percentage of the total maximum, not the prior maximum. At least thats how I understand the manual.