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


The indicator finds and draws linear channels using all timeframes from M1 minute to MN.

The script copy objects (Trendline, Horizontal Line, Rectangle, Fibo) from active chart to all charts in this same symbol.

Shown all TF candle direction on Chart.

The indicator displays what dominates in a time series: the trend or the flat component or the series acts randomly.

The script moves the TakeProfit by the Distance from the market.

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

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

Indicator shows a different Forex sessions and the market hours of the exchanges.

ALGLIB math function library (v. 3.5.0) ported to MQL4.

Function library and Experts for trailing (11 types). Simple usage of complex algorithms.

This script is used to modify StopLoss and TakeProfit.

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

popup tip: any bar's local time, with help of a verticle line.

The supersensitive indicator of fractals.

This indicator shows the moving average (simple or exponential) of the Standard Deviation.

Automated volume calculation for the preset risk factor, and order(s) opening.

Percentage Price Oscillator displays more precise signals of divergences between prices and the value of the oscillator. It also emphasizes price extremums more precisely, it moves faster.

The indicator which draws a structure of the market.

Indicator Rsx

Simple one click trade panel, typically useful for scalpers and day traders.

A library of classes for creating a user-friendly interface of your programs.

The library contains the function that monitors the appearance of the trading events in the MT4 client terrminal.

Indicator RSI with Trend Catcher signal.

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

This indicator places semaphore points on the maximum and minimum of a higher, medium and lower period. Similar to Advanced Get, but without waves numeration.

Now combines 14 different indicators and 7 timeframes in an easy to read meter for any FX chart. Includes inbuilt History viewer. Fully configurable signals & indicators.

Another version of popular ZigZag.

Overlay two or more charts on the same window.

Take screenshot in the original chart size with labels (instrument, timeframe)

It shows the information about 4 Moving Averages in a separate window.

Library for virtual trading.

It calculates and shows Stop Loss levels (for Buy and Sell positions) using the method described by Bill Williams in his book "Trading Chaos". A new feature has added: now all it can be analysed in history.

Trading signals function. Based on the values of the CCI indicator.

A "cover" for the normalization of the indicator values.

Alert indicator that allows to move the signal via the mouse.

Modify - script choosing first in list buy or sell order, printing selected order data, modifying order and printing order data after modification.

For those who prefer "slope trading" or other variants that imply using 3 screens. To avoid numerous screens, set up SlopeDirection MTF on a higher timeframe as you desire.

The indicator displays the series of waves, breakthrough points and targets for Take Profit.

Simple coding/decoding of entries in Base64.

FiboPiv_v2 indicator.