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
94

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

1018

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

408

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

545

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

458

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

179

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

137

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

152

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

151

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

153

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

203

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

135

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

175

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

144

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

140

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

142

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

133

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

139

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

2054

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

1865

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

604

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.

542

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.

328

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

319

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

197

Comparing the speed of a binary or a ternary search

491

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

232

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.

657

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

1058

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

254

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

313

The simplest script to send instant PUSH-notifications to smartphone

401

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

466

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

353

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

864

The script is designed for closing open positions.

515

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.

1004

Empirical mode decomposition of the current symbol.

558

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.

481

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.

440

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