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

MQL5 Source Code Library for MetaTrader 5 - 17

icon

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

MetaTrader 5 indicator that displays the spread meter on the chart.

Compute the daylight saving time changes (start/end of the summer time).

The good old MT4 indicator! Now for MetaTrader 5.

Trade Transmitter will Transmit Trades from MT5 Demo or Real accounts using CSV Files. Each trade request created manually or by other EAs on MT5 terminal will be automatically transmitted. Positions and orders summaries are also transmitted, so the receiver on the other platform can catch up, in case it misses any of the trade request transmissions. This Code will save your time if you are working on a bridge to copy trades between MT5 and any other platform.

Class to provide simple reading mechanism from MetaTrader set files.

The first really 3D indicator "Moving Average".

A class for easy access to the closed position properties.

Demonstration of Canvas's capabilities using 3D spiral quotes as an example.

This is an indicator w/o buffers which demonstrates parallel multi-threaded calculations in chart objects hosting worker expert adviser.

Just for experiment and to demonstrate the possibilities of Canvas. The price is drawn in the polar coordinate system by winding circles.

Simple code for Candle Cross above or below Conditions..

Welcome to the Binary Testinator. The Purpose of this EA is for testing different Indicators to optimize a trade scenario. Everyone has an opinion on what is the best trade setup, and advice is never ending! Better if you test it out...

Perfect Trend Line 2

By using this indicator you can see the normalized price of any chart! You can use this indicator to find the divergence in the market!

Header with iRSIOnArray function for use with MQL 4 or 5 code.

converted stdlib library for MQL5 from the MQL4

iWPR+ is an iWPR %Range function with a positive value.

The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

This indicator predicts future price movements by searching for similar candle patterns in the rate history.

This is a demo indicator with BPNN neural network library ported from C++ to MQL.

This is a multi-currency expert adviser based on reversal strategy with martingale. Original idea is taken from ExpMartin for MT4.

Opens random positions on marketwatch symbols.

Simple risk management tool.

This script opens a buy or sell order randomly having equally spaced take-profit and stop-loss levels.

Simplified Script to find signals based on user parameters

First script selects symbols having spread below specified value on the marketwatch, then opens corresponding charts by appyling timeframe and template stated.

This script allows a user to find out instance_id of the running MetaTrader instance/installation.

Custom Price Chart using a simple Artificial Neural Network that tries to project price movements into the future. Not very useful for trading, but fun to watch and learn ;)

Indicator calculate the average price

Scans multiple symbols looking for when the price crosses a pivot point or when xxPoints Near or bounce off pivot then it alerts the trader.

Monster Trend indicator that uses data from several time periods.

Trend indicator similar to Ichimoku Kinko Hyo, with a number of drawing options and calculation parameters.

NELODI Trading Terminal is a collection of Indicators and an Expert Advisor, which work together to provide a complete solution for manual Trading, primarily designed for Scalping.

Separate the construction of a complex object from its representation so that the same construction process can create different representations.

Define an interface for creating an object, but let subclasses decide which class to instantiate. Lets a class defer instantiation to subclasses.

Provides an interface for creating families of related or dependent objects without specifying their concrete class.

Rma MACD

When the subject changes, it notifies and updates its observers, who know nothing about each other.

Encapsulating a family of interchangeable algorythms which can be modified independently from the client.

A way of sub-classing more functional objects, dynamically.

1...101112131415161718192021222324...183