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

Source code library - Expert Advisors, Indicators and Scripts

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!
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

MQL5 Source Code Library for the MetaTrader 5 - Scripts

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

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

previous12next
latest|best|downloads
108

The script allows to set transparency level of the client terminal window using Windows API.

1029

The script calculates candles statistics (the minimal, maximal and average values of candles body and shadows) of the current chart.

420

The script is assigned to a hot key for quick change of charts around in a circle.

556

Easier visual analysis of graphical objects created by the strategy tester.

469

The script for searching the maximum, minimum and average values of candlestick size

197

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

153

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

168

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

167

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

171

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

219

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

151

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

194

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

166

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

162

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

163

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

155

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

160

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

2130

These scripts are designed to sell with fixed values of Stop Loss and Take Profit in points from the current price

1935

These scripts are designed to buy with fixed values of Stop Loss and Take Profit in points from the current price

628

The OpenSellPosition_X script is created to sell at fixed values of Stop Loss and Take Profit in points from the current price. Position volume is determined on the basis of the level of losses.

561

The OpenBuyPosition_X script is designed to buy at fixed values of Stop Loss and Take Profit in points from the current price. Position volume is determined on the basis of the level of losses.

340

MPC is a script which measures (searches) the most frequently occurring candlesticks

331

The script imitating the One Cancel Other orders functional. When one order is triggered, the others are deleted.

208

Comparing the speed of a binary or a ternary search

506

The script for manual trade: when achieving the limit price the script sets stop order and logs out

244

The CSV file was written to write economic news but there was a problem that the Terminal does not distinguish lines, exactly their number when working with the CSV file. That is why I decided to share my solution of this problem.

672

The script calculates Pivot Point on all the symbols from the market watch and displays the results in html-file.

1073

Export of all necessary instruments and time frames in one click with load and checking history

265

This script attempts to demonstrate the power of using support vector machines in solving classification style problems.

332

The simplest script to send instant PUSH-notifications to smartphone

422

This script displays several subcharts in a single chart window according to the number of currency pairs in Market Watch menu.

483

This is an informative script displaying data on the current trading pair in the chart window.

370

This is an informative script displaying data on the current trading account in the chart window.

877

The script is designed for closing open positions.

526

The script is developed for reversing open positions with fixed Stop Loss and Take Profit values in points from the current price and the volume depending on the reversed position.

1051

Empirical mode decomposition of the current symbol.

575

The script is developed for placing a SellStopLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price and order trigger prices.

496

The script is developed for placing a BuyStopLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price and order trigger prices.

455

The script is developed for placing a BuyLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.

previous12next