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

Submit your code

The program allows you to compare quotes of any two MetaTrader brokerage firms.

An Expert Advisor uses the Candlestick Models for trading: Blending Candlesticks (Engulfing) and Hammer(inverted Hammer)/Shooting Star models

This code will get the current time , wait until a certain amount of Seconds has passed and then continue processing.

Many people asks to post a simple expert advisor. Here is it.

Displays info about the SAR in relation to the selected candles on four different timeframes.

It's based on the simple CCI, it plots arrows for sell and buy signals on the chart.

It combines two ema's, rsi and adx to give you buy or sell signals.

Две версии индикатора на упрощённом алгоритме перцептрона

An oscillator version of the Vortex Indicator

Imports live trades and orders from the firepips twitter page

The Expert Advisor Stoch works with SellLimit and BuyLimit pending orders.

This script allow you to modify the price, the Stop Loss or take profit or a pending order by just point and drop a script

The indicator displays the ratio of lengths of the bodies last N candles

A simple indicator that shows the price change, in pips, per candle.

Average Change Indicator

Opens and closes orders using parabolic SAR

It showed the peak/bottom at rsi14

Indicator that shows two resistance levels, 2 levels of support and pivot, they calculated the traditional way.

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

The Kagi Charts illustrate how demand-and-supply forces act.

Ea optimised on H4 based on low trailing stop

Start balance 10000$, trade on eur/usd ,Daily timeframe, only short

Double zero cross level is the signal to open position and/or close.Settings for H4 TF.

This EA is based on the strategy "Stop Hunting with the Big Players". It sends BuyStop and SellStop orders at near distance from the round price targets.

Upgraded version of Slope Direction Line.

Underlyings for this EA are the daily opening (o1), the daily high (h1) and the daily low (l1). The distances from each other in a maximum of 3 steps form the filter base, which is confirmed by the CCI.

The Crossover Moving Average Mirror user, completed with Sound Alert.

Zigzag lines are built on fractals

AggM is a composite trend and mean-reversion indicator.

Overbought / Oversold

A very useful indicator to show trend of 4 currency pairs on your charts.

Shows custom Timeframes on the Main chart

Collect and analyze real-time spread data.

This is first EA I am providing for everyone to see and work upon. This is written by me. This EA should be used on EURUSD 15min with initial capital of $1000.

Help me making this better.

Based on RSI with Parabolic SAR trailing...

Exponential average true range reduces the lag by applying more weight to recent prices.

This is my own best EA, in the main lines can be setted up many things.

Price levels Call / Put the lines of support / resistance.

Based on MACD.

1...828384858687888990919293949596...101