Strong Support and Resistance Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

One pivot is not a level. The strong support and resistance indicator scans eight hundred bars, groups pivots that landed near each other, and keeps only the groups holding three or more. The word strong in its name is a counting rule, not an opinion.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 2: Strong Resistance Marker, Strong Support Marker
Alerts popup, push notification, email, sound
Inputs 16

What it puts in front of you

Two marker plots plus drawn lines and labels.

`Strong Resistance Marker` prints tomato using arrow 234.

`Strong Support Marker` prints medium sea green using 233.

Each qualifying level draws as a line.

Labels sit beside the lines as text objects.

`InpExtendRightBars` `80` carries them forward.

  • Strong Resistance Marker: arrow, tomato, width 1, arrow code 234
  • Strong Support Marker: arrow, medium sea green, width 1, arrow code 233
strong support and resistance indicator: Qualified levels with a revisit marked, EURUSD H1.
Qualified levels with a revisit marked, EURUSD H1.

How the source computes it

Collecting pivots

`InpPivotDepth` `3` bars either side define one. Across `InpScanBars` `800` that produces a long list of candidate prices to work from.

Grouping by volatility

`InpATRMultClust` `0.5` times an `InpATRPeriod` `14` range gives the tolerance. Pivots inside that distance join one group, so a fast market groups more loosely than a quiet one.

The counting rule

`InpMinTouches` `3` is the gate. Groups holding fewer are dropped, and `InpMaxLevels` `12` keeps only the best survivors on each side of price.

What the states mean

Every line on screen met the three-touch rule.

Tolerance widens automatically in a fast market.

Markers land where price revisits a kept level.

Twelve is the most you will see per side.

Eight hundred bars is a month on the hourly chart.

Objects carry the `InpObjPrefix` `”SSR_”` prefix.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Price revisiting a kept level is what speaks here. `EnableAlerts` decides whether a touch says anything and `EnablePopup` raises a terminal box already. The push, mail and sound routes behind `SoundFile` all begin switched off.

Every Strong Support And Resistance Indicator input

Core settings

Setting What it does Default
InpPivotDepth fractal depth (bars left/right). Bars either side defining a pivot, `3`. 3
InpATRPeriod ATR period for clustering tolerance. Window behind the range figure, `14`. 14
InpATRMultClust cluster tolerance = mult * ATR. Range multiple used as grouping tolerance, `0.5`. 0.5
InpScanBars bars to scan for pivots. History the scan covers, `800`. 800
InpMinTouches minimum touches to qualify as STRONG. Pivots a group needs to qualify, `3`. 3
InpMaxLevels maximum levels drawn per side. Lines kept per side, `12`. 12
InpExtendRightBars how many bars to extend the line to the right. How far lines run forward, `80`. 80
InpObjPrefix Prefix on every object name, `”SSR_”`. SSR_

Display settings

Setting What it does Default
InpResColor (see inputs panel) tomato
InpSupColor (see inputs panel) medium sea green

Alert settings

Setting What it does Default
EnableAlerts Whether a touch speaks at all, `true`. on
EnablePopup Raises it as a terminal box, `true`. on
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
strong support and resistance indicator: Inputs panel, the touch rule beside the range settings.
Inputs panel, the touch rule beside the range settings.

Which timeframe to use

Eight hundred bars needs a chart where a month of history means something. EURUSD H1 is the reference chart and covers roughly that span. On M5 the scan reaches back less than three days. On H4 it stretches across half a year.

When it will mislead you

Three touches is a threshold, not a verdict.

Grouping by range means levels widen in fast markets.

A level that held ten times can still break.

Twelve lines per side can crowd a chart.

Copy the compiled Strong Support And Resistance Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Related on forexmt4systems.com: Support and Resistance Strategy.

Download the Strong Support And Resistance Indicator for MT4 and MT5

The zip holds the compiled Strong Support And Resistance Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does InpMinTouches 3 actually count?

Separate pivots that landed inside the same tolerance band. Three is the gate, so a price only one or two swings ever reached is discarded no matter how sharp those swings looked at the time.

Why does InpATRMultClust 0.5 scale the tolerance?

Because a fixed pip band would suit one symbol and ruin another. Half a fourteen-bar range adapts on its own, grouping pivots more loosely when the market moves hard and tightly when it is quiet.

When does a Strong Support Marker print?

When a bar’s low comes within the tolerance of a level that already qualified. The mark reports a revisit, not the creation of the level, which happened earlier in the scan.

What is InpExtendRightBars 80 for?

It carries each line eighty bars past its last pivot, so a level stays visible ahead of price rather than stopping where it was found. Purely a drawing setting; it changes no calculation.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Strong Support And Resistance Indicator as one input. Always backtest before trading live.

Category: this is part of our Support and Resistance collection. Browse more Support and Resistance for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment