SuperTrend Signal Alerts MT4
- Indicatori
-
Allan Aparece Ninal
Sviluppo indicatori ed Expert Advisor per MetaTrader 5.
Come lavoro:
- Ogni indicatore viene controllato contro il repainting: i segnali vengono decisi solo su barre chiuse, e un test su ogni tick conferma che non cambiano in seguito. - Versione: 1.1
- Aggiornato: 6 novembre 2026
SuperTrend Signal Alerts MT4 is a free SuperTrend indicator for MetaTrader 4. It colours the trend line blue or red, puts a buy or sell arrow on every trend change and sends alerts, with optional EMA and RSI filters on the arrows.
It places no trades and does not touch your orders. Arrows and alerts come from closed bars, so a signal never appears and then disappears. The calculation follows the SuperTrend indicator as published on TradingView.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
MetaTrader 4 edition: the same calculation and the same arrows as the MetaTrader 5 version. Only the arrow distance is set as a fraction of ATR, because MetaTrader 4 cannot shift arrows by pixels.
Quick start
- Attach it to any chart and timeframe. The defaults are ATR period 10 and ATR multiplier 3.0.
- Change ATR multiplier to tune it: lower flips sooner and more often, higher flips later. Optionally switch on Only signals with the EMA trend and Buy only RSI above 50, sell only below.
- Pop-up and push alerts are on. Switch on Play a sound or E-mail if you want them. Push needs your MetaQuotes ID under Tools, Options, Notifications.
What you see on the chart
- A SuperTrend line: blue below price in an uptrend, red above price in a downtrend.
- A buy arrow below the candle when the trend turns from down to up.
- A sell arrow above the candle when the trend turns from up to down.
- A dotted EMA line when the EMA filter is on.
How the signal is built
- Each bar gets two bands: its middle price plus and minus the multiplier x ATR.
- While price stays on one side, the lower band can only rise and the upper band can only fall, so the line never steps back.
- When a bar closes beyond the opposite band, the trend flips and the line jumps to the other band.
- That bar gets the arrow, shown from the first tick of the next bar. The forming bar never shows one, and a closed bar's arrow does not change.
- With the filters on, a buy arrow also needs the close above the EMA and RSI above 50. A sell arrow needs the close below the EMA and RSI below 50. The line itself stays the plain SuperTrend.
Who it is for
For traders who follow trends and want the flip points marked and alerted on any symbol and timeframe (forex, metals, indices, crypto. M1 to MN1). Not for those who expect early entries: a trend-following line turns after the move has started, and in sideways markets it can flip often.
Inputs
| Input | Default | What it does |
|---|---|---|
| ATR period | 10 | Length of the ATR. |
| ATR multiplier | 3.0 | Distance of the bands in ATRs. Lower flips sooner and more often, higher flips later. |
| ATR method | RMA / Wilder | RMA, or SMA of the true range. |
| Only signals with the EMA trend | off | EMA filter on arrows and alerts. |
| EMA period | 200 | Length of the trend EMA. |
| Draw the EMA | on | Shows the EMA when the filter is on. |
| Buy only RSI above 50, sell only below | off | RSI filter on arrows and alerts. |
| RSI period | 14 | Length of the RSI. |
| Draw the SuperTrend line | on | Turn off to keep only the arrows. |
| Arrow distance from the candle | 0.3 | Gap as a multiple of ATR. |
| Pop-up alert | on | Alert window in the terminal. |
| Play a sound | off | Plays the sound file below. |
| Sound file | alert.wav | File from the terminal Sounds folder. |
| Push notification | on | Needs your MetaQuotes ID. |
| off | Needs e-mail set up in the terminal options. | |
| Debug log for bug reports | false | Found a problem? |
Alerts and Expert Advisor use
One alert per closed-bar signal. None is sent while the history loads or in the Strategy Tester. Buffers for iCustom: 0 SuperTrend line, 1 blue part of the line, 2 buy arrow, 3 sell arrow, 4 red part of the line, 5 EMA line.
How it was checked
- Code check: an every-tick run on EURUSD H1 with default inputs found 0 arrows that changed after their bar closed and 0 on the live bar. The run covered 8,417,316 ticks, 4,812 closed bars and 132 arrows.
- This covers repainting only. It does not show that signals pay off.
Starting settings
The defaults (period 10, multiplier 3.0) are a starting point, not a tuned set. Test any change on your own symbol and timeframe.
FAQ
- Does it repaint? The forming bar's line moves with price. Once a bar closes, its arrow and alert stay.
- Can I try it first? Yes, in the Strategy Tester in visual mode.
- Does it work on gold and crypto? Yes, on any symbol. The ATR sets the band distance.
- Will it alert my phone? Yes, with the push input and your MetaQuotes ID.
- Do the filters change the line? No, only which arrows and alerts appear.
- Can I keep only the arrows? Yes, turn off Draw the SuperTrend line.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Gold Trend Sentinel MT4 | Put the indicator on the H4 chart of the EA. | You see a SuperTrend line like the one in the EA's trend filter. |
| Risk Position Tool MT4 | Pick the trade from the chart, then drag the entry and stop lines. The tool gives the lot for your risk. | It separates where you enter from how much you risk. The tool places no orders. |
| Session Levels MT4 | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
Related products
- SuperTrend Signal Alerts: the same indicator for MetaTrader 5.
- All my products on MQL5
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading carries risk, and past chart behaviour is not a forecast. Use your own risk management.
