Optuma Forums › Optuma Scripting › Sum of an Indicator › Reply To: Sum of an Indicator
March 22, 2022 at 7:06 am
#67741
- Topics: 5
- Replies: 608
- Posts: 613
Hi,
We can use the ACC() function to sum up values across a selected number of bars.
https://help.optuma.com/kb/faq.php?id=1026
Here’s an example using a Breadth Code, summing the values of the last 5 bars…
1 2 3 4 |
V1 = GETDATA(CODE=ADVNASDAQ:BM) ; ACC(V1, RANGE=Look Back Period, BARS=5) |