Guest User | Sign In

Knowledge Base

Accumulation Function - ACC()

This Accumulation function ACC() can be used to sum values over a specified period. It can also be used to count the number of times a true/false boolean signal has occurred. For example, to calculate the cumulative volume over the last 10 days nest the VOL() function within the ACC(). Click on the ACC() script text to set the lookback type and amount - in this case 10 bars.

ACC(VOL(), RANGE=Look Back Period, BARS=10)

In the following example, variable H1 calculates new highest highs over the last 52 weeks, which is then nested in the ACC() function to count the number of new highs over the last 6 months:

ACC(H1, RANGE=Look Back Period, BACKTYPE=Months, BARS=6)

Here's the formula added to a Show View and a Watchlist column, showing that WWE has had 55 new highs over the last months.

Please Wait!

Please wait... it will take a second!