Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL5 Source Codes of Technical Indicators for MetaTrader 5 - 3

icon

MQL5 technical indicators analyze MetaTrader 5 price charts on Forex, as well as stock and commodity markets. Indicators define trend direction and power, overbought and oversold states, support and resistance levels. Underlying mathematical models provide objective assessment of the current market state allowing traders to accept or reject trading system's signals.

You can download and launch offered indicators in MetaTrader 5. The library of indicators is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

I wanted to build a moving average which would create an alert when the price moves over the line by a user defined amount of points. It creates both bullish and bearish signals depending on the direction of market price moving through the MA. It is designed for slow length moving averages (default is 200-day MA). EDIT: I now added a second version of the indicator which uses Arrow buffers instead of ObjectCreate.

This is a custom support and resistance indicator, signaling bouncebacks and key market levels.

The "Dynamic Support and Resistance" Indicator is a versatile tool that combines support and resistance levels with real-time market dynamics. By incorporating previous daily highs and lows, it provides valuable insights into market psychology and identifies potential areas of price reversals or breakouts. With its ability to adapt to changing market conditions and customizable options, traders can stay ahead of trends and make informed decisions. This indicator is suitable for various trading styles and timeframes, empowering both experienced and novice traders with a competitive edge.

provides clear arrows which clearly show the direction of the currency pair.

Tortured small print in the terminal? This indicator makes price numbers visible!

RMA Relative Moving Average is a variant of EMA

This is a very easy-to-use indicator that displays the changes in Equity and balance of the trading account as it dynamically moves. Particularly useful on the back tester and good for beginners to read this very easy MQL5 code.

Commodity Channel Index using exponential moving averages.

Highlights the Asian trading session

Weighted deviation bands

Weighted deviation

Hurst Exponent - optimized version

CLS (ClearScreen) delets all object drawn on the chart with key press "C"

Advanced Line Chart based on Japanese candlesticks.

An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

An implementation of the original Average True Range indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

Shows moving Last Price on Bid Line, LAst 24 hours percentage change, switch chart from arrow keys and more..

Based on the original “Time Segmented Volume (TSV)” developed by Worden Brothers, Inc.

The equation of the straight line from the school, it is y = bx + с. (Conversion from https://www.mql5.com/en/code/7883)

Volumes Spread mod

Volume Average percent spread mod

The Roofing Filter Indicator was created by John Ehlers ("Cycle Analytics for Traders" pg. 80 - 82).

This indicator shows trend line and channels using the BSI Indicator. Original work of https://www.mql5.com/en/code/13615

Example of daily loss calculation tool You can update it as you want.

Confirmation (trend) indicator used for lower timeframes

Money-managing stop loss baseline indicator for MT5.

This tool outlines extremes made by the prices within the selected window size. This is achieved by estimating the underlying trend in the price using kernel smoothing, calculating the mean absolute deviations from it, and adding/subtracting it from the estimated underlying trend. Originally Made By LuxAlgo. Coded in MT5 format.

The indicator is an equivalent \"Chart Window\" version of MACD.

The Restoring Pull Indicator was created by John Ehlers (Stocks & Commodities V.11:10 (395-400))

Get notifications when hit price level

Show trade history

An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement".

The Predictive Moving Average was created by John Ehlers (“Rocket Science For Traders”, pg.212″).

A series of indicators 'Four Colors'. Signals are now 'Arrow' in the main window

An exponential moving average of the true range and the offset of its average deviation

Added alerts to custom indicator

Candlestick chart without shadows

Added alerts to custom indicator

Colored SAR indicator. Alerts on color change

The indicator draws three daily rectangles

12345678910...133