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?

#86774
Bel

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.