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

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.

To post a new code, please log in or register
latest|best

With 3 settable parameters (currency pair, timeframe, and template) opens a new chart on your screen at the initalization period of the script.

EA for Trading on News event, will set BUY and SELL Stop (pending order) then will delete one pending order after open BUY/SELL occur (OCO) on specifed date and time.

Draws different color candles above and below MA lines. Supported MA methods: SMA, EMA, SMMA, WMA & TMA.

This Indicator draws different color candles above and below a Kijun Sen line.

Draws Tenkan and Kijun with Color Fill between 1. Price and Tenkan, 2. Price and Kijun, 3. Tenkan and Kijun and 4. No Fill.

The indicator draws 2 Moving Averges with different color filling.

Adds account information to chart: Profit, Balance, Equity, Free Margin, Margin and Margin Level %. On chart click hide/show account information. Show Profit only option.

Displays open position: Symbol + Lots + Points + Profit (Updated for MT4 Build 600)

Display up to six Times Zones. Hide Time Zones not required.

This indicator shows when to buy and sell in the right time..so you don't miss the train.

Tracking Variable Spreads with an Offline Chart

Timer is a break trough system.

The idea of this robot is to catch long trends. Crossing the 15Min moving average triggers buy and sell orders.

With the MTF RSI Indicator you can easily identify the oversold/overbought levels on several different timeframes by using only one chart.

Cloud indicator based on 2 Moving Averages.

This is an updated version of b Clock.

This is an indicator that uses horizontal lines for calculate lot size for next order. You can drag them up and down until you will get right numbers for your risk and money management that is based on your strategy scenarios.

Support and Resistance levels using the psar logic.

Trade EURUSD 5 min scalping or similar. Good Luck.

System open positions after crossing hand drawn trendlines on chart.

The indicator draws true Key Level on chart based on DiNapoli Fibonacci levels gives point of intraction by buyers and sellers.

When the order reaches the specified profit, then EA automatically moves StopLoss to BreakEven.

An EA with automatic trading at setable minute using stochastic indicator and scalping lot

Record, storage and displays of data, fully tick chart in MetaTrader.

This scrip will close all your open positions in your MT4. You just need to drag it to the chart.

This EA will watch your open positions and close the ones that meet the preset conditions.

Yet another pivot points indicator, light and customisable.

This indicator, recognizing trends in an early stage, can be used to get ready for a break-out scenario.

Indicator that shows you market push and future 80% of next big trend.

Detects fake, old, stale, or other erroneous ticks that come to the MT4 platform. These rogue ticks can sometimes cause a take profit, stop loss, trigger orders and/or any price-related action to occur when the price is actually no longer actionable.

This indicator shows simple Support and Registance lines.

The Great Hunter, is a Holy Grail attempt, by using a mix of trend following indicators, volatility filters and martingale system (optional).

This EA puts two simultaneously Pending Orders (Buy Stop and Sell Stop), when activated one of two pending orders, the reverse pending order is closed.

This script can close all your pending orders in your MT4, or you can select different pending orders.

An EA meant as advanced Order-Placement tool, which tries to help its user to set the "Stop-Loss"-level farther away with the same or less losses than normally expected.

X trader trades using two moving average crosses.

It trades huge amount of trades with small lot sizes. Does not use indicators or price formations, buys/sells in growth/fall of price.

AntiFragile EA is an innovative trading strategy built on the idea of Antifragility professed by Nassim Nicholas Taleb. The general idea is to gain from disorder.

This Expert Advisor trades Parabolic Sar (PSAR) trend changes and applies a fast exit strategy. The parabolic SAR is a technical indicator developed by J. Wells Wilder. Basically, if the stock is trading below the parabolic SAR you should sell. If the sto

The Stretch is a Toby Crabel price pattern which represents the minimum average price movement/deviation from the open price during a period of time, and is used to calculate two breakout levels for every single trading day.

1...242526272829303132333435363738...85