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

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

You can identify buy trend and sell trend with this indicator

MACD zero line cross color candles with alerts for Metatrader 5

The HighPass - LowPass Roofing Filter was created by John Ehlers (Cycle Analytics For Traders pg.78)

Use the intersection of two moving average lines to draw a vertical line.Then You can simply read the current market pattern

After the three average lines are arranged completely according to high and low, it can be regarded as a trend formation. After the pattern is destroyed, the hatching is no longer drawn Under the condition of no hatching, it is regarded as an indeterminate period

Building good trading habits by seeing things in terms of percentage not in terms of money.

Fibonacci Channel with Quartile Trendline Levels

The Fisher Transform Indicator was created John Ehlers "Cybernetic Analysis For Stocks And Futures".

Shows Last Price, Daily percentage change and Time based on Input selection to the Price Line

"The Fisher Stochastic Center Of Gravity" was created by John Ehlers (УCybernetic Analysis For Stocks And FuturesФ , pg.95)

Volume Colored Candlestick with Bollinger Bands as the Standard Deviation

Volatility indicator

A version of ATR adaptive smoothed Laguerre RSI that does not use any built in function

ATR adaptive smoothed Laguerre RSI 2 (extended)

Optimized ATR adaptive Laguerre RSI

"The Enhanced Signal To Noise Ratio" was created by John Ehlers and published in the book "Rocket Science for Traders", pg.87-88.

The Momentum-based Adaptive Channel is a version of the adaptive channel based on the Euclidean distance. It is designed to adapt according to the dynamic market as needed.

Colored Candlestick exemplifying a gradient. It was somewhat hard to find a good working example of DRAW_COLOR_CANDLES that was understandable, most of the comments were useless, and the documentation lacks to even specify the plot limitations (PLOT_COLOR_INDEXES being limited to 64 in length, [0; 63]) or which order the functions should be called.

This oscillator can be used as a handle to judge a Moving Average's trend speed, based on this specific product's past trend history.

This indicator is used to have a sense of and distinguish a product's statistical property: Moving Average Speed

Notifies you at your specified Chart Time Indicator can be used to set alarm at a specified time on the chart.

Shows Symbol name, percentage change of price from last day, and Time Time has input options, You can select GMT, LocalTime or TradeServerTime

Sometime we have to work with Custom Angles based trendline for price action analysis e.g. 45 degree angle is considered more important for up or down trend. This indicator will help you by drawing a trendline which will match your custom angle on last input number of bars

This Indicator will show the Amplitude [Minimum; Maximum] of a given period and can act as a substitute of the ATR indicator. The indicator can be used to observe volatility and the force of past swings, useful to determine excesses that will possibly be reversed or repeated, given that the user has knowledge to complement with volume or standard-deviation strategies. It is suggested a period of 55200 at M1 or 2400 at H1 (meaning 40 sessions of 23hs each), or any period that complements your strategy.

Catching the extreme change on candle.

Non-anchored discontinued signal line RSI of average

Discontinued signal line version RSI of averages

Discontinued signal line CCI using average of price for filtering signals

Discontinued signal line MACD

This is a re-write of the old Solar Winds indicator for MQ5. There has recently been some 'excitement' about using this with other indicators for entry signals, and after a request to develop an indicator using it, I found that it was a classic re-painter - so I am contributing this code with an easy switch to allow seeing the indicator in re-paint versus non-repaint mode.

This simple indicator is just a statistical label showing Last and Current Candle Amplitude (MinMax), Last and Current Day Amplitude, Current Tick Amplitude and Time Remaining for next Candle. It also shows Server Time (Market Watch) and Local PC Time so you can focus more on the graph and adapt to market hours.

Building good trading habits by seeing things in terms of percentage not in terms of money.

The Decycler: John Ehlers, "Cycle Analytics For Traders" by John Ehlers, pp. 43 - 44.

This indicator summarizes the volatility of multiple periods.

Ehler´s Quotient Transform

Updated T3 floating levels

Extended version of the original Heikin Ashi indicator.

This is a helper indicator which allows you to adjust vertical scale of a subwindow manually, which is useful for zooming in and zooming out graphs of your favourite indicator placed in the same subwindow.

The Decycler II: John Ehlers, "Stocks & Commodities V. 33:09", стр.12-15

Ichimoku is one of the excellent indicator which can work lonely or with other indicators. With Alerting indicator which send notification to your cell phone whenever Tenkan-sen Cross Kijun-sen you can have an opportunity to enter or exit market at right time .

1234567891011121314...133