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

MQL4 Source Codes of Libraries for MetaTrader 4 - 3

icon

Libraries are small sub-programs that can be used for developing new applications. They do not execute trading or analytical functions and cannot be run in MetaTrader 4. Their purpose is to simplify development of new applications in MQL4.

These applications can be downloaded and used in the editor of trading strategies MetaEditor.

Submit your code
latest | best

An implementation of a HashMap in MQL4

Connecting to MySQL server from new MQL4.

mt4R, modified for supporting new MQL4

This is a simple (cheap) UnitTest include library for new MQL4

ALGLIB math function library (v. 3.5.0) ported to MQL4.

Export text to Excel in real time using native DDE library provided by Windows

Improved functions iAC, iAO and iBearsBulls

Improved functions iBands и iMACD.

This is a control library for MT Tester.

This library implements two simple HTTP GET / POST function and does not require external dll(s).

version 1 of bindings to zeromq library

Retrieve a list of all Symbols/Instruments known to the Server with MarketInfo output to a CSV file

placed utility functions from ryaz's server socket into socket.mqh, makes it really easy to use. comes with similar server example.

Hi All, This is temporary fix to the original BPNN.dll posted by gpwr. Now you can play with the NN he created. Please keep in mind this is a makeshift - it will leave unreleased memory so be sure you restart your system after use. ALX

In conjunction with Miranda IM, you can use this library to control your Mirand IM client. E.g. Send and receive messages, set the status, read the contact list, etc..

Library for virtual trading.

Record the performance of individual strategies real time in offline charts.

A WinSock library and a client/server example

This function calculates the heights in pixel of all panes in a window.

The function changes colour of object. An example of realization in the indicator.

The function changes the name of a font. An example of realization in the indicator.

A package of libraries with the file functions for working without the limitations in any directories.

The function of adduction of the price to the correct form for the given symbol by means of rounding or discarding the excess.

This set of functions enables one to capture mouse events on your trading chart. One can simmulate buttons to trigger actions in the EA.

Running an EA in a virtual account

Universal EA scheme to enable easy multiple strategy implementation into one EA

Functions for processing the orders of Spot currency pairs, Spot Gold and Spot Silver with error handling. OrderProcess() strengthened. New functions Lots, OrderCloseByRetracement, OrderModifyTS and OrderSendI added. Revision 2 has been used to run expert

Wrapper for reading and writing to MySQL

Stochastic net for the the classification problems with the instruction provided.

The automatic calculation of the lot size from the specified percent of free assests.

The calculation of the amount of lots considering the possible loss. The maximum loss volume is specified in percents of the current balance.

A library of MySQL 5.0 error codes If you use a connection to the MySQL database in your EA, indicator or script and it doesn't work or something goes wrong then this library will allow you to find out what error is returned by the MySQL database.

The library is intended for working with the global graphical variables.

Work with any http servers...

A function for calculation of the area of three objects: a rectangle, ellipse or a triangle.

The library contains the functions that ease the writing of EAs.

This library was created for testing the portfolio of expert advisors.

YURAZ's library, determining the switch to dayllight saving time and revert to standard time

The implementation of the pause between the trades for all EAs that are currently trading.

The library contains the function that monitors the appearance of the trading events in the MT4 client terrminal.

1234