Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 32035
- Rating:
- Published:
- Updated:
-
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
BarDuration
This is a simple indicator to display histogram of custom bars' durations in minutes. Applicable for renko boxes, PnF, equivolume bars, etc.
MeanReversionTrendEA
The EA automatically trades based on trend and mean reversion signals with validated parameters.
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)
A static zigzag which connects the intersections of a moving average crossover