SuperTrend Bar MTF Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

Checking four charts means opening four windows. The supertrend bar mtf indicator collapses that into one pane: it runs the same trailing-stop calculation on M15, H1, H4 and D1, and draws each answer as a thick coloured bar stacked at its own height.

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 Separate window (levels 1 / 2 / 3)
Plots 8: M15 Up, M15 Dn, H1 Up, H1 Dn, H4 Up, H4 Dn, D1 Up, D1 Dn
Alerts popup, push notification, email, sound
Inputs 8

What you get on the chart

Eight histograms, in a pane below price.

`M15 Up` and `M15 Dn` sit on the lowest row.

`H1 Up` and `H1 Dn` sit above them.

`H4 Up` and `H4 Dn` come next.

`D1 Up` and `D1 Dn` occupy the top row.

Lime green means up, crimson means down.

  • M15 Up: histogram, lime green, width 6
  • M15 Dn: histogram, crimson, width 6
  • H1 Up: histogram, lime green, width 6
  • H1 Dn: histogram, crimson, width 6
  • H4 Up: histogram, lime green, width 6
  • H4 Dn: histogram, crimson, width 6
  • D1 Up: histogram, lime green, width 6
  • D1 Dn: histogram, crimson, width 6
supertrend bar mtf indicator: The four-row stack in agreement, EURUSD H1.
The four-row stack in agreement, EURUSD H1.

How the numbers arrive

The trailing calculation

Each chart gets the same treatment. The midpoint between a bar’s high and low, plus and minus `InpMultiplier` `3.0` times an `InpAtrPeriod` `10` range, gives two candidate stops.

Which one holds

The previous close decides. While price stays above the trail it follows underneath and only ever ratchets up; a close below it flips the state and the trail moves overhead.

Stacking four answers

Each timeframe writes into its own pair of buffers at a fixed height. The pane runs from zero to five, so four rows fit without overlapping.

What each state tells you

Four rows of one colour is full agreement.

A split stack means the timeframes disagree.

The bottom row turns first by construction.

The top row changes rarely.

Bar height is a position, not a value.

Each row reads its own chart’s closed bars.

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

A row changing state is what reports. `EnableAlerts` decides whether it speaks and a window already pops on the terminal, while the phone buzz, the mail route and the file named by `SoundFile` all begin closed.

Every Supertrend Bar Mtf Indicator input

Core settings

Setting What it does Default
InpAtrPeriod Bars in the range figure on every chart, `10`. 10
InpMultiplier Ranges the trail sits from the midpoint, `3.0`. 3.0

Alert settings

Setting What it does Default
EnableAlerts Whether a row flipping speaks, `true`. on
EnablePopup A window pops on the terminal, `true`. on
EnablePushNotify The phone buzzes instead, `false`. off
EnableEmail It leaves through mail, `false`. off
EnableSound The machine plays a file, `false`. off
SoundFile The file it plays, `”alert.wav”`. alert.wav
supertrend bar mtf indicator: Inputs panel, two settings above the routes.
Inputs panel, two settings above the routes.

Getting the chart right

Four fixed rows mean the chart you open matters less than usual. EURUSD H1 is the reference chart and sits in the middle of the stack. Load it on D1 and three rows describe charts faster than the one you are watching.

Its blind spots

A trailing stop lags every turn it follows.

Four rows agreeing usually means the move is mature.

Multiplier three is wide, so flips come late.

Row height carries no information beyond identity.

Copy the compiled Supertrend Bar Mtf 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.

Background reading on the method behind the Supertrend Bar Mtf Indicator: Trailing Stop at Investopedia, Average true range on Wikipedia.

Download the Supertrend Bar Mtf Indicator for MT4 and MT5

The zip holds the compiled Supertrend Bar Mtf 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 makes an M15 Up row flip to M15 Dn?

A close on the fifteen-minute chart finishing below the trail that was sitting underneath it. The row then swaps buffers, and the trail begins following price from overhead instead.

Why does InpMultiplier 3.0 make flips late?

Three ranges is a wide gap. Price has to travel that far against the trend before it breaches the trail, which avoids small shakeouts at the cost of giving back a good deal of any move.

Does the D1 Up row sit high for a reason?

Only to keep it separate. Each timeframe writes at its own fixed level so four rows fit without overlapping, and the pane runs from zero to five for exactly that reason.

Should InpAtrPeriod 10 differ per timeframe?

It cannot here; one setting feeds all four. Ten bars means something different on M15 than on D1, which is part of why the rows turn at such different rates.

Are results guaranteed?

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

Category: this is part of our Trend collection. Browse more Trend 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