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.

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

PRICE_ACTION EA trades with "PRICE ACTION" strategy works on all time frames major forex pairs.

4H SWING EA trades with 3 EMA's and "STOCHASTIC" indicator and swing strategy works best on 4H time frame major forex pairs.

This Expert Advisor is for the grid trade. Market order is repeated in a single direction at fixed intervals.

BB SWING EA trades with "BOLINGER BANDS" indicator and swing strategy works best on 1H & 4H time frame major forex pairs.

10PIPS EA uses two moving averages to find 10 pips,works best on 1 hour time frame major forex pairs.

MACD 1 MIN SCALPER uses two moving averages and "MACD" indicator on 1 min time frame

1 MINUTE SCALPER EA with 13 moving Averages works best on 1 minute time frame major forex pairs.

ADX EA trades with ADX indicator strategies.

15 MINUTES SCALPER EA trades with Stochastic & Parabolic indicators ,works best on 15 minute time frame EUR/USD .

5 MINUTES SCALPER EA retracement strategy ,works best on 5 minute time frame EUR/USD .

A dynamic version of the standard Heikin Ashi indicator (code compatible with both MQL4 or MQL5).

This is just another version of the well known Super Trend indicator. The code is simplified but it has the same output on the chart screen.

The Smart tunnel is a smart robot for trading with an automatically drawn trend line to act with it and market movement. Enjoy :)

Displays a line when the markets are opened.

1) Close all order on the Symbol Chart 2) Take screen for keep a Trading Journal

Global Variables , Press function key "F3" Change "GMT_Time_Diff" : Diff. Eastern Time with Local Time "_ParaSL_SL" : Stop Loss Pips "_ParaSL_TP" : Take Profit Pips "_Para_Diff" : Retrace Entry , Pips with Parabolic Sar Value Remark : Limit Sell ; Bid Price with Parabolic Sars Value Limit Buy ; Ask Price with Parabolic Sars Value "_Para_lots" : Lots

OCO_EA.mq4 Copyright 2018, Speed Technology Copyright 2011, Trade Pro Company Write By Raymond (Hong Kong) OCO Order on MetaTrader4 Platform (Absolute Free) MT4 (One cancels the other) One pip Limit Order One Pip Stop Order

Relative Strength Levy can be abbreviated as RSL.

" TREND FINDER" EA Trades when there is a breakout from historical minimum/maximum.

This script will create, automatically, a CSV file with all your broker markets listed. We thought would be useful. We use it to integrate it with all our experts statistics. The CSV file will be created in MQL4/Files folder. Good Trading and good statistics!!

"ENGULFING" EA Trades when there is an ENGULFING pattern.

"ICHIMOKU" EA Trades when there is a retracement from "ICHIMOKU" levels.

"PULL BACK" EA Trades when there is a pull back from the trend of 2 Moving Averages.

"DONCHAIN CHANNEL" EA Trades when there is a retracement from "DONCHAIN CHANNEL" levels.

"BOLINGER BAND SQUEEZE" EA Trades when there is an expansion after contraction of bollinger bands.

"PINBAR" EA Trades when there is a PINBAR pattern.

"FIBONACCI" EA Trades when there is a retracement from "FIBONACCI" levels.

RSI&CCI DIVERGENCE EA Trades when there is a divergence of "RSI" or "CCI" indicator.

Execute pending order(s) according to lines in the chart you have drawn before.

Creates Fibonacci Retracement on the chart based on the ZigZag indicator. Tap the "X" or "Z" key to scroll through each swing in the ZigZag, to the right or to the left. For those who do not like clutter on their charts. The indicator can scroll to the right until it disappears from the chart, but it is still there. Scroll left to bring it back. This is one of the most useful tools in my trading toolbox!

This EA uses "Renko" box size on MetaTrader 4 chart. When the price reaches the level where there was a fractal, the EA enters a trade.

EA purposes to always win with cumulative profit and to manage volume.

This tool is for trading with keyboard input, it supports "Send order", "Set Stop Loss", "Set Take Profit", and "Close order".

AutoFibLinesMrVB indicator draws automatically the Fibonacci levels on the chart.

Changes the zoom level for all opened charts.

Change the timeframe for all opened charts simultaneously.

Set all opened charts to use auto scaling or fixed scaling simultaneously.

Library for defining schedules by weekday and time.

Tipu CCI is one of the popular indicators in the Market. The original code for Tipu CCI is modified by removing compatibility with Tipu Panel. This version of Tipu CCI is open for everyone who is interested in developing an Expert Advisor.

A low latency container for working with ticks

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485