Half Trend ADX
- 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.1
- Atualizado: 3 novembro 2026
- Ativações: 5
Half Trend ADX is a trend indicator for MetaTrader 5. 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.
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 and push alerts are on. Switch on Play a sound 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 | 12 | Gap in pixels. |
| 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 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 on EURUSD H1, January to October 2026, 4,644 bars and 102 signals. No signal changed after its bar closed and none appeared on the live bar.
- Code check: line, channel, ADX and every arrow matched an independent reference calculation on EURUSD, GBPJPY, XAUUSD and BTCUSD on M15, H1 and H4.
- 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.
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. |
| Signal Trader Pro | Choose Half Trend as the source and put this indicator on the same chart. | You see the arrows the EA reads. No preset is validated for this source. |
Stacking more indicators was not found to improve results in my gold tests, so I do not suggest it.
Related products
- Half Trend ADX MT4: the same indicator for MetaTrader 4.
- SuperTrend Signal Alerts: free trend-flip arrows on closed bars, with optional EMA and RSI filters and the same alert channels.
- UT Bot Signal Alerts: free buy and sell arrows from a trailing line, on closed bars, with the same alert channels.
- Signal Trader: an Expert Advisor that trades the UT Bot, SuperTrend, Range Filter or Half Trend signal. The calculation is built in.
- Confluence Dashboard: a dashboard of eight checks across many symbols; Half Trend is one of them (off by default).
- Confluence Signal Alerts: the same eight checks on one chart, as a free card with arrows.
- Repaint and Signal Scorecard: a free indicator that checks whether another indicator's signals repaint and how they did on history.
- Indicator Arrow Trader: a free EA that trades the buy and sell buffers of an indicator you name.
- All my products on MQL5
Custom work
Want an EA that trades this indicator, a custom version of it, or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
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 of loss, and past behaviour of an indicator says nothing about the future.
