Forum

Nested For Loop and an Array of sums of another array

I am trying to create an array which has as values the rolling sum of another array. In this case, I am trying to create a new array (CumulativeArray) where each value is a rolling sum of 20 values of Array. Below, I have a snippet of code that I am hoping says the following

Explanation of the steps to calculate QQE Fast/Slow lines

I am currently using the attached QQE indicator, successfully. I have just gotten to a point where I want to understand the steps involved in it's calculation. I have a reasonable grasp of how to code an indicator, but this one seems a bit more complex than what I am use to. In particular, this