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

MQL4 and MQL5 Source Code Library

You don't know where to start learning the MQL5 or MQL4 programming language? Various programs for your MetaTrader terminal are available here. Download and study published code examples, develop your own indicators and Expert Advisors. Publish your applications in the largest library of MQL5 and MQL4 codes, and they will be available in every MetaTrader terminal and MetaEditor.

Your code examples in MQL4 and MQL5 will be distributed worldwide, and thousands of traders will know about you!

MetaTrader 5

rating

Simple average spread per hour statistics output.

PricePosition indicator provides the position of price in the point of angle when the price rises above (BUY) or falls below the angle section line (SELL).

The script displays the monthly and weekly levels on the chart.

Byte-wise operation with structures and standard data types.

Script for drawing a price markup.

The StochasticDiff indicator with the timeframe selection option available in input parameters.

Trading system based on STLMCandle indicator signals.

Indicator based on two moving averages from the "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading" book by John Ehlers.

The RVIDiff indicator with the timeframe selection option available in input parameters.

The Exp_RVIDiff Expert Advisor is based on change of direction of the RVIDiff indicator.

Trend indicator.

The Exp_i-SpectrAnalysis_Chaikin Expert Advisor is based on change of direction of the i-SpectrAnalysis_Chaikin indicator.

The Exp_BalanceOfPower_Histogram Expert Advisor is based on change of direction of the BalanceOfPower_Histogram indicator.

The BalanceOfPower_Histogram indicator with the timeframe selection option available in input parameters.

The RSI indicator implemented as candlesticks with indication of breaking the overbought and oversold areas.

The FloatPivot indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits.

The FloatPivot indicator with the timeframe selection option available in input parameters.

The vaMA moving average with the to change the averaging algorithm.

The OsHMA indicator with the timeframe selection option available in input parameters.

The PriceChannel_Stop_Digit indicator with the timeframe selection option available in input parameters.

MetaTrader 4

rating

PricePosition indicator provides the position of price in the point of angle when the price rises above (BUY) or falls below the angle section line (SELL).

Calculates profit (loss) of the current orders on the symbol.

Modified version of FF Calendar Indicator with new features.

Continuously records tick data in format "DateTime, Bid, Ask, Volume" even after restart.

This script is used to calculate lot rebate.

This indicator provides an easy way to find out the current direction of a pair.

This EA uses different indicators: ADX, Stochatisc, Accelerator... This EA is optimized for USDJPY TF H4, but it can work on others if you optimize it.

Simple way to encode and decode using Base64.

A good oscillator for helping you count Elliot waves.

Shows simple channels for daily, weekly, monthly timeframes.

The EA is based on 5 MAs: 10-, 20-, 50-, 100-, 200- period and + ADX (the main line)

ATR MA Oscillator - Oscillator is based on the difference between the ATR oscillator and its signal line.

The script plots a "Tic Tac Toe" chart in the form of Japanese candlesticks.

Expansion and improvement of the script ver.2 and an example of accelerated processing of an indicator for use in conjunction with the script

Simply displays ticks on the price chart

Expert Advisor based on the Sidus indicator.

Visualizer indicator (what a terrible phrase to use!). Colors the chart bars according to the logic of determining the state of the fourth dimension of the Chaos Theory by B. Williams - Zone.

Modernization of the first version of the script with the ability to manage multiple indicators

The script allows to preview the indicator behavior on a real chart from the specified point with the minimum computation resources.