Supertrend - ATR based trailing trend indicator (MT4)
Supertrend uses ATR to build a dynamic trailing stop above or below price. The line flips when price closes across it. That makes it a simple way to trade trend continuation, manage stops and filter false breakouts on MetaTrader 4.
What it shows
- Green line below price - uptrend bias. Red line above price - downtrend bias.
- Flip when candle closes across the line - potential regime change.
- Pullback holds if price tests the line and bounces.
- Optional alerts on flips, touches and new extremes.
Trade ideas
- Trend pullback: in an uptrend buy pullbacks that hold above Supertrend and flip back up. Mirror for shorts.
- Breakout validation: after a breakout price should stay on the confirming side of the line.
- Trail stops: move stop to the Supertrend line for rules based exits.
- Multi TF: use higher TF Supertrend for bias and enter on lower TF when it flips with price.
Inputs that matter
- ATR period and ATR multiplier.
- Price source.
- Alert filters for flip and touch.
- Visual style for line and colors.
Suggested usage
- M5-M15: timing and risk control.
- M30-H4: swing continuation and breakout checks.
- Daily+: regime bias and trailing exits.
Installation (MT4)
- Open MetaTrader 4 - File - Open Data Folder.
- Copy
Supertrend Indicator.ex4
to MQL4/Indicators. - Restart MT4 or refresh Navigator and attach Supertrend.
- Adjust inputs - OK.
FAQ
Does it repaint? No on closed bars.
Why ATR? ATR adapts the distance to volatility so the line breathes with the market.
Use in EAs? Yes, via iCustom
.
Disclaimer: Always test on a demo first - risk management matters.