Watch how to download trading robots for free
Find us on Twitter!
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 - 2

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

A wick engulf candlestick pattern

Custom Hammer and Inverted Hammer

Six bulls or six bear continuous candles

Checks if either upper or lower Wick range of a candlestick is greater than Body range of a candlestick and plot a wingding

This indicator calculates the range difference between the 'MACD and Signal lines' and also the range distance between 'the last two MACD bar'.

The Heiken Ashi indicator with no repaint or repaint mode input option.

This indicator helps user estimate the potential price movement for the current day, based on 20 days historical data and market trends.

This indicator uses two moving averages to calculate the market trend and changes color depending on the trend direction.

This is an indicator with a rainbow-like display, both for trend or pullback prediction.

Hidden Engulfing Candlestick Pattern

Anlayse swing highs and lows

Donchian Channel for traders or young developers by William210

Keltner Channel for traders or young developers by William210

The default CCI in MT5 doesn't have the shift parameter. This script implements the shift.

Let follow previous EA by this link https://www.mql5.com/en/code/46630

This is an edit of the Mod_ATR_Trailing_Stop by MQL5 user @Scriptor found here https://www.mql5.com/en/code/20423 . MT5 indicator .mql5 and .ex5 files, report any bugs, I'll fix.

ATR - Average True Range - beginner tutorial to learn how to code in MQL5

AO - Awesome Oscillator - without iAO() beginner tutorial to learn how to code in MQL5

A Marubozo is a long-bodied candlestick with no shadow, from the Japanese word meaning "close-cropped". Candlestick charts look at the opening and closing price on a single day and are used by technical traders.

AMA - Adaptive Moving Average - beginner tutorial to learn how to code in MQL5

Alligator beginner tutorial to learn how to code in MQL5

Rsi without Irsi() beginner tutorial to learn how to code in MQL5

Fractals - adjustable period and prices for MT5

Here is my implementation of a colored Hull Moving Average.

Wick Ratio Candlesticks are recognized by its upper and lower wick ratio instead of open and close properties.

A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.

Stochastic beginner tutorial to learn how to code in MQL5

It will automatically plot a colored horizontal line on the previous open/highs/lows/close of the selected period, and it will make the lines consistent on this price when switching timeframes.

This is a helper function which enables you to find the price of the symbol (the prices on the Y-axis) wherever you click the mouse on the chart. Using OnChartEvent, we don't have an MQL5 function in the API to do this, we can only obtain X and Y pixel values with mouse click.

Momentum beginner tutorial to learn how to code in MQL5

Ichimoku beginner tutorial to learn how to code in MQL5

MACD beginner tutorial to learn how to code in MQL5

Bands Bollinger beginner tutorial to learn how to code in MQL5

Rsi beginner tutorial to learn how to code in MQL5

Moving average beginner tutorial to learn how to code in MQL5

One of the latest version of this indicator at the moment. Huge base of different modifications of moving averages, with multitimesframe function, sending signals to e-mail and push notifications.

Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.

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.

123456789...133