📝 产品详情
Control Points MT5
| 作者 | Ilya Malev |
| 版本 | v1.2 |
| 更新 | 11 三月 2026 |
| 激活数 | 0 |
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.
安全须知
本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。
EA 配置
| 交易品种 | XAUUSD |
| 时间框架 | H1 (推荐) |
| 推荐经纪商 | IC Markets, IC Trading |
| 最低存款 | $300 / 0.01手 |
📸 截图预览