Math Operators

Summation (Rolling Sum) (SUM)

Summation

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

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

How Traders Use It

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.

Highlights

SUM at a Glance

Rolling sum over specified period
Default 30-period window
Foundation for Simple Moving Averages
Used for cumulative volume and totals
Essential building block for many indicators

Get Started

Automate SUM with cryptorobot.ai

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.