Sum
Indicator
Sum adds the last 14 closes and plots that total in its own panel. Before 14 closes exist it adds what it has. On the next bar the oldest close drops out.
P. J. Kaufman, Trading Systems and Methods (2013), chapter 2, the sum of a series. Reviewed by the ChartLabs team, updated Nov 2026.
SUM is 969,498.
SUM 969,498
SUM is 969,498.
SUM 969,498
Illustration on simulated data.
SumWhat is the Sum indicator?
Length is 14, from 1 to 10,000. Source is Close. The line is #999999, 1 px, in its own panel, in volume format. It starts on record 0.
Closes 1 through 14, then 0. The line is the running total 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, then 105.0000 at record 13. Record 14 drops the 1 and adds the 0, so it prints 104.0000. Those are the values. The axis uses volume format, which does not change the value.
Maximum and Minimum use the same window and the same source, and they keep an extreme instead of a total. A simple moving average is this sum divided by the length. This study stops at the sum.
Own panel
Maximum and Minimum sit on price. A sum of closes is on a different scale, so it has its own panel.
Partial totals are real
Record 0 is 1.0000, not empty. The full window starts at record 13.
Sum signalsFour patterns to know.
The window filling
The total climbs by each new close. Record 13, the first full window, is 105.0000.
A zero replaces a one
Record 14 is 104.0000. The total fell because the oldest close dropped out, not because the new close was negative.
Equal closes
Fourteen closes of 10 would sum to 140 once the window is full. Until then the total is 10 times the bars so far.
A different source
Point Source at volume when you want a rolling volume total. The example is the close.
Sum formulaHow it is calculated.
Add what exists
Record 0 is 1.0000. The total grows with each close.
Fill the window
Record 13 is 105.0000, the sum of 1 through 14.
Slide it
Record 14 drops 1 and adds 0, so 104.0000.
Sum settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 14 | 1 to 10,000 | Closes in the sum, or fewer at the left edge. |
| Source | Close | Any listed price | The series being added. |
| Line | #999999 | Fixed | One line, 1 px, own panel, volume format. |
- Setting
- Length
- Default
- 14
- Range
- 1 to 10,000
- What it changes
- Closes in the sum, or fewer at the left edge.
- Setting
- Source
- Default
- Close
- Range
- Any listed price
- What it changes
- The series being added.
- Setting
- Line
- Default
- #999999
- Range
- Fixed
- What it changes
- One line, 1 px, own panel, volume format.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
Sum strategiesUse it in 3 setups.
The first full sum
That is 1 + 2 + ... + 14.
The next bar
The window lost the 1 and gained a 0.
Divide it yourself if you want an average
A simple moving average is that division. This line leaves the total alone.
Sum mistakesCommon mistakes.
Reading it on the price scale
It is in its own panel. 105 is a sum of closes, not a price level on the candles.
Expecting an empty warm-up
The line starts at once. Record 0 is 1.0000 on the example.
Calling it Maximum
Maximum would still be 14.0000 on record 14. The sum moves to 104.0000. Same window, different calculation.
Sum combinationsPair it with these.
Sum FAQQuestions traders ask.
What are the Sum settings?
Length 14, from 1 to 10,000. Source Close. Line #999999 in its own panel, volume format.
What is the worked series?
Closes 1 through 14, then 0. Record 13 is 105.0000. Record 14 is 104.0000. Record 0 is 1.0000.
Why does the total fall when the new close is 0?
The window drops the oldest close, which was 1. 105 minus 1 is 104.
Does it wait for 14 bars?
No. It adds the closes it has, starting at the first bar.
How is this different from an SMA?
An SMA divides the sum by the length. This line plots the sum.
How is this different from Maximum and Minimum?
Those keep one extreme of the same window. Sum keeps every close in it.
Does volume format change the number?
No. 105.0000 is the value. The axis only chooses how a large total is labelled.
Does it repaint?
No. A closed source value stays in the sum until it ages out.
Who described it?
P. J. Kaufman, Trading Systems and Methods (2013), chapter 2.
Related indicatorsMore statistical tools.
All statistical indicatorsTry Sum on a live chart.
Free. No download.
Works in your browser and on iPhone too.