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

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

Submit your code

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15

The Williams' A/D indicator is the accumulated sum of positive "accumulational" and negative "distributional" price movements. Divergences between the indicator and the price are a signals.

This indicator draws pivot points, resistances and supports.

The Rabbit indicator plots the true support/resistance levels for any currency pair.

When the chart symbol is changed, it will change symbols for all other charts.

Aroon Oscillator predicts price changes from trend to flat market conditions.

BrainTrend1Sig is an indicator for positions opening and closing. It indicates trend reversal points when a price reaches extreme values.

CStochasticOnArray class is designed for calculation of Stochastic indicator values on indicator buffers. The example of use of the class is provided.

The indicator displays the inclined trend line that sets the signal actuating level.

HLR

The HighestLowestRange (HLR) determines the relative price position in range of the several X bars ago. If price located at range bottom (new low), the indicator is equal to 0, if price position at the top of the range (new high), the indicator is equal to 1 (or 100%).

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

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

The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data.

Analyzed copy of ATC2012 current champion JPAlonso's EA.

The ZigZag drawn using Heikin Ashi extremums

The class is designed for calculation of the technical indicator Triple Exponential Moving Average (Triple Exponential Moving Average, TEMA) using the algorithm of the ring buffer.

An example of how to create a multicurrency Expert Advisor that trades using the Bollinger Bands indicator.

Normalized oscillator that uses Fisher's transformation, drawn in the form of a color histogram.

An example of posting a message containing an image on the MQL5.com website using the WebRequest() function. This is an example of how to authorize using a login and a password, and to insert an image into a text message.

Robot that trades the open sentiment of the market.

Averages indicator, which contains 18 types of averages available.

Volatility Quality Stridsman (histo).

A trend indicator of NRTR type using an MA and ATR.

Step VHF adaptive VMA

The Envelopes Indicator is formed by two Moving Averages, one of them is shifted upward and another one is shifted downward. The selection of optimum relative number of band margins shifting is determined with the market volatility: the higher the latter is, the stronger the shift is.

The Indicator Ichimoku Kinko Hyo is predefined to characterize the market Trend, Support and Resistance Levels, and to generate signals of buying and selling.

The Moving Average Convergence/Divergence (MACD) is the next trend-following dynamic indicator. It indicates the correlation between two Moving Averages of a price.

The Ultimate Oscillator was developed by Larry Williams. It uses the averaging of three oscillators with different periods.

This is a modified version of ZigZag indicator that draws lines with different colors depending on the price movement direction.

It's a well-known indicator that shows maximal and minimal prices (and average values) of the last n bars.

To demo buffer-pattern: Candles + Fractals + ZigzagColor + ColorMaLine.

Trend indicator with simple smoothing algorithms.

This indicator finds the nearest neighbor by using a weighted correlation coefficient, in which more recent prices have larger weights. The weight decays linearly from newer to older prices within a price pattern.

Graphic Panel Contest submission.

Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Market Facilitation Index (MFI) 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 "Dark Cloud Cover/Piercing Line" 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 Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The indicator generates market entry signals and draws the line of Stop Loss orders positioning.

Murrey Math Lines for the current bar are an effective tool for the market movements forecasts.

The indicator shows trend change rate with a minimum lag.

1...151617181920212223242526272829...183