Forums › ProRealTime English forum › ProBuilder support › code a moving average applied to any other indicator? › Reply To: code a moving average applied to any other indicator?
12/11/2018 at 10:31 AM
#86774
Hello friends. I’m trying to code a simple indi to do this:
- If the day closes up, movement = 1, otherwise movement = -1.
- Sum movement over the last 20 days.
- UDIDSRI is the % rank of today’s sum, compared to the last 50 days of sums.
Not sure how to make the comparison, any help would be appreciated. Thank you.
1 2 3 4 |
A=close>open B=close<open C=summation[20](A+B) D=summation[50](A+B) |