Half Trend ADX MT4
- Индикаторы
-
Allan Aparece Ninal
Я разрабатываю индикаторы и советники (Expert Advisors) для MetaTrader 5.
Как я работаю:
- Каждый индикатор проверяется на перерисовку: сигналы определяются только на закрытых барах, а тест на каждом тике подтверждает, что они потом не меняются. - Версия: 1.0
- Активации: 5
Half Trend ADX MT4 is a trend indicator for MetaTrader 4. It draws a trend line with buy and sell arrows where the trend turns, sends alerts, and can skip weak turns with an ADX filter.
It is an indicator, not a trading system: it places no orders and manages no trades. Arrows and alerts come from closed bars and do not repaint.
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, line, arrows, channel, ADX filter, alerts and buffers 0-6 as the MetaTrader 5 version. Only the arrow distance is set as a fraction of ATR(14), because MetaTrader 4 cannot shift arrows by pixels. The arrow buffers hold the arrow's price, that distance below the low or above the high.
Quick start
- Attach it to any chart. The defaults are Amplitude 2 and the ADX filter on with Minimum ADX for a signal 25.
- Raise Amplitude or Minimum ADX for fewer arrows, lower them for more.
- Pop-up alerts are on. Switch on Play a sound, Push notification or E-mail if you want them. Push needs your MetaQuotes ID in the terminal options.
What you see on the chart
- Half Trend line: blue while the trend is up, red while it is down.
- Buy and sell arrows: one arrow on the bar where the trend turned.
- ATR channel: two optional dotted lines around the trend line.
- ADX value: shown in the Data Window and available as a buffer.
How the signal is built
- In an up trend the line rides under the recent lows and can only rise. In a down trend it rides over the recent highs and can only fall. "Recent" means the last Amplitude bars.
- The trend turns down when the average high of those bars drops below the line and the close breaks the previous bar's low. It turns up in the mirror case.
- A turn is judged on a closed bar. The forming bar never carries an arrow, and a closed bar's arrow does not change.
- With the ADX filter on (the default), the arrow and its alert appear only if ADX(14) on that bar is at least the minimum (default 25). The line itself always follows the trend.
Who it is for
For traders who read trend turns on the chart, or build their own rules or Expert Advisor on an indicator. Not for anyone looking for an automatic trading robot.
Inputs
| Input | Default | What it does |
|---|---|---|
| Amplitude | 2 | Bars in the high/low window. Larger values give fewer, slower turns. |
| Channel deviation | 2.0 | Channel width as a multiple of ATR(100) / 2. |
| Only show signals when ADX is strong | on | Turns the ADX filter on or off. |
| ADX period | 14 | Period of the ADX calculation. |
| Minimum ADX for a signal | 25 | Turns below this ADX are skipped. |
| Draw the Half Trend line | on | Shows or hides the line. |
| Draw the ATR channel | on | Shows or hides the channel. |
| Arrow distance from the candle | 0.3 | Gap as a fraction of ATR(14). |
| 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 | off | Needs your MetaQuotes ID. |
| off | Needs e-mail set up in the terminal options. |
Alerts and Expert Advisor use
One alert per signal, sent when the bar closes. None is sent twice for the same bar, while the history loads or in the Strategy Tester.
Buffers: 0 Half Trend line, 1 line colour (0 up, 1 down), 2 buy arrow (the bar's low), 3 sell arrow (the bar's high). Buffers: 4 channel upper, 5 channel lower, 6 ADX. Empty values are EMPTY_VALUE. Read buffers 2 and 3 from bar 1, the last closed bar, backwards.
Starting settings
The starting settings screenshot shows four presets, one per timeframe: M15 (Amplitude 3, Minimum ADX 30), H1 (2, 25), H4 (2, 20) and D1 (1, 20). They differ in how many arrows they give, not in how well they trade. None is optimised. Arrows per month, counted from October 2023 to October 2026 on EURUSD, GBPUSD, USDJPY and XAUUSD.
| Timeframe | Arrows per month |
|---|---|
| M15 | 13 to 15 |
| H1 | about 10 |
| H4 | about 4 |
| D1 | about 1 |
How it was checked
- Code check: an every-tick run in the MetaTrader 4 Strategy Tester on EURUSD H1, 2026: 8,417,316 ticks, 4,812 closed bars and 109 signals. No signal changed after its bar closed and none appeared on the live bar.
- Code check: in the MetaTrader 4 Strategy Tester, the line, channel, ADX and every arrow matched an independent reference calculation. That covers 37 runs on EURUSD, GBPJPY, XAUUSD and BTCUSD, M15, H1 and H4, with three settings.
- These checks show the indicator behaves as described. They do not show that the arrows are profitable.
FAQ
- Does it repaint? Arrows and alerts are decided at bar close and do not change afterwards. The line and channel can move on the forming bar.
- Can I try it first? The Market demo runs in the Strategy Tester, in visual mode, only.
- Does it work on gold and crypto? It runs on any symbol and timeframe. XAUUSD and BTCUSD were part of the checks above.
- Can I get alerts on my phone? Yes, switch on Push notification and set your MetaQuotes ID in the terminal.
- Do I need the ADX filter? No. Switch it off for an arrow on every turn.
Related products
- Half Trend ADX: the same indicator for MetaTrader 5.
- SuperTrend Signal Alerts MT4: free trend-flip arrows on closed bars, with optional EMA and RSI filters and the same alert channels.
- UT Bot Signal Alerts MT4: free buy and sell arrows from a trailing line, on closed bars, with the same alert channels.
- All my products on MQL5
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 of loss, and past behaviour of an indicator says nothing about the future.
