The Trend Line Indicator maps key support and resistance zones onto your MT4 and MT5 chart. Also, it marks the price areas where reversals and breakouts tend to happen, so you can plan entries, stops and targets around real structure rather than guesswork.
For more like this, browse the more support-resistance indicators for forex or jump to the full all MetaTrader indicators.
What the Trend Line Indicator does on the chart
The logic is simple. No machine learning. No curve fitting. Indeed, no hidden lookahead. The indicator reads the bars and outputs a single visual you can read at a glance.
The Trend Line Indicator reads price, volume, and recent bar structure. Still, it plots the result on the chart. You can read it at a glance. Thus, it is built for MT4 and MT5. You drag it onto any chart in one step.
Key features and settings
- Auto-draws levels from recent swing structure
- Configurable lookback to focus on minor or major levels
- Levels persist until invalidated by a confirmed break
- Light footprint that does not crowd the chart
- Full alert system: popup, push notification to mobile MetaTrader, email, and sound — all four channels can be toggled independently from the inputs panel. Alerts fire once per closed bar so you never get spammed mid-tick.
- Built for MT4 and MT5; works on every timeframe the platform supports.
- Lightweight code that does not slow down the chart.
| Setting | Description | Recommended default |
|---|---|---|
| Lookback | How far back to scan for swing levels | 200 bars |
| Min strength | Minimum touches required for a level to plot | 2 |
| Auto-extend | Extend levels to the right edge of the chart | On |
| Color theme | Switch between dark and light chart palettes | Dark |
| Show on chart | Toggle the on-chart visual without removing the indicator | On |
How to read signals from the Trend Line Indicator

The Trend Line Indicator highlights horizontal zones where price has reacted in the past. Hence, a typical workflow looks like this.
Entry idea (long). Wait for price to test a marked level from above, hold, and print a rejection candle. Next, wait for the bar to close. Intra-bar values can shift.
Entry idea (short). Wait for price to test a marked resistance from below, hold, and print a rejection candle. The same close rule applies.
Exit idea. Trailing the stop along the indicator itself works for trends; a fixed multiple-R target works for range setups. Some traders trail with structure. Others trail with the indicator itself.
These are concepts, not rules. Then, backtest on your instrument and timeframe before live capital.
Tuning the Trend Line Indicator inputs
Start with the defaults, then tune for your market. FractalDepth (default 5) tunes how the calculation behaves; AutoExtend (default true) toggles this behaviour on or off; AtrPeriod (default 14) sets the averaging length — raise it for smoother, slower signals or lower it for faster, more sensitive ones. Yet, every alert channel — pop-up, sound, email and mobile push — toggles independently in the same inputs panel, and alerts fire once per closed bar.
Recommended timeframes and instruments
Trend Line Indicator reads best on the higher timeframes, where direction is cleaner and false turns are fewer.
- H1 and H4 for intraday trend trading.
- Daily for the dominant bias and swing setups.
On M5 to M15 expect more whipsaw, so raise the period to compensate. Truly, it suits trending majors such as EURUSD and USDJPY and indices like US30 and NAS100.
How to install on MT4 and MT5

Installation is the same for every indicator on this site. Plainly, unzip the download, copy the compiled .ex4 into your MT4 MQL4/Indicators folder (or the .ex5 into MT5 MQL5/Indicators), refresh the Navigator, then drag it onto the chart. For the full step-by-step with alert setup and troubleshooting, see our guide to installing MT4 and MT5 indicators.
Best practices and tips
- Trade in the direction of the higher-timeframe trend and avoid counter-trend signals.
- Use the strength filter to skip weak, ranging conditions.
- Wait for the bar to close before acting on a signal.
- Backtest your configuration on at least 200 closed bars before trading live.
- Keep position sizing small while you learn how the tool behaves on your instrument.
- Review your results weekly and prune settings that underperform.
Get the Trend Line for MT4 and MT5
One email unlocks the full library. This Trend Line Indicator plus the other 1,382 free MT4, MT5 and TradingView indicators we publish and maintain. Also, no paywall, no upsell, same opt-in for all of them – you give an email once and you can grab every tool we ship.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
Enter your email and the file lands in your inbox right after. The download is free.
Related on forexmt4systems.com: MACD Trend Following Strategy for AUDUSD on H1.
Built by forexmt4systems.com
This Trend Line Indicator is one of 1,383 free MT4, MT5 and TradingView indicators we publish and maintain. Indeed, every tool ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files, a 4-channel alert system (popup + mobile push + email + sound), and is loaded on EURUSD H1 before release to confirm it draws cleanly without repainting. The same one-step email opt-in below unlocks the entire library – not just this one indicator.
FAQ
What does the Trend Line measure?
It auto-draws diagonal trend lines from recent swing points.
Is the Trend Line Indicator non-repaint?
By default the indicator only confirms a signal on the bar close, so the printed signal locks once that bar closes. Still, some users prefer the early intra-bar mode for faster signals — both options are in the inputs.
Which timeframe should I use?
There is no single best timeframe. Thus, m15 to H1 is a common starting point for intraday traders, and H4 to D1 works for swing traders. Backtest the configuration on the timeframe you actually trade.
Does it work on instruments other than forex?
It works on any instrument MT4 and MT5 supports — forex majors, gold (XAUUSD), indices like US30 and NAS100, and major cryptos. Hence, fast-moving instruments may need a smaller period setting.
Reading the signals
Can I add alerts?
Yes. Next, Pop-up, sound, push, and email alerts can be toggled in the inputs. On MT4 and MT5 the alert plays on the bar close that triggers the signal. Then, the Trend Line Indicator ships with full alert functionality built in: popup alerts on the chart, push notifications to mobile MetaTrader, email alerts, and a sound alert with a configurable .wav file. Each channel is toggled independently from the inputs panel (EnableAlerts, EnablePopup, EnablePushNotify, EnableEmail, EnableSound). Yet, alerts trigger once per closed bar.
For external background reading, see the support and resistance basics. Are results guaranteed?
No. Trading involves risk. Results are not guaranteed. Past performance is not indicative of future results. Use the Trend Line Indicator as one input. Always backtest before trading live.
Category: this is part of our Support and Resistance collection. Browse more Support and Resistance for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- The core method is documented in Foreign Exchange Committee on Wikipedia.
- Additional market context is at Nyse Arca Equity Indices at StockCharts ChartSchool.
