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 - 100

Submit your code

Candle cross either of three lines.

Plot entry and exit as line objects from MQL5 signal CSV onto chart

This is an EA based on Bollinger band crossover with prices.

Only successfully tested on INSTAFOREX broker, InstaForex-Europe.com server 5 digits, pair EURGBP daily, leverage 1:1000, with free swap account.

This code can be used to create rectangles on chart.

Trading Robot

On all MT4 market execution accounts (ECN, ECN Zero and Pro), preset stoploss/takeprofit price levels are not permitted. If a client wishes to specify stoploss/takeprofit values for an order, the client must modify the existing position after the order is opened. This EA helps a client effortlessly ensure that an on order is modified to desired stoploss/takeprofit values a short while after a trade position is opened This is especially helpful for scalpers who want to avoid the trouble of manually editing trade properties every-time a position is taken on a financial instrument. EA by Maduagwuna E.I

This code will give custom sound on alert on new bar.

Chaikin Oscillator with smoothing option.

CCI of Moving Average with Dynamic Signal Lines

This code simply prints the account details for a MT4 account.

This indicator plots multiple signals based on MACD main and signal lines.

Free utility for manual orders placement.

This code identifies highest high and lowest low in the neighbourhood.

it gives you the name of the indicator which is attached to a chart.

This EA is based on upper and lower Bollinger bands.

Adviser Currencyprofits 01.1

Hi, so I just made a little code here that will help out a lot of coders that hate doing this (I count myself in it haha). It's made to calculate the lot size of a position based on the risk input and the account size+currency.

This indicator shows a standard parabolic SAR another way. Also it send alert when SAR dot changes side.

Use trailing stop point with MT4

This Indicator will plot bullish and bearish candles in separate colors.

This EA demonstrates placing orders, modify orders and then closing orders after a fixed interval.

This is an EA based on Moving average crossover.

This code places only one order every second ( not every tick )

This code can be used to find highest high and lowest low of a chart for a given period.

This code can be used to read csv files and separate string based on a separator token.

Larry Williams 'Greatest Swing Value' as an indicator

Recursive Moving Average calls itself a number of times in order to reach the appropriate smoothing. For instance DEMA,TEMA and Rainbow indicators are recursive exponential moving averages. The goal is to remove the loop limit while still running fast. In addition a trigger line provides the trading signal.

An exponential moving average of the true range and the offset of its average deviation

This is an Indicator based on MA crossover.

This is a ADX crossover based Indicator.

This code is used to create static object on MT4 charts which will not move along with the chart when you scroll the chart.

This is an indicator based on tolerance for highs of two candles.

This is a simple code to draw triangle on chart connecting open and close of different candles.

This indicator compares the main and signals line of the stochastic indicator and marks the sam eon the respective bars on chart.

This EA will tell you the Depth Per Inch of your screen.

The code is used to demonstrate how one can create a button on the chart and assign a function to it. The code is used to delete all orders after clicking on the button. The deletion takes care of various scenarios and shows error messages.

Some call it as MCDx Smart Money Indicator. It's just modification from RSI indicator.

This code base is a simple function to check if current time lies within two specified times.

1...93949596979899100101