Download MetaTrader 5

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 Code Library for MetaTrader 4

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.

latest|best

Expert Advisor to trade Yen Crosses based on Major Pairs and USDJPY divergence/convergence.

Code example of MACD automated with advanced money management function.

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).

This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately.

This library has smart notification(alert, push and alert) function with an option of having a single notification per candle at a time.

This is a simple indicator that plots Signal History on the chart.

Moving Average based on Ultimate Oscillator. It calculates weighted average of three moving averages (Simple, Exponential, Smoothed or Linear Weighted).

The same EA's as previously released. The additional code allows the user to set parameters on RSI and Momentum.

Build Binary Options strategies to test in the Strategy Tester of MetaTrader 4 with Binary-Options-Strategy-Tester utility from marketplace.

Code based on MetaTrader 4 Moving Average indicator.

An EA fully based on the Ichimoku Kinko Hyo system.

MetaCOT 2 CFTC ToolBox Indicators is a set of MetaCOT 2 indicators which provides access to data from CFTC reports. MetaCOT 2 supports COT reports, Disaggregated COT, TFF and CIT. All indicators are available in source code and can be used to build your trading system.

Holt's double exponential smoothing - the trend component (mt4 version).

Holt's double exponential smoothing with linear forecasting.

This indicator shows how much time remaining to the next bar opening.

Phase accumulation adaptive MACD - completely adaptive MACD

Basket offline chart creator script using geometric mean method.

Template EA that downloads news without the use of DLL.

Byte-wise operation with structures and standard data types.

Script for drawing a price markup.

The indicator displays the moving average for the selected timeframe.

Advanced Bollinger Bands indicator.

Elegant and nimble comparison of 'double' values of the "price".

The indicator displays the total lot and profit for the current instrument.

Class for working with ticks in the MetaTrader 4. It is suitable for creating experts that make decisions on trading based on the analysis of tick data.

Derivative of the Cauchy difference

Cauchy difference.

One of the divergence subtypes.

Indicator that displays the change in price as a percentage relative to the Open price of the current candle.

The Expert Advisor that moves the stop loss to breakeven after reaching certain profit.

The Expert Advisor that performs order trailing after reaching certain profit.

The Expert Advisor is designed for placing managing grids.

Sells at downward crossing of 70, buys at the upward crossing of 30.

The indicator displays the price pivot point.

The Expert Advisor places pending limit orders at the specified distance from the price and trails them after the price with the specified step, applies martingale.

This indicator displays the current spread of the instrument and the time left until the current bar closes.

When run on the price chart, the script modifies the stop loss or take profit of all open orders for the current instrument.

The OandaX OrderBook Chart indicator is designed for displaying the history histogram of orders or positions history on the instrument with reference to the chart scale.

The script is designed for opening trades on binary options via the MetaTrader 4 terminal, if your broker supports this feature.

The indicator is designed for testing manual strategies and for practicing working according to the strategy. It provides operation reports presented as a table, chart, and additionally saves templates with and without the markup.

12345678...81