Skip to content
All library documents

Beginner Indicator for Marking Significant Local Peaks and Troughs

Article MQL5 code base

Summary

The Beginner custom indicator marks selected local highs and lows on a chart with colored points. It calculates maxima and minima over a specified period, compares them with the currency pair's trading range, and marks a peak or trough when it is considered significant. The description gives two adjustable parameters: one controls how much of the range is excluded before judging significance, and the other sets the calculation period.

Increasing the range adjustment is said to make points appear more often, while increasing the period makes them less frequent. These settings therefore affect how selectively the indicator marks turning points. The document offers no precise formula, chart evidence beyond a figure reference, rules for acting on marks, or tests of signal reliability. Local extrema can be identified only relative to a chosen window, so the page does not establish that the marks predict future reversals.

Key ideas

  • The indicator marks selected local maxima and minima with colored chart points.
  • It compares extrema over a chosen period with the currency pair's trading range.
  • A larger range adjustment leads to more frequent marks, according to the description.
  • A longer calculation period leads to fewer marks.
  • The document provides no evidence that marked extrema predict reversals.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.