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

Top MQL4 and MQL5 source codes based on user ratings


automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

This script opens a pending sell order by just point and drop the script in the place you want.

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

Improved period converter support real-time refreshing, low CPU cost and other features.

PivotCustomTime Indicator.

The indicator shows the beginnings and the ends of three trading sessions: Asian, European, and American.

The library contain several functions to get an additional information about the symbols, loaded into the client terminal. ATTENTION: Undocummented solution, it may not work in the other versions of MetaTrader

The indicator draws the charts of the euqity and balance basing on the minute history. In such a manner you get more authentic picture of maximum rises and drawdowns.

The script is intended for gathering some statistics by the symbols and its comparison.

Kijun Sen and Envelope.

This script reads your unread GMail messages.

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

This is a normal MACD with Histogram. It's really simple coding but helpfull. I'm not testing on MT5 but i think it's ok with that. Let me know if you're tested.

Индикатор MACD, совмещённый с гистограммой MACD, усовершенствованный для использования импульсной торговой системы, предложенной А. Элдером.

Indicator RSI with Trend Catcher signal.

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

This script is used to modify StopLoss and TakeProfit.

An implementation of a HashMap in MQL4

Connecting to MySQL server from new MQL4.

A simple script to quickly place letter/numbers on the chart for wave labeling (A, B, C or 1, 2, 3, etc)

The indicator shows the volatility of a currency pair. This knowledge may be very helpful when using one strategy or another.

This indicator, recognizing trends in an early stage, can be used to get ready for a break-out scenario.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

This is the standard Heiken Ashi, but with the option to spot Dojis and color them differently.

Drop the script on your chart to send a screenshot to twitpic with or without a message

Gives Buy, Sell and Exit signals based on EMA

The Market Profile uses alternative presentation of information about both horizontal and vertical market moves.

Calculates multiple moving averages trend

MTF Macd X indicator.

Simple coding/decoding of entries in Base64.

The script closes all charts for the specified symbol.

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

Indicator TDI-With Alerts. The description look in a code.

Precision trend (histo) - MetaTrader 4

YangTrader is a good indicator, it core is price moving and return, when the value crosses 15, maybe it's the best buy time and down cross 80 it's the sell time.

Custom Linear Regression Tool. Values of LR line and Support and Resistance lines are in buffers.

Demarker indicator is based on the comparison of the period maximum with the previous period maximum.

Parabolic SAR Indicator was developed for analyzing the trending markets.

The indicator displays the time between sending a quote by the broker and receiving it by you.

The Zig Zag indicator with a sound alert on appearance of a new line on the chart.