Multi Timeframe Pivot Confluence Panel
Traders who stack daily, weekly and monthly pivots by eye are doing a manual clustering job: five sets of near-identical numbers, checking which ones happen to sit close together. This panel does that sweep automatically. For each enabled timeframe it computes the standard five pivot levels (Pivot, R1, S1, R2, S2) from that timeframe's last completed bar, sorts every level from every enabled timeframe by price, then chains adjacent levels together whenever the gap between them is within InpToleranceInPips - the standard single-linkage clustering rule, so a long chain of near-touching levels across several timeframes can span more than one tolerance step end to end. Only chains with at least InpMinConfluenceCount distinct levels get drawn, so the chart is not cluttered with forty near-identical single lines - what's left on the chart is specifically where independent timeframes actually agree. Zone lines are weighted by how many timeframes stack there (thicker and gold for 3+, thinner and blue for exactly 2), and a text panel lists each zone's price and the specific timeframe/level labels that make it up. Notes and limitations - Pivots use the classic formula (Pivot=(H+L+C)/3, R1=2P-L, S1=2P-H, R2=P+(H-L), S2=P-(H-L)) from each timeframe's last COMPLETED bar - not the still-forming current bar on that timeframe. - On an instrument with an irregular trading day (indices, some CFDs) the daily/weekly pivot inputs can be unusually wide or narrow for that one period, which shifts every zone that includes them. - Tolerance is a single fixed pip distance across the whole level set; it does not scale with volatility or price level beyond the standard 3/5-digit pip conversion. - Recomputes once per new bar on the CHART's own timeframe, not once per new bar on each pivot timeframe individually - this is intentional (it keeps the zones current without excessive object churn) but means a brand-new higher-timeframe bar's pivot only appears on the next lower-timeframe bar close, not instantly.
Indicator · MT4 · v1.0 · Free
About Multi Timeframe Pivot Confluence Panel
Multi Timeframe Pivot Confluence Panel is an indicator for MetaTrader 4. It has 14 settings, such as Enable tf1, Tf1 and Enable tf2. MQL source code included.
Files in the download: PivotConfluencePanel.mq4, PivotConfluencePanel.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Enable tf1 | true | Enable timeframe slot 1 |
| Tf1 | PERIOD_D1 | Timeframe 1 |
| Enable tf2 | true | Enable timeframe slot 2 |
| Tf2 | PERIOD_W1 | Timeframe 2 |
| Enable tf3 | true | Enable timeframe slot 3 |
| Tf3 | PERIOD_MN1 | Timeframe 3 |
| Enable tf4 | false | Enable timeframe slot 4 |
| Tf4 | PERIOD_H4 | Timeframe 4 |
| Enable tf5 | false | Enable timeframe slot 5 |
| Tf5 | PERIOD_H1 | Timeframe 5 |
| Tolerance in pips | 8.0 | Max gap between two levels to count as the same zone |
| Min confluence count | 2 | Minimum distinct timeframes stacked before a zone is drawn |
| Show individual levels | false | Also draw every single level faintly, not just confluence zones |
| Show panel | true | Show the text summary panel |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Pivot Points · Multi-Timeframe (MTF) · MT4 Indicator · MQL4 Source Code