Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 7938
- Rating:
- Published:
- 2025.03.15 10:29
- Updated:
- 2025.03.15 11:06
-
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
- Copy the file to your MetaTrader 5 indicators folder (typically located at Terminal_Directory\MQL5\Indicators\ )
- Restart MetaTrader 5 or refresh the Navigator panel
- 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

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

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

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

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