Hey Andrew,
Thank you very much for the response! I did end up computing the error in the way you described, breaking it down step by step.
Your reversal count also works really well. I just have one question - I tried to replace the $period with a daily periodic condition I already made that starts at 6AM, but then the formula does not run and says it is unbound. Is there a reason why trying to replace $period in the formula with an already made periodic condition breaks it?
Edit: In addition, would that formula not also count anytime the signal still goes up? Say it goes from 5 -> 10 -> 15 -> 10. in that sequence, there is only 1 reversal, but I think the formula above would count a total of 3.
Thank you,
Norman