Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Supertrend - indicator for MetaTrader 5

Views:
7938
Rating:
(4)
Published:
2025.03.15 10:29
Updated:
2025.03.15 11:06
supertrend.mq5 (11.49 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This SuperTrend indicator helps identify market trends based on Average True Range (ATR) volatility. Released under MIT license for free and open-source use.

Core Formula

  • Upper Band = Source Price + (Multiplier × ATR)
  • Lower Band = Source Price - (Multiplier × ATR)
  • In uptrend: SuperTrend = Lower Band (green)
  • In downtrend: SuperTrend = Upper Band (red)

Usage

  • Green line indicates uptrend (potential buying opportunities)
  • Red line indicates downtrend (potential selling opportunities)
  • Can be used for trend following strategies or identifying reversals
  • Works well as a trailing stop mechanism

Installation

  1. Copy the file to your MetaTrader 5 indicators folder (typically located at Terminal_Directory\MQL5\Indicators\ )
  2. Restart MetaTrader 5 or refresh the Navigator panel
  3. Drag the indicator onto any chart

Parameters

  • ATRPeriod: Period for ATR calculation (default: 22)
  • Multiplier: ATR multiplier to adjust sensitivity (default: 3.0)
  • SourcePrice: Price type used for calculations
  • TakeWicksIntoAccount: Whether to include price wicks in calculations

For Multi-Timeframe version please visit: https://www.mql5.com/en/market/product/134432




BarDuration BarDuration

This is a simple indicator to display histogram of custom bars' durations in minutes. Applicable for renko boxes, PnF, equivolume bars, etc.

MeanReversionTrendEA MeanReversionTrendEA

The EA automatically trades based on trend and mean reversion signals with validated parameters.

Introsort (Introspective sort) using Function Pointers Introsort (Introspective sort) using Function Pointers

A hybrid sorting algorithm that provide fast performance for sorting arrays of simple types, structures or object pointers.

Trend Zigzag (on ma cross) Trend Zigzag (on ma cross)

A static zigzag which connects the intersections of a moving average crossover