Control Points MT4
- Indicatori
- Ilya Malev
- Versione: 1.1
ControlPoints Indicator
Purpose: Identifies Control Points (CP) — local extremums (fractals) on the chart. Upper CPs are local highs, lower CPs are local lows. Displayed on the chart as diamond markers.
No-Repaint: The indicator does not repaint. A CP at bar i is only confirmed when all bars in the window [i − BarsBefore, i + BarsAfter] are closed. The forming (current) bar is never evaluated. Once confirmed, the value is never recalculated.
Detection Logic
Upper CP: high[i] is strictly greater than high[j] for all j in the range [i − BarsBefore .. i + BarsAfter] , where j ≠ i .
Lower CP: low[i] is strictly less than low[j] for all j in the same range, where j ≠ i .
The same bar can be both an upper and a lower CP simultaneously.
Parameters
| # | Parameter | Type | Default | Description |
|---|---|---|---|---|
| 1 | Bars Before | int | 2 | Number of closed bars to the left of the candidate that must have a lower high (for upper CP) or a higher low (for lower CP). Minimum 1. |
| 2 | Bars After | int | 2 | Number of closed bars to the right of the candidate required to confirm the extremum. Determines the CP appearance delay: a point at bar i will only appear after bar i + BarsAfter closes. Minimum 1. |
| 3 | Upper CP Color | color | clrDodgerBlue | Color of the upper CP diamonds. |
| 4 | Lower CP Color | color | clrRed | Color of the lower CP diamonds. |
| 5 | Diamond Size | int | 2 | Size of the displayed diamonds (line width in pixels). Minimum 1. |
Buffers
| Index | Name | Contents |
|---|---|---|
| 0 | Upper CT | high[i] if bar i is an upper CP, otherwise EMPTY_VALUE |
| 1 | Lower CT | low[i] if bar i is a lower CP, otherwise EMPTY_VALUE |
Notes
Increasing the "Bars Before" / "Bars After" parameters makes CPs more significant (filters out minor fluctuations), but increases delay and reduces the number of points.
