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 - 18

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

Frequent array operation methods.

Class for comparing two floating point variables.

Indicator WaveMTF Bull and Bear System with Signal and Alert for MetaTrader 5 with options to display signal on the chart.

Basket Closer Type EA.

Correlation market state

Correlation phasor

Correlation angle

Sets of latin, russian characters, digits, punctuation, etc.

Calculates a Exponential Moving Average based on RSI Data, instead of the regular Pricing data. Simple and and to the point.

How to minimize bool parameters in a function signature?

This script opens all market watch symbols with the default template using the selected period. Save prefferred template as default.tpl to have all charts open with same template of your choice. Happy Trading.

This a library for a quick and easy encryption and decryption using base64. The usage is very simple and can be done in a few lines of code. <<< The return value of a method is the required output. <<< Feel free to use this library at your convenience.If it is helpful, please reward me by rating this item on mql5 site. >>From a developer, for developers.<<

Sets of latin, russian characters, digits, punctuation, etc.

This is MQL5 version of Shved Supply and Demand written by Shved and upgraded by eevviill7 with history mode.

Placing pending orders with no need to calculate lot size. Script calculates the proper lot size and opens the pending order(s) for you.

Trade with no need to calculate lot size! This script calculates the proper lot size and opens the position(s) for you.

This Multicurrency EA is based on Currency Strength Indicator.

Have you ever wondered how to safely return automatic objects with functions without memory leaks?

Multi time frame signal

Detect lenght of candlestick

It's a two (2) pairs correlation system to use 3 currencies to make 2 pairs to open hedge orders on those. The expert starts opening four orders for each couple (2 plus and 2 minus) and wait to move prices in one direction to make a grid of orders. For more information, please read the MT4 version of the expert: https://www.mql5.com/en/market/product/34112

It's a triangular arbitrage system (three pairs correlation system) to use 3 currencies to make 3 pairs to open hedge orders on those. The expert starts opening six orders for each ring (3 plus and 3 minus) and wait to move prices in one direction to make a grid of orders. For more information, please read the MT4 version of the expert: https://www.mql5.com/en/market/product/33814

The VR Sync Chart Lite indicator is written for demonstration purposes and shows how it is possible to synchronize the object

FiboPivotCandleBar MetaTrader 5 is a composite of several forex indicators, Fibonacci, Pivot Point, ZigZag, MACD and Moving Average which are combined in this indicator.

Non Lag Relative Strength Index for MT5 Eliminates unnecessary preliminary calculations on the built-in RSI.

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out on it. All Credits of this Amazing indicator to Olexiy Polyakov. I have just fixed the iBarShift and iTime issues, since this is such a great indicator for traders ! Now it is working fine with this files.

RSI with Bollinger Bands calculated on it

Demark Trendlines from Demark Lines for Mt5

Regression Channel with variable polynomial degree - indicator for MetaTrader 5.

Stochastic MACD

You can copy the ticks and history from the MetaTrader 4 to MetaTrader 5

Short description.

TrendFlex indicator based on February 2020 TASC article published by John Ehlers

Reflex indicator (based on February 2020 TASC article by John Ehlers)

This will display the Account Trading Report for real trade.

Margin Calculator, Point Value Calculator, Position Size Calculator, Profit Calculator and Swap Calculator.

The MelBar™ EuroSwiss 1.85x 2Y™ Expert Advisor is a specific purpose profit-scalping tool which success depends on your understanding of its underlying strategy and your ability to configure it. Backtest results using historical data from 6 February 2018 15:00 to 19 February 2020 00:00 for the EUR/CHF (M30) currency pair proves very highly profitable. Initial Deposit : US$500 Investment returns : US$1426.20 Net Profit : US$926.20 ROI : 185.24% Annualized ROI : 67.16% Investment Length : 2 years 14 days (2.04 years) Visit these websites : https://352422.e-junkie.com/product/1645482 https://www.facebook.com/TheSoftwareSuite/

NZD/USD (M30). Historical Data 18 September 2014 to 18 February 2020. Initial Deposit of US$500 acquires a Profit of US$1625.40 or Profit Return of 225% after 5½ Years. Result : Investment Gain $1,125.40 ROI 225.08% Annualized ROI 24.30% Investment Length 5.42 years MQ5 Software Program Attached. Visit these websites : https://352422.e-junkie.com/product/1645482 https://www.facebook.com/TheSoftwareSuite/

This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP.

The Rapid Doji EA is a fully functional MetaTrader 5 Expert Advisor that uses pending orders (one BUY and one STOP) around each Doji candlestick on the Daily (PERIOD_D1) time frame. This is a great introduction to how to build a simple, profitable EA. You can watch, step-by-step, how this EA was built via YouTube videos. See the link in the code for details.

1...111213141516171819202122232425...185