Index | Recent Threads | Who's Online | Search

New Thread
This topic has been viewed 58 times and has 2 replies
Otomii
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.

Apr 3, 2019 11:10:56 PM       
wwasilev
Re: How To write "How much '+' in past N days"

This should work;
SetVar(@UpCount,LoopSum("Close(CTR)>Close(CTR+1)",5))


Walter

Apr 3, 2019 11:18:09 PM       
Otomii
Re: How To write "How much '+' in past N days"

THX very much

Apr 3, 2019 11:40:43 PM