I am developing an indicator and this indicator returns values as the chart progresses. I would like to calculate a running total of these values for later use.
The basic question is, would I use an array for such a task? If so, can you point me to the most clear explanation of how to accomplish this with an array?
Here would be an example
Date; Value; Running Total (RT)
May 1; 5; 5;
May 2; 3; 8;
May 3; 9; 17;
May 4; 7; 24;
May 5; 10; 34;
(forgive the poor table, I can't figure out a way to create one here)
I would like the RT to be what is automatically calculated (and ultimately an oscillator type line created from that RT).
Thank you for your help
Comment