Download MetaTrader 5

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

MQL4 Source Code Library for MetaTrader 4 - 27

The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.


This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

My first exad.....comment if any not modified and improve ment running..

Camarilla Level Pivots.

The EA opens transactions when RSI is Upper or Below 50

The gSpeak dll for MetaTrader Build 6xx

Multi timeframe fractal indicator with "Extend_Line" and "Show_Validation_Candle" functions (compatible with MT4 build 600 or later).

EA Crossing of 2 MA

Combine Candle sticks and Market Profile indicator.

Script Calling Library for MT4 build 600 and later

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

This EA just using a very simple formula, but according to my experience, the formula was accurate enough to make a profit.

Fibonacci Retracement Levels indicator draws Fibonacci Retracement Levels on the trading chart.

Scan for conditions in which you have an interest. Show where the condition arose historically on the current Symbol and timeframe. On a separate panel, show where the condition has currently arisen for any of your chosen symbols and timeframes.

This is my first Expert Advisor so please give feedback on how I can improve it to make the best possible EA. Thanks for the inputs in advance and happy trading.

This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class.

This Expert Advisor is based on your human ability to predict medium and long term trends.

It opens and close transactions depends on MACD vs signal line - upper - opens buy, closes sell, below - closes buy, opens sell.

Adviser may trade in two modes: Martingale and antimartingeyl ...

The indicator ыimulates the full structure of the market profile system that described by "James Dalton" in his book "Mind Over Markets".

This code is an Alternative of the missing OnTrade() event in MQL4.

A tool to give us a better market perspective.

Good For EURUSD. Start by Money $300.

Someone needed a quick way to open the Alert window again, after they had closed it. Place this script in your \experts\scripts folder.

Simple library that allows sending requests via HTTP protocol from new MQL4

An implementation of a HashMap in MQL4

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings.

With this indicator you can follow the evolution of account profit.

Connecting to MySQL server from new MQL4.

Shown all TF candle direction on Chart.

mt4R, modified for supporting new MQL4

This is a simple (cheap) UnitTest include library for new MQL4

EA depend on distances for 9 orders opened with condition of Stoc 4H >80 sell &

How to load csv signals into your expert

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

Amazing EA that does not use any indicator. Instead, it follows the price action. Tested from 18 August 1995 to 29th January 2014. It has managed to turn $10,000 to 11,958,183.37.

Someone asked me to provide them a way to close all their orders. This script will serve that purpose. Place this script in your \experts\scripts folder. When you want to close all the orders just drop this script on a chart.

Where is the herd of Bulls and Bears within the candle? A candle does not show where most of the activity has been during the candle's timeframe. TFV does. TFV shows with 1 simple dot where the battle has taken place in the candle, where the trenches are

Artificial Intellegence (by Reshetov) original code is optimized with higher returns and accuracy for positional traders.

GBPJPY 5M Only. Good luck.