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

Top MQL4 and MQL5 source codes based on user ratings - 39

Submit your code

The Demarker Indicator (DeM) is based on the comparison of the period maximum with the previous period maximum. When the indicator falls below 30, the bullish price reversal should be expected. When the indicator rises above 70, the bearish price reversal should be expected.

The indicator helps to find the reversal bar of the trend.

This is the Heiken Ashi indicator, based on the averaged Open, High, Low and Close prices, averaged using the Adaptive Moving Average.

The indicator shows deals history on the chart.

Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Hammer/Hanging Man" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_COLOR_LINE drawing style is used to plot lines with different colors, the colors are specified in the color buffer.

RSI indicator applied to MACD clearly shows the current price divergence.

The indicator generates buy and sell signals using colored dots on a chart and displays messages.

Simple but demonstrative trend indicator.

Four-colored histogram of OsMA (Moving Average of Oscillator) allowing to implement different smoothing algorithms.

Mikahekin can be called a complete analytical block rather than just an indicator. The color of bars shows a trend direction and their height indicates a trend power. Blue and magenta dots show trailing-stop levels for long and short positions, respectively.

This indicator shows the simple clock in comment.

The simple script for deleting all graphical objects from a financial asset chart. It can be useful, in case the chart is overcrowded by objects that are not needed anymore.

CADOnArray class is designed for calculation of AD (Accumulation Distribution, A/D) values on indicator buffers. Test_ADOnArray indicator is provided as the example of the class use.

BykovTrend_HTF_Signal shows a trend direction or a signal for performing a deal generated by BykovTrend indicator as a graphic object with colored trend indication or deal direction.

SilverTrend_HTF_Signal shows a trend direction or a signal for performing a deal generated by SilverTrend_Signal indicator as a graphic object with colored trend indication or deal direction.

This indicator is based on Momentum and its multiple signal lines analysis.

Trading signals module for MQL5 Wizard. Go indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. Sidus indicator's color arrow serves as a market entry signal.

The Expert Advisor is based on EMA_RSI_VA indicator.

Same RSI and Dem but more sensitive one.

The function that decrypts the code of the trade operation result for the functions OrderSend() and OrderCheck().

Multicolor modification of Fast ZigZag.

The Exp_JBrainSig1_UltraRSI Expert Advisor uses the values of JBrainTrend1Sig and UltraRSI indicators to analyze the market state.

The IndMATEMA indicator is based on crossing of two MA and two TEMA on close and open prices of bars.

Alternative trend indicator based on the breakthrough pattern of closing the previous bars extremums

A panel for opening and closing positions on several financial symbols in one click.

Special aspects: "holidays problem" is solved (problems arising due to absence of ticks).

The TrendValue indicator with the timeframe selection option available in input parameters.

The code is designed to be a simple reference of how to create movable (drag) panels and populate it with information.

The trade sessions indicator.

This indicator is a modification of classical Awesome Oscillator indicator.

A semaphore signal indicator that uses an algorithm based on crossovers of oversold and overbought levels from the HLR indicator.

The panel allows you to quickly evaluate the effectiveness of your trade strategy for a specified period of time (in the past) and for a certain magic number.

The FX5_SelfAdjustingRSI indicator with the timeframe selection option available in the input parameters.

The FX_Sniper_Ergodic_CCI indicator with the timeframe selection option available in the input parameters.

This is a market sentiment indicator. It displays market sentiment — bullish or bearish.

Change in the display of graphical objects created by the strategy tester and simplification of the following visual analysis of the results.

The ColorMETRO_XRSX with the timeframe selection option available in the input parameters.

1...323334353637383940414243444546...205