The Sma trend Indicator is a trend-following tool for MT4 and MT5. Also, it plots directional context straight on the chart so you can stay on the right side of the move and filter out counter-trend noise. Alerts fire the moment the trend read flips.
For more like this, browse the more trend indicators for forex or jump to the full MetaTrader indicator hub.
What the SMA Trend Indicator does on the chart
The internals stay close to widely used math. That keeps the tool predictable. It is easy to debug. Indeed, you can compare it to any other chart platform.
The SMA Trend 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
- Plots a directional reference line on the chart
- Configurable period and method (SMA, EMA, or HMA where applicable)
- Optional colour change on direction flip
- Designed to stay out of the way until the trend changes
- 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 |
|---|---|---|
| Period | Lookback length used to compute the trend reference | 50 |
| Method | Smoothing method for the reference line (SMA, EMA, HMA) | EMA |
| Color flip | Change colour when the direction flips | 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 SMA Trend Indicator

The SMA Trend Indicator highlights the dominant direction over the chosen lookback. Hence, a typical workflow looks like this.
Entry idea (long). Wait for price to pull back to the reference line and resume higher with a strong-bodied candle. Next, wait for the bar to close. Intra-bar values can shift.
Entry idea (short). Wait for price to pull back to the reference line from below and continue lower with a strong-bodied bearish candle. The same close rule applies.
Exit idea. A stop placed beyond the most recent swing point and a target at the next reaction level keeps risk readable from the start. 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 Sma trend Indicator inputs
Start with the defaults, then tune for your market. MAPeriod (default 50) sets the averaging length — raise it for smoother, slower signals or lower it for faster, more sensitive ones; MAMethodSel (default 1) sets the averaging length — raise it for smoother, slower signals or lower it for faster, more sensitive ones; NonRepaint (default true) toggles this behaviour on or off. 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
Sma trend 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 Sma trend for MT4 and MT5
One email unlocks the full library. This Sma trend 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.
Enter your email to receive the indicator file. We send it once and add you to free updates.
No spam. Unsubscribe anytime. We never share your address.
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 NZDUSD on H4.
Built by forexmt4systems.com
This Sma trend 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 Sma trend measure?
It plots a clear signal layer that the Sma trend computes from recent price and volume on the chart.
Is the SMA Trend Indicator non-repaint?
By default the indicator only confirms a signal on the bar close, so the printed signal is fixed 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.
What to watch for
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 SMA Trend 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 background reading on moving averages. Are results guaranteed?
No. Trading involves risk. Results are not guaranteed. Past performance is not indicative of future results. Use the SMA Trend Indicator as one input. Always backtest before trading live.
Authoritative references
- Learn more about moving averages.
- General background on technical indicators.