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

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

Submit your code

Drawdowns are calculated, too.

A variation of a well-known Nick Rypock Trailing Reverse indicator.

GLFX is a automated trading system. It is open for customatization and quite easy to implement own strategy into this system.

Fibo Pivot Lines GMT Indicator.

Improved functions iAC, iAO and iBearsBulls

This is the Expert Advisor with Money Management and signal selection. You can add your own signals in this EA very easily by just adjusting the function signals.

ZigZag Arrow indicator is based on a built-in ZigZag indicator that replaces the Line Section with Arrow.

Personal Assistant The Next Generation is there to make your trading easy, basically it does what a real assistant does — provides information and executes your orders.

The Expert Advisor is based on the Williams Percent Range indicator. It sells in the overbought zone and buys in the oversold zone. Trailing Stop and operation timer are attached to it.

Close At Time is an EA that closes open positions or deletes pending orders or both. You can also specify how it should be closed – by symbol, magic number or ticket number.

The Expert Advisor opens positions after the price passes the specified distance. 1 step up - sells, 1 step down - buys.

Catching the extreme change on candle.

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.

The most common and essential modification of Bollinger bands. Displays the standard deviation in a separate window, without disturbing the trading psychologically.

Indicator DT-RSI-Sig.

DeMark indicator - changed the rendering of the TD lines.

The indicator implements the Gann principle in the form of a ZigZag.

Quite interesting method for plotting a channel. Despite the obvious plotting primitivism, it can be useful during the flat level analysis (for example, if you had no access to the terminal in a while, and it is necessary to assess the past events quickly).

CwlxBW5Zone indicator.

Awesome Oscillator (AO) is a 34-period simple Moving Average, which is subtracted from the 5-period simple Moving Average.

Have audio output of latest price.

I'm waiting for your opinions.

GMacd_Signals indicator. Will approach as the filter.

Very simple indicator PLdot. It's been even optimized.

The SuperTrend indicator developed for MetaTrader 4 based on the ProRealTime version.

An implementation of all patterns FOREX MACD 4H strategy in one EA.

Indicator DeMarker Pivots.

Reasonably good algorithm of the EA based on CCI and its MA. It shows good results in tester. I need help for optimization, testing and maybe code debugging.

Trading by a break through of the support/resistance levels.

We place two pending orders at the specified time and delete one of them when another one triggers.

The indicator plots channels on three different timeframes (by default 1 hour, 4 hours, 1 day) and displays them on one chart. Also, for greater clarity, it displays the boundaries of each channel on the chart.

Visualizer indicator (what a terrible phrase to use!). Colors the chart bars according to the logic of determining the state of the fourth dimension of the Chaos Theory by B. Williams - Zone.

It shows a brief information about all of the positions opened. It can be useful, if yours expert advisor trades many positions simultaneously.

Pending orders ADDED. This program is created for training on historical data.

This indicator appears in the January 2010 issue of Technical Analysis of Stocks & Commodities.

The RSI indicator, applied to Moving Average

Works with open, high, and low prices of the current day.

The purpose of this indicator is to identify market fases that have too small amplitudes. These fases are useless even for systems designed for trading ranges markets. When the green line is BELOW the gray line - DON'T trade.

Indicator that shows trend and divergencies.

The indicator displays Market Sessions.

1...555657585960616263646566676869...104