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 - 27

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

BBWin is the Bollinger Bands® indicator in the separate window with trend lines.

Expert Advisor that closes orders after defined profit or loss.

The function will filter the trade positon. If the current time in the time you set, the function will return true.

The indicator shows candle end time and current spread.

Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right.

The indicator helps to find the correct trend before enter the market.

Trading information with Fractal trend.

The indicator calculates and draws the highest, lowest and median point of certain period.

The script recognizes and shows peaks and valleys of certain period.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

3 EMA Crossover Indicator.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

Realize virtual profit trailing.

Parabolic SAR ADX Expert Advisor.

Average Modified Moving Average.

Expert Advisor template with Trailing Stop, autolots, candle scan, buy block sell, buystop / sellstop. Working ea example and many improvements in template!

This Expert Advisor is based on SMA, ADX and SAR indicators.

Advanced ADX indicator.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

The oscillator for intraday trading.

Library to work with Skype.

The indicator shows entry points according to AC indicator.

MACD indicator.

Plot the STOPD Price Levels based on user specified timeframe.

The Expert Advisor shows the current values of World Stock Indices from Google Finance using WebRequest function.

The Expert Advisor shows the properties of the signals, allows to modify the signal copy settings and subscribe or unsubscribe to the selected trade signal.

Typical zigzag indicator

Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

3 Dimensional MACD Ribbon.

This is a percentage of the user set stop-loss or profit robot.

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.

Advisor exposes not visible to brokers levels StopLoss, TakeProfit, Breakeven, Traling stop

An indicator based on three moving averages.

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

This indicator combines Moving Average (MA) and Average True Range (ATR).

The indicator shows the channel.

This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

1...202122232425262728293031323334...84