Trendline Breaks Confluence MT5
- Indicatori
-
Mario Jemic
Analista Certificato dei Mercati dei Capitali e dei Titoli
Investitore professionale.
Ingegnere sviluppatore dietro FXCM Trading Station.
Ho l’opportunità di lavorare con alcune delle tecnologie più avanzate disponibili oggi.
Posizione attuale: Zagabria, Croazia
Impieghi precedenti: - Versione: 1.0
- Attivazioni: 5
Trend lines from seven methods, breaks and retests on closed bars, a confluence of the breaks, alerts and a dashboard.
Description
Trendline Breaks Confluence draws trend lines in seven different ways and gives a signal when price closes beyond them. In the Confluence mode a break counts only when several methods break the same way within a few bars.
Seven methods
- Pivot + slope: a line starts at a pivot high (low) and falls (rises) with a slope from ATR, standard deviation or linear regression.
- DeMark TD lines: through the last two TD points, a lower high for the upper line and a higher low for the lower line.
- Fractal to fractal: through the last two fractals of the same kind.
- ZigZag swings: through the last two swing highs (lows), swings confirmed by a reversal of a multiple of ATR.
- Major line: from the extreme of the last bars to the newest pivot.
- Regression channel: a linear regression channel; a new channel after a break.
- Touch-validated: a line through two pivots that becomes active only after a third touch.
- Lines steeper than a limit (0.3 ATR per bar by default) are not used.
Confluence (default)
- A break up (down) is signalled when at least 3 methods (your choice, 2 to 7) break an upper (lower) line within 3 bars. The same for retests.
- You choose which methods take part.
Switch on the chart
- The arrows next to the method name on the dashboard switch between Confluence and each of the seven methods. The chart, the signals and the dashboard are calculated again at once. The choice is kept per chart.
Signals
- Break up: a close above an upper line. Break down: a close below a lower line.
- Retest: within 10 bars after a break, the price comes back to the broken line from the other side and holds (the broken resistance holds as support, or the other way).
- Signals on closed bars only. Alerts: pop-up, sound, e-mail and push.
- One method: the lines are drawn with their names, broken lines stay dotted, converging lines (triangle) are marked.
The dashboard
- Folded at start: one line with the chart symbol on every selected timeframe.
- Open: one row per symbol (Market Watch or your own list), one column per timeframe (M5 to W1). Each cell shows the direction of the last break and how many bars ago it was. A strong colour means a fresh break (3 bars or less by default).
- Click a cell and the chart switches to that symbol and timeframe. Pages for long lists.
No repaint
- Bars are processed one by one and a processed bar is never calculated again. A line is drawn from its first point, but it gives signals only from the bar on which it was confirmed.
- Tests in the Strategy Tester (EURUSD H1 with every method and the confluence, XAUUSD H4, GBPJPY M15, USDJPY H1): the buffers recorded bar by bar were equal to the final history, and a fresh start of the indicator gave the same results for the last 500 bars.
Notes
- A break of a trend line describes price. It is not a forecast. Use it with your own rules and risk management.
- For iCustom: buffer 0 = break up, 1 = break down, 2 = retest up, 3 = retest down (EMPTY_VALUE when there is no signal); buffer 4 = the nearest upper line above the close, 5 = the nearest lower line below it. In MT5 every input group counts as one parameter: pass an empty string "" for it. Set "Show the dashboard" to false in an EA, then the input Method is always used.
- The indicator does not trade. No DLL.
Inputs
- Lines: method, bars calculated, retest bars and distance, ATR period, steepest line.
- Method settings: pivot bars, slope source and multiplier, TD level, fractal size, ZigZag reversal, major line pivots and window, regression bars and width, touch-validated pivots and distance.
- Confluence: methods that must agree, within bars, which methods take part.
- Drawing: colours, width, labels, broken lines.
- Signals and alerts: breaks, retests, arrow symbols, pop-up, sound, e-mail, push.
- Dashboard: show, open at start, symbols, timeframes, bars per cell, fresh bars, symbols per page, position.
