AI SuperTrend Clustering Oscillator Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

The ai supertrend clustering oscillator indicator claims three things its source does not carry. Nothing clusters, nothing learns, and no model exists anywhere in the file. What ships is a standard SuperTrend whose distance from price becomes a two-colour histogram, which is useful on its own terms.

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

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Separate window (levels 0)
Plots 2: Bull Distance, Bear Distance
Alerts popup, push notification, email, sound
Inputs 8

Its visible parts

Two histogram plots in their own pane.

`Bull Distance` fills lime at width 3.

`Bear Distance` fills red at the same width.

Only one holds a value on any bar.

Zero runs across the middle as a reference.

The trailing level itself is never drawn.

  • Bull Distance: histogram, lime, width 3
  • Bear Distance: histogram, red, width 3
ai supertrend clustering oscillator indicator: The two-colour distance histogram on the EURUSD H4 chart.
The two-colour distance histogram on the EURUSD H4 chart.

What feeds each plot

The level

Standard SuperTrend maths. Take the bar midpoint. Add and subtract `Multiplier` `3.0` times the `AtrPeriod` `10` range. The level then ratchets between those two.

Distance, not side

That is the whole output. Close less the level, in points. Which colour it fills depends on which side the close sits.

About the name

Nothing clusters. No grouping step, no learning, no model. Every value comes from the range maths above.

What each state tells you

Column height is the gap to the level.

Growing columns mean price is pulling away.

Shrinking ones mean the level is catching up.

A colour change is where the level flipped.

Ten bars keeps that level fairly tight.

Height reads in points, so it varies by symbol.

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

Nothing reports unless `EnableAlerts` stays true, and a flip of the level is the one event it watches. `EnablePopup` is on. The app route, the mail route and the audio route are not.

Every AI SuperTrend Clustering Oscillator Indicator input

Core settings

Setting What it does Default
AtrPeriod Ten bars feed the range, `10`. 10
Multiplier The level hangs three ranges off, `3.0`. 3.0

Alert settings

Setting What it does Default
EnableAlerts Nothing reports unless true, `true`. on
EnablePopup A flip raises a dialog, `true`. on
EnablePushNotify A flip reaches the app, `false`. off
EnableEmail A flip goes out as mail, `false`. off
EnableSound A flip plays audio, `false`. off
SoundFile That audio is alert.wav. alert.wav
ai supertrend clustering oscillator indicator: Inputs panel, AtrPeriod above the Multiplier setting.
Inputs panel, AtrPeriod above the Multiplier setting.

Where it works best

EURUSD H4 is the reference chart, chosen so the flips stay readable. A ten-bar range with a three times multiplier flips a few times a month there. Drop to M5 and the colour changes hourly. On H1 it sits between the two.

Where care is needed

The name promises analysis the source does not contain.

A trailing level flips often in a range.

Column height in points cannot compare across symbols.

The level itself stays invisible, so you infer it.

Copy the compiled AI SuperTrend Clustering Oscillator 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 AI SuperTrend Clustering Oscillator Indicator: Average true range on Wikipedia, Average True Range at BabyPips.

Download the AI SuperTrend Clustering Oscillator Indicator for MT4 and MT5

The zip holds the compiled AI SuperTrend Clustering Oscillator 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

Do AtrPeriod and Multiplier feed any clustering?

No. They feed a standard SuperTrend and nothing else. There is no grouping step, no training and no model anywhere in the file, which the name rather oversells.

What do the Bull Distance columns measure?

The gap in points between the close and the trailing level. Tall columns mean price has pulled well clear of the level, short ones mean the level has nearly caught up with price.

How does Multiplier 3.0 affect the flips?

It sets how far the level sits from the bar midpoint. Three ranges is a fairly standard distance; raising it makes flips rarer and later, lowering it makes them frequent and easily triggered.

Why is the trailing level not plotted?

Because this build puts everything in a pane rather than on price. You infer where the level sits from how tall the columns are, which is less direct than seeing the line itself.

Are results guaranteed?

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

Category: this is part of our Oscillators collection. Next, browse more Oscillators 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