UT Bot Signal Alerts
- Indicadores
-
Allan Aparece Ninal
Desenvolvo indicadores e Expert Advisors para o MetaTrader 5.
Como trabalho:
- Cada indicador é verificado quanto a repintura: os sinais são decididos apenas em barras fechadas, e um teste tick a tick confirma que não mudam depois. - Versão: 1.2
- Atualizado: 26 novembro 2026
UT Bot Signal Alerts is a trend indicator for MetaTrader 5 that draws an ATR trailing stop line. It puts a buy or sell arrow on the bar where the close crosses it, with pop-up, sound, push and e-mail alerts.
It is a charting tool. It places no trades and does not touch your orders. Arrows and alerts come from closed bars only. The arrow of a closed bar does not repaint.
It is based on the UT Bot Alerts script known from TradingView and uses the same maths.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
Quick start
- Attach the indicator to any chart (any symbol, M1 to MN1).
- Set Key value (default 1.0; a higher value gives fewer arrows) and ATR period (default 10).
- Pop-up and push alerts are on by default. Turn 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 stop line that trails the close at key value x ATR. It is blue while the close is above it and red while the close is below it.
- An up arrow under the candle when the close crosses above the stop line (buy).
- A down arrow over the candle when the close crosses below the stop line (sell).
- An optional dotted EMA line, shown only when the EMA filter is on.
- Stop and target marks for each arrow: a thin dotted red stop line and a dotted green target line from the signal bar until price touches one of them or the next arrow comes, with a price tag on each while it is live. The stop is the UT Bot line at the signal (or a multiple of ATR you set), and the target is a multiple of that stop distance (2 by default). The alert gives both prices. They are set on the closed signal bar and do not move.
How the signal is built
- In an uptrend the line can only move up, in a downtrend only down, so it never steps back against the trend.
- ATR is Wilder's, seeded with a simple average of the first values, as TradingView computes it.
- A signal is created only when a bar has closed with its close beyond the stop line.
- The arrow and the alert appear on the first tick of the next bar and do not change afterwards. The bar that is still forming never shows an arrow.
- Optional: use the Heikin Ashi close as the source, and keep only the signals that agree with an EMA trend.
Who it is for
For traders who want a simple trailing-stop trend line with alerts on any symbol and timeframe (forex, metals, indices, crypto; M1 to MN1). Not for anyone looking for a ready trading system: it gives no entry size and no results. The stop and target marks show levels for each signal; they are not a tested exit rule.
Inputs
| Input | Default |
|---|---|
| Key value | 1.0 - ATR multiple. A higher value keeps the line further from price, so there are fewer arrows. |
| ATR period | 10 - length of the ATR. |
| Use the Heikin Ashi close as the source | off - calculates on the Heikin Ashi close instead of the normal close. |
| Only signals with the EMA trend | off - buy arrows only above the EMA, sell arrows only below it (the EMA is drawn when on). |
| EMA period | 200 - length of the trend EMA. |
| Draw the EMA | on - shows the EMA when the filter is on. |
| Draw the stop line | on - turn off to keep only the arrows. |
| Arrow distance from the candle | 12 - pixels. |
| Mark the stop and target of each signal | on |
| Stop, x ATR | 0 - the UT Bot line at the signal (key value x ATR away). Set a value to use a multiple of ATR from the close instead. |
| Target, x the stop distance | 2.0 - 0 = no target. |
| Pop-up alert | on |
| Play a sound | off (sound file alert.wav) |
| Push notification | on |
| off | |
| Debug log for bug reports | false |
Alerts and Expert Advisor use
One alert per closed-bar arrow, and none while the history loads. For push alerts, set your MetaQuotes ID under Tools, Options, Notifications and turn on Push notification in the inputs. Buffers for iCustom: 0 stop line, 1 line colour index, 2 buy arrow, 3 sell arrow, 4 EMA line, 5 stop mark, 6 target mark. Read the values on closed bars (shift 1 and higher). Alerts do not fire in the Strategy Tester.
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 10,411,052 ticks, 4,644 closed bars and 559 arrows.
- This shows the arrows do not repaint. It says nothing about whether a signal is profitable.
Starting settings
The defaults (key value 1.0, ATR period 10) are a starting point, not a recommendation for any symbol. Check any change on your own symbol and timeframe.
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 |
|---|---|---|
| Risk Position Tool | 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 | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
| Gold Trend Sentinel or Signal Trader | Put the indicator on the chart of the EA with the same inputs (for Gold Trend Sentinel: key value 1.5, ATR period 10). | You see the UT Bot line the EA acts on. The EAs have it built in, so the indicator is optional. |
Related products
- UT Bot Signal Alerts MT4: the same indicator for MetaTrader 4.
- Gold Trend Sentinel: a gold Expert Advisor whose entry uses the UT Bot line (key value 1.5, ATR period 10).
- Signal Trader: an Expert Advisor that trades the UT Bot, SuperTrend, Range Filter or Half Trend signal. The calculation is built in.
- All my products on MQL5
FAQ
- Does it repaint? The stop line of the forming bar moves with price, as with any indicator. A closed bar's arrow and alert do not change.
- Can I try it first? Yes, in the Strategy Tester in visual mode, on any symbol.
- Does it work on gold and crypto? Yes, on any symbol the terminal provides, with the stop distance set by ATR.
- Will it alert my phone? Yes, with the Push notification input and your MetaQuotes ID.
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 a chart signal is not a forecast. Use your own analysis and risk management.
