Trend Confluence PRO — User Manual (MetaTrader 5, version 3.21)

3 November 2026, 03:14
JETINVEST
0
121

Available on the MQL5 Market: Trend Confluence PRO

Trend Confluence PRO projects the trend of a higher timeframe onto any chart: it paints the candles by trend state, marks the first bar of every new trend as a BUY or SELL signal with a quality score (0-100), draws an entry zone with a stop loss and three targets for the latest signal, adds confluence levels (average lines, daily VWAP, previous day high / low, untouched swings), a session strip and high-impact news awareness. The trend is read from closed higher-timeframe bars. The newest bars are recalculated each time a new higher-timeframe bar arrives, and the whole history when the indicator is loaded again; values can change in those recalculations. It works on any symbol, any broker and any timeframe.

New in version 3.21

  • The panel is now shorter: the block at the bottom was removed.
  • The trend state, score, momentum, strength, timeframe alignment, news and buttons are the same as before.
  • Fix: when the higher-timeframe data arrives late, no provisional signal or alert is shown any more; the signal appears once the data has arrived.
  • Fix: with the monthly timeframe as trend timeframe, the real length of each month is used.
  • Apart from these fixes, signals, entry zone, stop, targets, levels, alerts and buffers are unchanged.
  • One input group is now called Reserved and its input Reserved (no effect): they stay in the list so that saved settings and iCustom calls keep working, but they no longer have any effect.
  • Fix: when the indicator starts before the terminal is connected, the session strip waits for the connection and is drawn at the right hours.
  • The target labels now show only TP1, TP2 and TP3 with the price.
  • In the Strategy Tester, the models without ticks ("1 minute OHLC" and "Open prices only") now show the notice Tester: use "Every tick" below the panel.

New in version 3.13

  • New panel: the standard JET panel with a title bar. – collapses / expands it, A- / A+ change its size (60-200 %), X removes the indicator from the chart, and the panel is moved by dragging the title bar. Rounded corners, light on a light chart and dark on a dark chart, texts in the terminal language (11 languages). It shows the same information as before (section 9).
  • Colours follow the chart background: texts and lines that did not read well on it (for example PDH / PDL and the VWAP in light grey on a white chart) are darkened or lightened automatically, and they change by themselves when the background is switched.
  • Chart labels no longer sit on the candles: the ENTRY, SL and TP1-TP3 labels move right after the newest bar or to the right edge, and the BUY / SELL marks move further away from the price (section 2).
  • When the indicator is removed after the background was switched, the chart's own candles come back in colours that read on the new background.
  • Inputs and buffers are unchanged.

New in version 3.10

  • Fix: when the history of the trend timeframe arrives late (on loading or after a reconnection), the painted candles and the panel now appear as soon as it is available, even with the market closed, without waiting for a new tick.
  • Fix: the panel now fits the chart height: on short charts or high-DPI screens it is reduced so that every row stays visible (section 9).
  • Fix: the TIMEFRAME ALIGNMENT row of the panel now updates while the market is closed, as soon as each timeframe's history is available.
  • Fix: with Max bars to calculate (0 = all) above 0, the bars older than the calculation window keep the chart's own candles, so the whole history stays visible (section 11).
  • Chart labels no longer overlap each other or the panel: the entry zone labels have priority, and a label that would cover another one or be cut at the edge is not shown; lines, levels and session bands are always drawn (section 2).
  • Inputs and buffers are unchanged.

New in version 3.00

  • New input group Programmatic use at the end of the list: Draw graphics, Max bars to draw (0 = all) and Max bars to calculate (0 = all) — sections 11 and 12.
  • With Draw graphics = false the indicator draws nothing on the chart and leaves the chart's own candles untouched; every buffer for Expert Advisors and iCustom and the alerts stay the same.
  • Fix: the buffer numbers read through iCustom no longer change when Paint candles with the trend is off. In version 2.00, with the painting off, buffers 15-18 could not be read.
  • The defaults keep the previous behavior. The existing inputs keep their positions, so saved settings and iCustom calls keep working.

New in version 2.00

  • New inputs Show the entry zone and Show the signal marks (on by default, so nothing changes for current users). Turn them off for a clean chart or when the indicator feeds an Expert Advisor or a dashboard (section 12).
  • Buffers are unchanged: trend state, quality and signal (direction, entry, SL, TP1-TP3) remain available with the zone and the marks off.

1. Installation and first start

  1. Buy or rent the indicator on the MQL5 Market and install it from the Market tab of the terminal (Toolbox → Market → Purchased → Install).
  2. Open a chart and drag Trend Confluence PRO from the Navigator (Indicators → Market) onto it.
  3. Keep the default inputs or adjust them (section 11) and press OK.

