Thanks for the Bars.BarsSinceSession tip. I actually figured out that my indicator was not working correctly due to another problem which I've fixed, but its good to know the limitations of SUM and that solutions are available. As for SUM, I mistakenly assumed that there needed to be a minimum of n bars before SUM would work, but that's not correct as the method accounts for n-1, n-2, ... bars as well. Regards
Cheers.
Comment