I also have some trouble to understand the logic behind this indicator. Unfortunatelly i don't programm in MQL4, maybe someone can help to understand this indicator. I mean, those lines are pretty straigh forward: CurrUp=Close[i] - ...
Here you go...