The indicator calculates the last 5000 chart bars (input Chart bars to calculate). With Hide the chart's own candles while painting on (default), the terminal's candles are made invisible so that only the painted candles are seen; the original chart colours are restored when the indicator is removed.


2. Chart legend

On the chart Meaning
Green candles Bullish trend of the trend timeframe.
Red candles Bearish trend.
Grey candles Weak trend: trend strength below Weak trend below this ADX.
Gold candle Trend change bar (first chart bar of a new trend).
Green ▲ arrow + ▲ BUY label below the bar Buy signal (new bullish trend).
Red ▼ arrow + SELL ▼ label above the bar Sell signal (new bearish trend).
Gold thick line + ENTRY (or LIMIT) label with side and Q score Entry of the latest signal; NEWS is added when it was near high-impact news.
Green-tinted area + dotted lines TP1 / TP2 / TP3 Targets of the latest signal.
Red-tinted area + line SL Stop loss of the latest signal.
Gold line Fast average line.
Blue-violet line Slow average line.
Grey dotted line Daily VWAP (restarts every day).
Grey dashed lines PDH / PDL Previous day high / low.
Red-tinted dotted SWING H / green-tinted dotted SWING L Untouched swing highs above / swing lows below the price.
Thin bands ASIA / LONDON / NEW YORK at the bottom Session strip (H1 and lower charts).
Panel (top left) Trend state, score, momentum, strength, timeframe alignment, news and toggles.

Chart labels never cover each other, the panel or the candles. The entry zone labels (ENTRY / LIMIT, SL, TP1-TP3) have priority, followed by the BUY / SELL marks, PDH / PDL, SWING H / L and the session names. A zone or level label that would fall on the candles or be cut at the edge is placed right after the newest bar or at the right edge of the chart, at the same price; a BUY / SELL mark moves further away from the price. A label with no free place is not shown; lines, levels and session bands are always drawn. Texts and lines that would not read on the chart background are darkened or lightened automatically and follow the background when it changes.


3. Trend engine and painted candles

The trend is read from the trend timeframe (input Trend timeframe, default H1). When the chart timeframe is equal to or higher than it, the chart timeframe itself is used. The panel header shows the pair in use, for example H1 > M15 (trend timeframe > chart timeframe).

  • The trend state is controlled by Trend ATR period and Trend ATR multiplier: a larger multiplier gives fewer, longer trends.
  • Each chart bar takes the state of the last trend-timeframe bar that was closed when the chart bar opened. A new H1 trend therefore appears on the first M15 bar after the H1 bar closed.
  • Candle colour: bull / bear by the trend; grey when the trend is weak (input Weak trend below this ADX); gold on the trend change bar.
  • Bars without enough trend history at the start of the chart are not painted.

