UT Bot Signal Alerts
- インディケータ
- バージョン: 1.0
UT Bot Signal Alerts is a trend indicator for MetaTrader 5 that draws an ATR trailing stop line and 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. It is based on the UT Bot Alerts script known from TradingView and uses the same maths.
What you see on the chart
- A stop line that trails the close at key value x ATR, 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.
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, no exit and no results.
Inputs
- 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.
- Pop-up alert - on; Play a sound - off (sound file alert.wav); Push notification - off; E-mail - off.
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. Read the values on closed bars (shift 1 and higher).
How it was checked
- Code check: an every-tick run on EURUSD H1 with default inputs (10,411,052 ticks, 4,644 closed bars, 559 arrows) found 0 arrows that changed after their bar closed and 0 on the live bar.
- 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.
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.
Questions: use the comments on this page or send me a message on MQL5.
UT Bot Scanner MT5, a separate paid indicator, runs the same calculation across many symbols and timeframes in one panel.
Trading carries risk, and a chart signal is not a forecast. Use your own analysis and risk management.
