Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Download Supertrend Indicator for MT4 and MT5 platform

4 min read

This page is a free Supertrend MT4 MT5 download: one zip file with the Supertrend indicator for MetaTrader 4 (SuperTrend.mq4) and MetaTrader 5 (SuperTrend.mq5), plus step by step installation instructions. Supertrend is a trend following line built from the average true range (ATR); it sits below price in an uptrend and above price in a downtrend, and both files use the common default of a 10 period ATR with a multiplier of 3.

Download Supertrend indicator for MT4 and MT5 Platform and installation guidelines.

Key takeaways
  • The zip contains SuperTrend.mq4 for MetaTrader 4 and SuperTrend.mq5 for MetaTrader 5; both default to ATR period 10 and multiplier 3.
  • On MT4 build 600 and later (and on all MT5 builds), copy the file through File > Open Data Folder, not into Program Files.
  • Open the file in MetaEditor and compile it (F7) if it does not appear in the Navigator.
  • The MT4 version uses fixed 5,000 element arrays, so keep Max bars in chart below 5,000 to avoid an “array out of range” error.
  • Indian residents should use MetaTrader only with entities permitted under FEMA; RBI warns against unauthorised forex trading platforms.

Supertrend MT4 MT5 Download

Supertrend indicator for both MT4 and MT5

OpenAlgo Desktop: algo trading on your own computer

WINDOWS, MAC AND LINUX

OpenAlgo Desktop: algo trading on your own computer

Install, sign in, connect your broker and trade. No server to set up and no Python to install.

  • Same API and screens as OpenAlgo web
  • Strategy module, charting and scalping terminals
  • Keys stay encrypted on your machine

What is inside the Supertrend MT4 MT5 download:

FilePlatformInputs (defaults)Notes
SuperTrend.mq4MetaTrader 4Nbr_Periods = 10, Multiplier = 3.0v1.2 by Jason Robinson (2008); green Trend Up and red Trend Down lines
SuperTrend.mq5MetaTrader 5Periode = 10, Multiplier = 3, Show_Filling = trueBy FxGeek (2011); colour changing line with an optional filled band

How the Supertrend Indicator Works

Both files calculate Supertrend the same way. For every bar they take the median price, (High + Low) / 2, and build two bands: median price plus Multiplier x ATR, and median price minus Multiplier x ATR. When the close moves above the previous upper band the trend turns up and the lower band becomes a trailing stop line; when the close falls below the previous lower band the trend turns down and the upper band trails price from above. The bands can only move in the direction of the trend, which is why the line steps up in a rally and steps down in a fall.

  • ATR period (10): a longer period gives a smoother line that reacts more slowly.
  • Multiplier (3): a higher value keeps the line further from price, so you get fewer signals and wider stops.

Steps for Installing Supertrend MT4 Indicator

These are the original steps from 2012. They still work on old MT4 installs that keep files in Program Files. Note that the MT4 file is the .mq4 file, not the .mq5 file.

  1. Download/Copy/Save the MQ4 file into your C:\Program Files\MetaTrader 4\experts\indicators folder.
  2. Open the file using metaeditor. By default on double clicking it opens in Metaeditor
  3. Close your MetaTrader application (assuming it’s currently open … Ignore this if the application hasn’t been launched)
  4. Launch your MetaTrader application
  5. On the left hand side, look for the “Navigator” window
  6. Under the “Common” tab, look into the “Custom Indicators” directory
  7. Locate the indicator which you have just downloaded into the folder stated in Step 1
  8. Drag (Click and drag) the indicator onto the chart
  9. Bingo… done

Updated Steps for MT4 Build 600 and Later

Since MT4 build 600 (2014), custom files live in the terminal data folder, and the old experts\indicators folder became MQL4\Indicators (MQL5 article on the MT4 data folder). On a current MT4:

  1. In MetaTrader 4, click File > Open Data Folder.
  2. Open MQL4 > Indicators and copy SuperTrend.mq4 there.
  3. Right click Indicators in the Navigator and choose Refresh, or restart MetaTrader 4.
  4. If the indicator is not listed, open it in MetaEditor (F4) and press F7 to compile it into SuperTrend.ex4.
  5. Drag SuperTrend from Navigator > Indicators onto the chart and set Nbr_Periods and Multiplier in the Inputs tab.

Steps for Installing Supertrend MT5 Indicator

  1. Download/Copy/Save the MQ5 file into your C:\Program Files\MetaTrader 5\MQL5\indicators folder.
  2. Open the file using metaeditor. By default on double clicking it opens in Metaeditor
  3. Close your MetaTrader application (assuming it’s currently open … Ignore this if the application hasn’t been launched)
  4. Launch your MetaTrader application
  5. On the left hand side, look for the “Navigator” window
  6. Under the “Common” tab, look into the “Custom Indicators” directory
  7. Locate the indicator which you have just downloaded into the folder stated in Step 1
  8. Drag (Click and drag) the indicator onto the chart
  9. Bingo… done

Updated Steps for MetaTrader 5

  1. In MetaTrader 5, click File > Open Data Folder, then open MQL5 > Indicators.
  2. Copy SuperTrend.mq5 into that folder.
  3. Open it in MetaEditor and press F7 to compile; this creates SuperTrend.ex5.
  4. In the Navigator, right click Indicators and choose Refresh.
  5. Drag SuperTrend onto the chart. Turn Show_Filling off if you only want the line.

