Watch how to download trading robots for free
Find us on Telegram!
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 Code Library for MetaTrader 4 - 79


The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

Indicator T3.Lnx. It uses signals Heiken Ashi.

An update for the BW MFI with the displaying of volumes.

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

An oscillator that signals in case of trend changing.

A script for valuation of trades history that is uploaded to the client terminal. The valuation is performed in points.

This expert advisor is based on the 3MACross indicator.

Placing a pending order using the mouse - the first script from the "GMO" ("Graphical Management of Orders") series.

The indicator shows the beginnings and the ends of three trading sessions: Asian, European, and American.

A "Moving" from the board without breaks!

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.

The library contains the functions that are intended to split the access to the trade flow.

The author insists that users may utilize this indicator as an external interface for all other indexes.

An oscillator with the signal lines that are received from the other pairs. It is intended to work with EURUSD on M1, the signals are synthesized from Yen and Franс, the summary mode is present, you can hide an unnecessary signal.

The indicator displays the average amplitude of the price movement.

The indicator displays the average amplitude of the price movement for the specified period.

Lot = 0.2, you can change into 0.1 or set whatever value you want

The amplitude of price movement statistics in a text file. Quickly and comfortably.

The indicator displays the time between sending a quote by the broker and receiving it by you.

The EA was developed to test the strategy published at "Kroufr".

The script draws on the chart the curve of the Polynomial regression with the channel of the mean square deviation.

Displays the time of last quote coming for the current symbol in the HH:MM:SS format.

Draw Dayly , Weekly and Monthly Pivot with BackTest.

A trade system in the Price Channel based on kickback

Choosing a size of the working volume. 3 variants. It can be easily inserted into an EA code.

Simple coding/decoding of entries in Base64.

An EA that demostrates the excellent properties on the H1 with EUR/USD. The MA indicators were used.

The analysis of history data for the absence of bars, identifies their size, length and gap.

A new High and Low Levels every day .. it is perfect levels

The DailyPivot Points indicator helps to compose a picture of market future movements, in distinct from the other tools that hang behind the market.

An indicator of support and resistance levels. The levels themselves are not calculated, as for example the pivot ones, but they are read from the text file of a specific format.

The receiving of the EA testing results by the days of week.

The parameters of working - Places two starting pending orders for buying and selling (the size of the lot is calculated automatically on the basis of the deposit size and the maximum increase of leverage from 0.01 to 0.07 lots) taking into account th

The correlation coefficient between the quotes charts of two currency pairs.

A trade strategy that functions with the pattern MACD "head and shoulders"

At Bookkeeper's request, I've made an "egzpert advizor" by the ZigAndZag indicator, published at:

The EA uses 5 indicators.

A universal EA for the long-time, portfolio trading.

A universal template for MTS developing.

Stochastic and RSI | 10K to 25.5K in 3 Months | 3 Lots Maximum