Paint candles with the trend = false turns the painting off (the terminal's candles stay visible).


4. Signals and quality score

A signal is printed on the first chart bar of every new trend: BUY when the trend turns bullish, SELL when it turns bearish. The arrow is placed below / above the bar and a text mark is added for the last 60 signals (the arrows alone are small on high-resolution screens).

Arrows only above this ADX (default 0 = every trend change): with a value above 0, weaker trend changes still paint the gold candle but produce no signal, no zone, no alert and no buffer value.

Every signal has a quality score from 0 to 100 that rates the conditions of the trend timeframe at the moment of the signal: higher values mean more favourable conditions, lower values weaker ones. Use it to compare signals and to filter alerts (section 10).

When the signal falls within Minutes before and after high-impact news of an event, it is flagged NEWS and receives a low score. The score describes the conditions at the signal; it is not a probability.


5. Entry zone: entry, stop loss and TP1-TP3

For the latest signal the indicator draws a zone Zone length chart bars long (default 40):

  • Entry — At the open of the signal bar (default, label ENTRY) or Limit on a pullback (label LIMIT): the entry is placed Pullback distance below the open for a buy, above it for a sell.
  • SL — stop loss of the signal, set by Stop loss.
  • TP1 / TP2 / TP3 — the three targets of the signal, set by Target 1 / 2 / 3. Each target has its own label with the price.

The entry label also shows the side and the quality, e.g. ENTRY 1.08500 BUY Q72 . The zone moves to each new signal; older zones are not kept. Show the entry zone = false (2.00) hides it.


6. Confluence levels

  • Fast and slow average lines of the chart timeframe — gold and blue-violet lines.
  • Daily VWAP — volume-weighted average price of the day, restarting at the start of each server day; grey dotted line.
  • PDH / PDL — previous day high and low, from the start of the current day to just right of the last bar (charts below D1; input Previous day high and low).
  • SWING H / SWING L — swing highs above the current price and swing lows below it that no bar has closed beyond since they formed. Swing strength sets how significant a swing must be; Untouched swing levels on each side (default 2) how many are shown. A swing level very close to PDH / PDL is not drawn twice.

The levels are redrawn on every new bar. The LEVELS button of the panel shows or hides all of them, including the average lines and the VWAP.


7. Session strip

At the bottom of the chart three thin bands show when each session was open during the last Days of sessions to draw days (default 5):

Band Local market time
ASIA (blue-violet) Tokyo 09:00-18:00
LONDON (green) London 08:00-17:00
NEW YORK (red) New York 08:00-17:00

UK and US daylight saving are applied, so the bands do not drift twice a year. The strip stays at the bottom when you scroll or zoom, and is drawn on H1 and lower timeframes. The bands are drawn once the terminal has connected to the server.

Server time zone (needed to convert the chart time):

  • Auto (live) / GMT+2/+3 in tester (default): the offset is measured from the terminal clock; brokers on GMT+2 / GMT+3 (New York close) are followed through history with US daylight saving. In the Strategy Tester GMT+2 / GMT+3 is assumed.
  • GMT+2 / GMT+3 (New York close brokers): forces that rule.
  • Fixed GMT offset: uses Fixed GMT offset (hours) (default 2) all year.

8. News awareness

With Use the MQL5 economic calendar on (default), the indicator reads the high-impact events of the MetaTrader economic calendar for the base and profit currencies of the symbol (for EURUSD: EUR and USD).

  • Signals within Minutes before and after high-impact news (default 30) of an event get the NEWS flag and a reduced quality score.
  • The panel shows the next event and the time to it (e.g. NEWS USD Nonfarm Payrolls in 2h 15m ), in gold while a news window is open; the state card adds NEWS NOW.
  • The list of events is refreshed every 30 minutes.

The calendar needs the terminal connected to the MetaQuotes servers and is not available in the Strategy Tester (the panel says so). The news filter never blocks anything: it only flags signals and lowers their score.


9. The panel

Part Content
Title bar Product name, the trend timeframe > chart timeframe chip and the buttons – (collapse / expand), A- / A+ (panel size, 60-200 %) and X (removes the indicator from the chart). Drag the title bar to move the panel.
State card BULLISH, BEARISH or WAIT (weak trend), the current trend score /100 with a 10-segment bar, and Since BUY / SELL N bars ago (bars since the last signal). The score uses the last closed trend bar and is reduced during a news window.
MOMENTUM Confirmed, Partial or Not confirmed (whether momentum agrees with the trend), with the current readings.
STRENGTH Strong, Moderate or Weak (below the weak level), with the current strength reading.
TIMEFRAME ALIGNMENT n / 6 Trend state of M5, M15, M30, H1, H4 and D1 (▲ bullish, ▼ bearish, ● no data) with the same trend settings, on closed bars; n = how many agree with the current trend. Updated as soon as each timeframe's history is available, also with the market closed.
News line Next high-impact event, "No high-impact news in the next 7 days", "News filter off", or the tester message.
Buttons CANDLES, SIGNALS, ZONE, LEVELS, SESSIONS: click to show / hide each layer (gold = on).

The panel follows the chart background (light on a light chart, dark on a dark chart) and changes by itself when the background changes; its texts follow the terminal language. It is refreshed every 2 seconds. Start position: Panel X / Panel Y (pixels at 100 %); start size: Panel size (%); it also follows the Windows display scale. When the chart is not tall enough (a short chart window or a high-DPI screen), the panel is reduced automatically so that it fits, and it goes back to the chosen size when there is room again. The position after dragging, the size chosen with A- / A+ and the collapsed state are remembered for the chart; the button states are remembered until the indicator is removed. At each start, Show the entry zone = false and Show the signal marks = false turn the ZONE and SIGNALS buttons off; they can still be turned on from the panel.


10. Alerts

An alert is sent when a new signal appears, at the open of the signal bar:

Trend Confluence PRO: EURUSD | M15 | BUY (H1 trend) Q72 entry 1.08500 SL 1.08350 TP1 1.08725

  • Alert on new signal: Off, Popup, Sound, Smartphone notification, Popup + Sound (default), Notification + Sound, Popup + Notification, Popup + Sound + Notification.
  • Sound: terminal sound (default "alert2").
  • Also send e-mail: adds an e-mail.
  • Alert only from this quality (0-100): signals with a lower score are not alerted (they are still drawn).

Signals with the NEWS flag carry "NEWS" in the message. Push notifications need the MetaQuotes ID in Tools → Options → Notifications; e-mail needs the e-mail settings of the terminal. Nothing is sent in the Strategy Tester.


11. Inputs

Trend engine

Input Default Description
Trend timeframe (used when higher than the chart) 1 Hour Timeframe whose trend is projected.
Trend ATR period 10 Trend setting (section 3).
Trend ATR multiplier 3.0 Higher = fewer, longer trends.
Weak trend below this ADX (grey candles) 20.0 Below it candles are grey and the panel shows WAIT.
Arrows only above this ADX (0 = every trend change) 0.0 Filters out weaker trend changes.
Chart bars to calculate 5000 History calculated on the chart.

Entry zone

Input Default Description
Entry At the open of the signal bar Or Limit on a pullback.
Pullback distance (ATR of the trend timeframe) 0.3 Used by Limit on a pullback.
Stop loss (ATR of the trend timeframe) 1.0 Distance of the SL.
Target 1 (R multiple) 1.5
Target 2 (R multiple) 2.5
Target 3 (R multiple) 4.0
Zone length (chart bars) 40 Length of the zone.

Confluence levels

Input Default Description
Fast EMA 50 Gold line on the chart.
Slow EMA 200
Previous day high and low true PDH / PDL lines.
Swing strength (bars on each side) 12 Size of the swings used for SWING H / L.
Untouched swing levels on each side 2 0 = no swing levels.

Sessions

Input Default Description
Server time zone Auto (live) / GMT+2/+3 in tester Also: GMT+2 / GMT+3 (New York close brokers), Fixed GMT offset.
Fixed GMT offset (hours) 2 Used by Fixed GMT offset.
Days of sessions to draw 5 0 = no session strip.

News

Input Default Description
Use the MQL5 economic calendar true High-impact news flag.
Minutes before and after high-impact news 30 News window.

Reserved

Input Default Description
Reserved (no effect) 100 No effect since version 3.21 (kept for saved settings and iCustom calls).

Alerts

Input Default Description
Alert on new signal Popup + Sound Alert mode.
Sound alert2 Terminal sound.
Also send e-mail false
Alert only from this quality (0-100) 0 Minimum score for an alert.

Display

Input Default Description
Paint candles with the trend true Painted candles.
Hide the chart's own candles while painting true Makes the terminal's candles invisible while painting.
Show the panel true
Panel X (px at 100%) 16 Distance from the left edge.
Panel Y (px at 100%) 28 Distance from the top edge.
Panel size (%) 100 Panel scale.
Bull color 61,219,176 Bullish candles, BUY marks, targets.
Bear color 240,96,90 Bearish candles, SELL marks, stop.
Weak trend color 91,101,119 Weak-trend candles.
Trend change / entry color 227,179,65 Change bar, entry line, panel accents.
Show the entry zone (box, SL, TP1-TP3) true 2.00 — false hides the zone.
Show the signal marks (arrows and BUY / SELL labels) true 2.00 — false hides arrows and labels.

Programmatic use

Input Default Description
Draw graphics true false = nothing is drawn: no painted candles, arrows, labels, entry zone, levels, session strip or panel, and the chart's own candles are not hidden. Buffers and alerts unchanged.
Max bars to draw (0 = all) 0 Limits the chart objects (signal marks, entry zone, levels, sessions) to the last N bars. Painted candles and buffers are not limited.
Max bars to calculate (0 = all) 0 Values only on the last N bars; on the older bars the buffers are empty ( EMPTY_VALUE ; candle color 0 ) and the chart shows its own candles, so the whole history stays visible. With a value above 0 the chart's own candles are not hidden (inside the window the painted candles are drawn over them). Works inside Chart bars to calculate (never raises it).

With the defaults (true, 0, 0) the indicator works exactly as in version 2.00.


12. Buffers for Expert Advisors / dashboards

The signal and trend data can be read with iCustom + CopyBuffer . Read shift 1 (last closed chart bar). The newest bars are recalculated each time a new higher-timeframe bar arrives, and the whole history when the indicator is loaded again; values can change in those recalculations.

Buffer Name Values When Empty
0-3 Candle open / high / low / close chart prices (painted candles) every bar with trend data EMPTY_VALUE
4 Candle color 0 bull, 1 bear, 2 weak trend, 3 trend change bar every bar 0
5 Buy arrow price of the arrow buy signal bar only EMPTY_VALUE
6 Sell arrow price of the arrow sell signal bar only EMPTY_VALUE
7 / 8 EMA fast / EMA slow price every bar EMPTY_VALUE
9 / 10 VWAP (even days / odd days) price; one of the two is filled per day every bar EMPTY_VALUE
11 Trend state +1 bullish, -1 bearish; 0 = not enough history every bar 0
12 Signal quality 0 - 100 signal bar only 0
13 Signal direction +1 buy, -1 sell signal bar only 0
14-18 Entry / SL / TP1 / TP2 / TP3 prices of the signal signal bar only 0

Buffers 13-18 follow the JET signal layout (direction, entry, SL, TP1, TP2, TP3). They are filled with the zone and the marks off.

Loading. The Market version is installed in MQL5\Indicators\Market\ ; check the exact file name in the Navigator. With no parameters after the name the default inputs are used. To change inputs, pass them in the order of section 11. Every input group heading is a parameter too: pass an empty string "" in its place, otherwise every following value shifts. Inputs left out at the end keep their defaults.

```mql5 // "" = group "Trend engine", then the inputs of that group in the order of section 11 int h = iCustom(_Symbol, PERIOD_M15, "Market\Trend Confluence PRO", "", PERIOD_H1, 10, 3.0, 20.0, 0.0, 1000);

double st[1], dir[], q[1], e[1]; if (BarsCalculated(h) > 0) { if (CopyBuffer(h, 11, 1, 1, st) == 1) Print("trend ", (int)st[0]); // +1 / -1 if (CopyBuffer(h, 13, 1, 200, dir) == 200) // dir[199] = shift 1 for (int i = 199; i >= 0; i--) if (dir[i] != 0.0) { const int shift = 199 - i + 1; CopyBuffer(h, 12, shift, 1, q); CopyBuffer(h, 14, shift, 1, e); Print("signal ", (int)dir[i], " Q", (int)q[0], " entry ", e[0], " ", shift, " bars ago"); break; } } ```

Notes:

  • An indicator created by iCustom draws its panel, zone and marks on the chart of the calling program. For a clean dashboard pass the full input list with Show the panel, Show the entry zone and Show the signal marks = false, Alert on new signal = Off and Hide the chart's own candles while painting = false (true would hide the candles of the calling chart).
  • The buffer numbers are the same with Paint candles with the trend on or off (fixed in 3.00; in version 2.00, with the painting off, buffers 15-18 could not be read: error 4806).
  • Programmatic use (3.00): Draw graphics = false is the simplest way to keep the calling chart clean: nothing is drawn, the candles of the calling chart are not hidden and all 19 buffers keep the same values (also set Alert on new signal = Off if you do not want alerts). With Max bars to calculate above 0, bars older than the last N are empty ( EMPTY_VALUE ; buffer 4 = 0 ); on the chart those bars keep the chart's own candles. Draw graphics and Max bars to draw never change the buffers. These inputs are the last group, after Display: counting each group heading as one position, the heading "Programmatic use" is parameter 49 and Draw graphics, Max bars to draw and Max bars to calculate are parameters 50, 51 and 52.
  • Wait until BarsCalculated(h) > 0 before the first read. 1000 chart bars are enough for a dashboard.

13. Tips

  • Typical pairs: M5 / M15 chart with the H1 trend, or H1 chart with the H4 trend. Check that the chip in the panel header shows the pair you expect.
  • Fewer signals: raise Arrows only above this ADX or Trend ATR multiplier.
  • Alert filter:Alert only from this quality = 50 keeps every signal on the chart but alerts only the stronger ones.
  • Clean chart: use the panel buttons, or the 2.00 inputs Show the entry zone / Show the signal marks = false.


14. Questions and troubleshooting

  • Does it repaint? The trend is read from closed higher-timeframe bars. The newest bars are recalculated each time a new higher-timeframe bar arrives, and the whole history when the indicator is loaded again; values can change in those recalculations. The forming candle, the position of its arrow, the average lines and the VWAP are updated with the price, and the levels on every new bar.
  • The candles disappeared after removing the indicator. The original colours are restored on removal. If the terminal was closed abruptly, set the candle colours again in the chart properties (F8) or reload your template.
  • No signals on a D1 / W1 chart. On charts at or above the trend timeframe the chart timeframe is used; signals are rarer there.
  • Panel says "Economic calendar not available in the tester". Normal: the calendar exists only on live charts.
  • The ZONE / SIGNALS button is off after a restart.Show the entry zone / Show the signal marks are false in the inputs, or the button was turned off earlier on that chart.
  • No session strip. It is drawn only on H1 and lower charts and with Days of sessions to draw above 0, and the SESSIONS button must be on.
  • The chart shows Tester: use "Every tick". The Strategy Tester models "1 minute OHLC" and "Open prices only" have no ticks: run the test with "Every tick".

Support: send a private message on MQL5 to the author.