Troubleshooting the Supertrend Indicator in MetaTrader

ProblemFix
Indicator not in the NavigatorCheck you used File > Open Data Folder, then Refresh the Navigator or compile with F7
MT4 indicator stops with “array out of range” in the Experts tabThe .mq4 file uses fixed 5,000 element arrays; set Tools > Options > Charts > Max bars in chart below 5,000
Compile errors in MetaEditorMake sure the .mq4 file is opened in the MT4 MetaEditor and the .mq5 file in the MT5 MetaEditor
Line looks too close to priceIncrease the Multiplier (for example 3 to 4) or the ATR period
Signals change on the current barThe last bar can flip until it closes; act on closed bars only

How to Use Supertrend in Your Trading

  • Use the line as a trailing stop: stay long while price closes above it and short while price closes below it.
  • Confirm signals on a higher timeframe; for example, take hourly buy signals only when the daily Supertrend is up.
  • Expect whipsaws in sideways markets. A trend filter or a larger multiplier reduces them.

For more on the indicator, read 10 things to know about Supertrend v2.0, the non repainting Supertrend for MetaTrader 4 and the Supertrend high-low breakout strategy for AmiBroker.

A Note for Indian Traders

MetaTrader is mostly offered by forex and CFD brokers. RBI has clarified that residents can undertake forex transactions only with authorised persons and for permitted purposes, and that electronic forex trading is allowed only on RBI authorised platforms or on recognised exchanges such as NSE, BSE and MSEI (RBI press release, September 2022). RBI also publishes an Alert List of unauthorised forex trading platforms. Check your broker before you trade.

Download Non Repainting Supertrend Amibroker AFL code with Signal Dashboard

Related: Supertrend indicator

Frequently Asked Questions

Is this Supertrend indicator free for MT4 and MT5?

Yes. The zip file above is a free download and includes both the MT4 (.mq4) and MT5 (.mq5) source files.

What are the best Supertrend settings for MT4?

The default of ATR period 10 and multiplier 3 is a good starting point. Short term traders sometimes use 7 and 3, while swing traders use a larger multiplier to reduce whipsaws.

Why is the Supertrend indicator not showing in MetaTrader?

Usually the file is in the wrong folder or has not been compiled. Copy it through File > Open Data Folder, compile it in MetaEditor with F7 and refresh the Navigator.

Can I use the MT4 Supertrend file in MT5?

No. MT4 uses MQL4 (.mq4) and MT5 uses MQL5 (.mq5). Use SuperTrend.mq5 from the same zip file for MetaTrader 5.

Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

42 Replies to “Download Supertrend Indicator for MT4 and MT5 platform”

  1. not able to download your supertrend indicator on mt4…….please help…. cannot find the exe

  2. I congratulate you on your success, well done. May you always keep up good health with good wealth

  3. I appreciate that you have made realtime banknifty future chart available online. Please add volume bars at bottom of this chart as it gives more details to trade.

  4. Dear Sir,

    Would you be willing and make this indicator multi-timeframe and also create a histogram version for the same? Like this it is easier to backtest it also.

    Thank you for your good work, and best regards from Switzerland!
    Dan

  5. CAN I VIEW the Target lines also in downloading the AFL.
    if not, give an idea with few lines here..

  6. how to download MT4 and MT5 platform , please provide me a link to download as i am unable to download these platforms.

    1. sir i am new to trade with meta trader. plz tell it is profitable or not. which time frame u use to get max return.

  7. DEAR SIR
    I WAS WANTING TO INSTALL METATRADER 5 .
    WOULD YOU BE ABLE TO GUIDE ME WITH A BROKER (DEALER)

  8. sir,
    why 5 point difference in meta trader 4 position and actual nifty future position. when nifty future position is 5952 it shows 5948. why it is show. thanks in advance.

  9. Sir ,, what should be the Inputs ( Nbr_Periods and Multiplier) in Super Trend.

  10. Respected Sir
    can we see the RED AND GREEN bar in mt4 just like AMIBROKER super tred afl ?

    Regarda
    Chinmay

  11. I am looking for Fibonacci Indicator with 88.6 Point. Can you please let me know from where I can download it or if you have can you please share it. I am trading in Meta Trader 4. Appreciate if you could help me on this. Current Fibonacci Indicator does not have 88.6 Point, it has 23,38,64,100,etc.

  12. DEAR SIR
    worth full work great for new trading baby,s but some of bullshits,s use it illeagle please copyright to protect it.
    and sir my q is how to avoid false signals using NON REPAINTING SUPER TREND oscillators or any other which method do you prefer ?
    i will be wait for your reply………………………………………& finally THANKYOU SIR

  13. Salute to you sir. thanks a lot for sharing super trend & zig zag indicator with all of us. these two indicators are helping me a lot
    regards,

    Amar Kamble

  14. Hi sir!

    Thanks for sharing SuperTrend powerful indicator is very helpful and people gain huge profits and waiting for more things.

    Thank you!

  15. Dear Rajandran,

    Can I use supertrand indicator for gold (XAU/USD) trading?

  16. can you implement auto trading system using supertrend in MT4 for me as a paid service?

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More