Maximum
Indicator
Maximum is the highest close of the last 14 bars, drawn on price in grey. Until 14 closes exist it keeps the highest close so far, from the first bar.
P. J. Kaufman, Trading Systems and Methods (2013), chapter 2, the highest value of a series. Reviewed by the ChartLabs team, updated Nov 2026.
MAXIMUM is 64,822.4.
MAXIMUM 64,822.4
MAXIMUM is 64,822.4.
MAXIMUM 64,822.4
Illustration on simulated data.
MaximumWhat is the Maximum indicator?
Length is 14, from 1 to 10,000. Source is Close. The line is #999999, 1 px, on the price chart. It starts on record 0.
Closes 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, then 0. Record 0 is 1.0000. Record 13 is 14.0000. Record 14 is still 14.0000, because the 0 replaces the 1 and 14 is still inside the window.
This is not Highest High / Lowest Low. That study uses the high and the low, length 20, and draws three lines. Maximum is one line, on the source you pick.
Partial from the first bar
You do not wait 14 bars. The line is the highest close seen so far until the window is full.
One line
Minimum is the twin that keeps the lowest close. Sum keeps the total. They are three calculations, not one study.
Maximum signalsFour patterns to know.
A new highest close
Through record 13 the line equals the latest close, 14.0000, because each close is a new high.
A close under the window high
Record 14 closes at 0 and the line stays 14.0000. The highest close has not left the window.
A flat stretch
If the last 14 closes are equal, the line equals that close. There is nothing higher to show.
The first bar
Record 0 is 1.0000, the only close so far. Empty would be wrong here. The line always has a value on a finite source.
Maximum formulaHow it is calculated.
Read the source
Close, unless you change it. Length 14.
Keep the highest so far
Record 0 is 1.0000. Each new high close lifts the line. Record 13 is 14.0000.
Drop the oldest once 14 exist
Record 14 drops the 1 and adds the 0. The max of that window is still 14.0000.
Maximum settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 14 | 1 to 10,000 | Closes in the window, or fewer at the left edge. |
| Source | Close | Any listed price | The series the max reads. |
| Line | #999999 | Fixed | One line, 1 px, on price. |
- Setting
- Length
- Default
- 14
- Range
- 1 to 10,000
- What it changes
- Closes in the window, or fewer at the left edge.
- Setting
- Source
- Default
- Close
- Range
- Any listed price
- What it changes
- The series the max reads.
- Setting
- Line
- Default
- #999999
- Range
- Fixed
- What it changes
- One line, 1 px, on price.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
Maximum strategiesUse it in 3 setups.
A climbing close
The line and the close agree while every close is a new high.
A close that does not take the high out
The 0 is inside the window and it is not the max.
Do not merge it with the high-low study
Highest High / Lowest Low is length 20 on high and low, with a midpoint. This line is only the max of the source.
Maximum mistakesCommon mistakes.
Waiting 14 bars for the first print
The line starts at record 0. The first 13 bars use a shorter window on purpose.
Using it as the highest high
The default source is close. A high above that close does not move this line unless you change the source to high.
Reading record 14 as a break
14.0000 after a close of 0 means the old high is still in the window, not that price held 14.
Maximum combinationsPair it with these.
Maximum FAQQuestions traders ask.
What are the Maximum settings?
Length 14, from 1 to 10,000. Source Close. Line #999999 on the price chart.
What is the worked series?
Closes 1 through 14, then 0. Record 0 is 1.0000, record 13 is 14.0000, record 14 is 14.0000.
Why does record 14 stay at 14?
The window drops the oldest close, which was 1, and adds 0. The 14 is still one of the 14 closes.
Does it wait for 14 bars?
No. It starts on the first finite source value and uses whatever history it has.
How is this different from Highest High / Lowest Low?
That study is length 20, reads high and low, and draws three lines. Maximum is one line on a source, default close, length 14.
Can the source change?
Yes. Any listed price. The default is close, and the example uses close.
Does it repaint?
No. A closed bar stays in the window until length bars have passed.
Who described it?
P. J. Kaufman, Trading Systems and Methods (2013), chapter 2.
Related indicatorsMore statistical tools.
All statistical indicatorsTry Maximum on a live chart.
Free. No download.
Works in your browser and on iPhone too.