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

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

Calculator-panel to calculate profit/loss. Data is calculated either when moving lines, or changing the parameters in input fields of the entry price, lot, profit or loss in pips or in deposit currency

The indicator demonstrates the example of using the FileReadInteger() function

The script demonstrates the example of using the FileWriteInteger() function

The script demonstrates the example of using the FileTell() function

The script demonstrates the example of using the FileSize() function

The indicator demonstrates the example of using the FileReadDouble() function

The script demonstrates the example of using the FileWriteDouble() function

The indicator demonstrates the example of using the FileReadDatetime() function

The script demonstrates the example of using the FileWrite() function

Alternative trend indicator based on the breakthrough pattern of closing the previous bars extremums

Entry signals on the system "Monday"

The script demonstrates the example of using the FileReadArray() function

The script demonstrates the example of using the FileWriteArray() function

The script demonstrates the example of using the FileGetInteger() function

The script demonstrates the example of using the FileIsEnding() function

Intraday Fibonacci levels

The script demonstrates the example of using the FileFlush() function

The script demonstrates the example of using the FileMove() function

The semaphore trend signal indicator

The script demonstrates the example of using the FileDelete() function

The script demonstrates the example of using the FileCopy() function

The script is a simple example of using the FileFindFirst(), FileFindNext() and FileFindClose() functions

The indicator allows defining the trend direction

The semaphore signal indicator fixing moments of breakthrough of the zero level by the iCCI technical indicator and displaying these moments by color points

The indicator displays in a separate window not only volumes, but their average value on history. The average value of volumes is used for drawing the forecast of volumes value for the current and the following days

Emulator of functions for working with objects. It gives possibility to see the objects after testing in the chart

Simple trends visualizer

Donchian channel is a technical indicator developed by Richard Davoud Donchian.

The local extremums breakthrough indicator

The QQECloud is the indicator of quantitative and qualitative evaluation based on rather complex calculations of the RSI smoothed indicators.

The Expert Advisor on the breakthrough of the range defined by the signals of the Narrowest Range Signal indicator. Handling stop orders

The Expert Advisor using the TrendContinuation trend indicator.

Smoother Relative Strength Index.

The indicator which fixes Pin Bars in the chart

Smoother Commodity Chanel Index.

The Moving Average which uses quite a simple procedure on decreasing temporal lag based on the increase of the Moving Average period.

The indicator which displays the beginning and the end of the trend

The indicator for pair trading. The simplified variant of the "ind_2_linep1.mq5" indicator

The RSI indicator drawn on the basis of the smoothed price series with the added signal line.

The Renko Line Break indicator determines itself a synthesis of renko charts and three linear breakthrough

1...145146147148149150151152153154155156157158159...184