How To write "How much '+' in past N days"

Sorry for poor english.

I want to know how to write “How much ‘+’ in past N days of a stock”

Such as
+0.45%
+0.25%
-0.38%
+0.15%
+0.07%

4 ‘+’ in the past 5 days.

This should work;

SetVar(@UpCount,LoopSum("Close(CTR)>Close(CTR+1)",5))

Walter

THX very much