MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

The Largest Collection of Forex Robots is on Display in MQL 5 Code Base
To post a new code, please log in or register

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 Jobs section

MQL4 Source Code Library for the MetaTrader 4

Want to learn the MQL4 programming language, but don't know where to start? Here you can find a lot of MQL4 programs for the MetaTrader 4 client terminal. Study these examples and develop your own indicators and Expert Advisors. Being published in the largest library of codes in the MQL4 language, your applications will be accessible from every MetaTrader 4 terminal and MetaEditor IDE.

Your examples in MQL5 will be distributed throughout the world and hundreds of thousands of traders will learn about you!

previous12345678...59next
latest|best

The header file contains functions for searching last and previous order in the trade pool.

The simple class for counting of the orders with different filters: by symbol of currency, Magic Number, either closed, either opened orders.

Expert Advisor work with one hour chart, and is the best robot for now, plays a sound when orders/alarms are executed and multiply positions by 10 when 5 digits is true, trailing stops every tick regardless of Execution Mode.

Fractal volatility indicator based on Bollerslev Model.

Change of the spread is being reflected in the candlestick formation, which you can use to more accurately place your stops and not get kicked out of a trade when it might just be challenging a price before making a huge swing in the direction you initially placed your trade.

This is a fast adaptation of old source to MetaTrader 4 b600 environment.

Trade using Renko Boxes in MetaTrader 4.

xLiquidex_V2_Mod1 is an Impulsive/Volatility/Breakout Expert Advisor.

Draws horizontal grid lines at specified distances.

The indicator shows trade signals using combined Stohastic with breaking of High/Low by Moving Average.

Forex indicator ChainPriceRSI is based on the RSI and MA indicators.

This template code contains basic features and functions required for the developing the Expert Advisor.

The indicator shows top and bottom ranges of price movement.

Auto pending and manage orders by RSI, lower risk at weekend, send mails if necessary.

Modified Nick Bilak's b-clock with spread (ask-bid) and font customization (font, color, size).

This indicator shows Bollinger and ATR Bands.

The script closes all charts for the specified symbol.

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

EA to find gaps in history data.

BBMACD_v2 is the Bollinger Bands® and MACD indicator in the same place at separate window version 2.

SendAdvancedEmail function for Metatrader 4 and 5 with HTML mailbody support.

BBMACD is the Bollinger Bands® and MACD indicator in the same place at separate window.

Stochastic RSI Expert Advisor.

TMA Slope indicator.

Smoothed RSI indicator.

Smoothed ATR indicator.

Smoothed CCI indicator.

Relative Strength Index Expert Advisor.

Pivot Point Reversal scalping Expert Advisor.

X-liquidex is an Impulsive/Volatility/Breakout EA. It uses Range, Moving averages and Keltner channel. It's logics are simple yet powerful.

The Expert Advisor determines buy and sell based on Moving Averages, it also uses ADX and RSI.

The indicator plots trade history on the chart and account informaton.

Ilan16 Expert Advisor for MetaTrader 4.

Mail all order status periodically.

Break out strategy based on Bollinger Bands.

Easy script to help analyze specified symbol, it opens 8 new charts with different periods and applies a specified template.

Correlation between 8 currencies.

Implementation of zero lag countdown timer.

Some basic information which every trader needs.

A collection of scripts for closing various types of orders.

previous12345678...59