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

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

This indicator shows good signals based on modified MA.

New version of KNUX Expert Advisor. The strategy works with martingale.

The indicator shows the information about indicator values and important levels.

This indicator exports the indicator values in CSV to use for MATLAB analysis with neural network, SVM, KNN, fuzzy.

The Expert Advisor can be used for Trailing and hidden Take Profit/Stop Loss.

This Expert Advisor is based on one of 17 Proven Currency Strategies by Mario Singh.

Order_EA is a simple visual oriented program that uses drag & drop scripts to control order processing.

Draws two labels: Open-Close and High-Low range of the last closed candle left of the current candle.

Possible uses: Mark session open/close, mark time of regular news release, any other relevant time.

The indicator draws candle objects in a separate window of any one of the following indicators: Percent Range, RSI, CCI, Price.

Hybrid Scalper is the Expert Advisor based on many indicators.

This script makes horizontal lines, that shows max and min price values for a period of time.

TrendCollector is the EA based on price action, Stochastic indicator, specific EMA's (206) crossings, and trade size variability based on ATR and time of a day.

This Expert Advisor is based on Murrey lines, Stochastic Oscillator, Bollinger Bands and Candles.

The EA manages open position with a user defined Trailing Stop.

This indicator shows when to open positon.

NineTFMovement indicator gives an overview of the price movement on 9 timeframes (M1 to Monthly).

ATR Levels indicator marks 5pm NY on the chart along with the 14 day ATR value.

The script deletes all objects on all active charts.

A simple script to close multiple market orders.

The indicator draws two indicators in separate window.

This EA automatically sets preconfigured Stop Loss and Take Profit value on all orders with empty TP & SL.

MA-Based Price Candle.

Clear All StopLoss n TakeProfit on All Orders.

This EA makes it possible to trade semi-automatically using manually pre-defined support/resistance or breakout levels.

Trend following system with breakout of different EMA as entry signal and SL and a breakout of highest high and lowest low as TP.

This indicator draws a horizontal line at the Average/Breakeven Price for multiple positions.

RSI average commodity for gold and silver.

The Expert Advisor shows information about the current spread.

The Expert Advisor makes random buy/sell with automatic Trailing Stop.

The indicator draws horizontal lines corresponding to daily, weekly, monthly highs/lows and connects them consistently trendlines.

The indicator marks the current chart with red/blue arrows to signal a possibility for buy/sell.

The SmartAssTrade-V2 Forex Expert Advisor is a new update for SmartAssTrade EA Version 1.

The script gets all the symbols available on your platform and writes their closing prices for a specific bar to a csv file.

This indicator gathers indicator data and prints them in the csv file.

AutoTStop EA does not work to open the orders, but only helps trader to use Trailing Stop.

Expert Advisor that moves Stop Loss according to Fibonacci retracements or expansions.

The idea is to work with a trigger, based on ADX, CCI, RVI, WPR and EMA.

Easy to use ticks recorder.

Helps trader by setting automatic Stop Loss (SL) and Take Profit (TP) on trades while scalping.

1...192021222324252627282930313233...85