On this page
What this Supertrend indicator does
Supertrend Line 1.03 by EarnForex draws a volatility-based line in the price chart. Green represents its UP calculation state; red represents DOWN. The line can make directional changes easier to notice without adding a separate oscillator window.
Its practical strengths are a simple display, adjustable ATR sensitivity and optional notifications. It is an indicator: it does not place orders or move the stop-loss of an existing trade. A visible line is a reference for analysis, not protection already entered with a broker.
How the line is calculated
The starting bands use the candle midpoint, (High + Low) / 2, plus or minus ATR multiplied by ATRMultiplier. ATR measures range, including gaps from the preceding close. The program obtains ATR from MetaTrader's built-in iATR function.
The current close is compared with the preceding upper and lower bands. A crossing can change the stored direction; otherwise the previous direction can persist. The active band then follows the source code's trailing rules. The latest price and a stored band both matter, so a fresh midpoint envelope alone will not reproduce the line.
Our historical reconstruction uses the published MetaQuotes simple-average ATR reference and the supplied program's band logic. Our separate Supertrend strategy describes a different research baseline with Wilder-style ATR and different initialization. Matching the name or entering 10 and 3 does not establish that the two implementations are identical.
Inputs and original defaults
These are the defaults in both supplied source files. They describe the original program, not settings proven to be optimal. Change one input at a time and compare the same symbol, timeframe and history.
| Input | Default | Practical meaning |
|---|---|---|
IndicatorName | SPRTRND | The short name shown in the chart and alerts. |
ATRMultiplier | 2.0 | Scales the distance of the starting bands from the candle midpoint. |
ATRPeriod | 100 | The ATR lookback in chart candles; 100 H1 candles are not 100 calendar hours. |
ATRMaxBars | 1000 | Limits calculation history. Loading different history or changing this window can change initialization. |
Shift | 0 | Moves the displayed line horizontally. Keep zero when matching readings to their original candle. |
EnableNotify | false | The master switch for notifications. |
SendAlert | false | Enables terminal popup alerts when notifications are enabled. |
SendApp | false | Enables push messages, subject to the terminal's notification setup. |
SendEmail | false | Enables email messages, subject to the terminal's email setup. |
TriggerCandle | Previous | Checks the preceding completed candle. Current instead checks the forming candle. |
Real EUR/USD charts: persistence and repeated changes
The following original charts use archived EURUSD=X hourly quotes from Yahoo Finance. Candle timestamps are UTC. We reconstructed the line with ATRPeriod 100, ATRMultiplier 2, ATRMaxBars 1000 and Shift 0. These are source-based charts, not screenshots of a MetaTrader terminal.



The provider does not identify these quotes as a broker-specific Bid or Ask execution series. Broker candles and terminal calculations can differ. Spreads, fills and trade returns are not measured here. On narrow screens, scroll the chart horizontally.
Download the illustrated readings (CSV) · 1Download the illustrated readings (CSV) · 2
Configure alerts on completed candles
For a terminal alert, set EnableNotify=true and SendAlert=true. Retain TriggerCandle=Previous to check the preceding completed candle. A new closed-candle state is observed when the terminal receives an update; delivery is not guaranteed at the exact closing second.
The program suppresses its initial attachment alert and repeated notifications for an unchanged direction. With TriggerCandle=Current, the forming candle's close, range and ATR can change, so an intrabar state can disappear before the candle finishes.
Push and email also require their corresponding terminal settings. In the supplied code, these messages include the broker company, account name and account number. Enable these channels only if you want those details included in the notification. All notification options are off by default.
Install the MT4 or MT5 version
Choose the archive for your desktop terminal. MT4 uses EX4/MQ4 files and MT5 uses EX5/MQ5 files; these formats are not interchangeable.
- Download and extract the ZIP for your platform.
- In MetaTrader, select File → Open Data Folder, then open MQL4 or MQL5.
- Copy the archive's Indicators and Files folders into that platform folder, preserving their contents. The Files folder contains the original icon used by the source.
- Refresh the Navigator indicator list or restart the terminal. Find MQLTA MT4 Supertrend Line or MQLTA MT5 Supertrend Line under Indicators.
- Attach it to a demo chart. Check the inputs, chart history and Experts/Journal messages before enabling notifications.
The archive includes the original author's compiled file and source code. ForexBestRobots has not recompiled or certified the program in a desktop terminal. Our checks cover file integrity, source behaviour and the historical reconstruction.
Download Supertrend Line 1.03 free
Download directly below. Each ZIP contains the unmodified author-supplied program files, source code, original icon, Apache 2.0 license, installation notes and checksums. No account registration or broker signup is required.
The program remains credited to EarnForex.com. ForexBestRobots provides the review, original charts and packaging notes. The downloaded file and the description above refer to version 1.03.
Free ZIP · v1.03
Read changes and limitations correctly
A completed colour change does not establish a lasting trend or a profitable entry. Ranging conditions can produce several opposite states; wider bands or a longer ATR period also introduce different tradeoffs. Assess any entry, exit and risk rules separately.
The MT4 version uses two line buffers and can add a connection point on the preceding candle when direction changes. The MT5 version uses a coloured line and an additional direction buffer. A changed historical line segment is not automatically a newly available earlier signal. We do not describe these versions with an unconditional 'never repaints' claim.
Keep Shift=0 and compare completed candles with the same feed, available history and inputs. The calculation cap and initialization can affect a fresh reconstruction. If a line differs, first inspect those definitions rather than assuming a software fault.
Frequently asked questions
Is the download really free?
Yes. These packages are distributed under Apache 2.0 and include the license and original attribution. No registration is required on ForexBestRobots.
What are the best Supertrend settings?
No universal best values are established here. The supplied defaults are 100 and 2.0. Test the complete trading rules, costs and data before comparing other settings.
Does Previous prevent every historical change?
It selects a completed candle for notifications. It does not remove the MT4 line-joining behaviour, history corrections or changes caused by a different calculation window.
Can this indicator manage my stop-loss?
It displays a line and can send alerts. It does not place or modify an actual protective order.
Can I use one file in both platforms?
No. Download the MT4 archive for MetaTrader 4 or the MT5 archive for MetaTrader 5. Keep each program with its own platform.
Sources and review scope
We inspected version 1.03 and matched its source and icon files to the author's licensed repository. The original compiled files are preserved. Calculations were checked with two implementations on the archived quote sample; this is not a native terminal execution test or a strategy backtest.