The non repaint supertrend indicator takes the classic ATR banded trend follower and adds one discipline: it never evaluates the forming bar. Supertrend Up and Supertrend Dn trail the active band, and BUY and SELL arrows mark each flip once the bar producing it has closed.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 4: Supertrend Up, Supertrend Dn, BUY, SELL |
| Alerts | popup, push notification, email, sound |
| Inputs | 9 |
What the Non repaint supertrend Indicator draws on the chart
Supertrend Up trails below price while the trend reads long.
Supertrend Dn sits above it while the trend reads short.
BUY marks the bar where the trend flips upward.
SELL marks the flip the other way.
- Supertrend Up: line, dodger blue, width 2
- Supertrend Dn: line, crimson, width 2
- BUY: arrow, lime, width 3, arrow code 233
- SELL: arrow, red, width 3, arrow code 234

How the Non repaint supertrend Indicator calculates its values
Building ATR by hand
A true range gets computed per bar, seeded with a simple average over AtrPeriod and then smoothed the Wilder way forward from there.
Doing it in the file rather than calling the platform routine means the warm-up behaviour is explicit and the same on every chart.
Locking the final bands
The raw bands are the bar median plus and minus Multiplier times ATR. Those move freely and never reach a plot.
Each final band then locks against its own previous value and may only move in the tightening direction. That lock turns a band into a trailing line.
Skipping the forming bar
The trend flips when a close crosses the opposite final band, and the check only ever runs on bars that have already finished.
The still-forming candle never enters the check. That separates this from a build where an arrow can appear mid bar and vanish before the close.
How to read the signals
Which side the line sits on is the current state: below price reads long, above reads short.
The distance from price is the room Multiplier currently allows, not a target.
An arrow only appears once its bar has closed, so expect it one bar later than a repainting build would show it.
Between flips the line simply trails, tightening but never loosening.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
Messages reach you by popup, push, email and sound on each flip. The code stamps the bar time first, so one closed bar produces at most one message.
Every Non repaint supertrend Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
AtrPeriod |
ATR lookback for band width. AtrPeriod is the true range window behind band width. It defaults to 10. | 10 |
Multiplier |
ATR multiplier for band offset. Multiplier is how many ATRs each band sits from the median, 3.0 by default. Lowering it towards 2.0 tightens the trail and produces more flips. | 3.0 |
Display settings
| Setting | What it does | Default |
|---|---|---|
ArrowOffsetPts |
Arrow placement offset (points). ArrowOffsetPts spaces a flip marker from its candle, 20 points by default. | 20 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
EnableAlerts gates the message block and defaults to true. | on |
EnablePopup |
(see inputs panel) | on |
EnablePushNotify |
(see inputs panel) | off |
EnableEmail |
(see inputs panel) | off |
EnableSound |
(see inputs panel) | off |
SoundFile |
(see inputs panel) | alert.wav |

Settings that fit your chart
The screenshot uses EURUSD H1. A ten bar ATR at three times is a wide setting that suits instruments trending for a stretch before resting. H1 and H4 give the lock time to work. On M5 the flips arrive often enough that the trailing behaviour never develops.
When the Non repaint supertrend Indicator fails
Waiting for the close costs a bar. A repainting build shows the flip sooner and sometimes takes it back, which is the trade here.
In a sideways market the line flips repeatedly and each flip costs the band width.
Band distance follows ATR, which expands after a fast move rather than before one.
A trailing line reacts and never predicts. The flip lands after price has already crossed.
Copy the compiled Non repaint supertrend Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Background reading on the method behind the Non repaint supertrend Indicator: Swap rate on Wikipedia, Parabolicindicator at Investopedia.
Download the Non repaint supertrend Indicator for MT4 and MT5
The zip holds the compiled Non repaint supertrend Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
Can a printed BUY arrow disappear on the next tick?
No. Every flip check runs on bars that have already closed, so once an arrow prints the values behind it can no longer change. A build that evaluates the forming candle can show an arrow mid bar and remove it before that bar closes.
What does skipping the forming bar cost in Multiplier terms?
One bar of delay. A repainting build shows the flip as soon as price crosses intrabar, which is sooner and sometimes wrong. Waiting for the close means the arrow you see is the arrow that stays, and you pay a bar for that certainty.
Why build ATR in the file rather than calling the platform?
So the warm-up is explicit. The code seeds with a simple average over AtrPeriod and then smooths the Wilder way forward, which means the early values behave the same on every chart rather than depending on how much history happens to be loaded.
What does locking the Supertrend Up band achieve?
Each band gets compared against its own previous value and may only move in the tightening direction. So while the trend reads long the lower band can rise with price but never fall back. That ratchet is what turns a band into a trailing line.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Non repaint supertrend Indicator as one input. Always backtest before trading live.
Category: this is part of our Trend collection. Browse more Trend for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- For background on this concept, see Swap rate on Wikipedia.
- For broader market context, see Parabolicindicator at Investopedia.
