Under the Hood
SUM calculates the rolling sum of values over a specified period (default 30). For each bar, it adds up the values of the previous n bars. SUM is the mathematical operation underlying many indicators - for example, Simple Moving Average is just SUM divided by the period. SUM is particularly useful for accumulating values like volume or price changes.
In Practice
Traders use SUM for calculating cumulative totals like total volume traded over a period, cumulative price changes, or accumulated indicator values. Essential for volume analysis, calculating moving totals, and building custom indicators requiring summation. SUM is foundational for many technical calculations including moving averages.
Build automated strategies using Summation (Rolling Sum) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.