Building a Pivot Trend Indicator with Lines, Arrows, and Gradient Fills
Summary
The article describes an MQL5 chart indicator that derives fast and slow pivot lines from recent high and low ranges, colors them by trend direction, and marks trend changes with arrows. Price relative to the slow line supplies the main directional context, while the faster line is intended to respond sooner to shifts. User inputs control periods, colors, opacity, arrow symbols, forward extensions, and whether canvas shading is enabled.
The implementation discussion covers indicator buffers and plots, chart state, canvas-based gradients between lines, and redraw handling when the visible chart changes. The article includes a visual result and a section labeled backtesting, but provides no quantitative trading test, performance statistics, or evidence that the signals predict profitable trades. The indicator is therefore presented as a configurable trend-visualization tool; its settings and interpretation would need independent evaluation before use as a trading rule.
Key ideas
- The indicator uses fast and slow pivot lines to represent shorter and broader directional movement.
- It marks trend changes with colored lines and arrows and can shade the area between lines using a canvas gradient.
- Period, color, opacity, arrow, extension, and fill settings are exposed as user inputs.
- Redraw logic responds to changes in chart dimensions, scale, and visible price range.
- The article shows a visual output but provides no quantitative evidence of trading performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.