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 Codes of Expert Advisors for MetaTrader 4 - 18

icon

Various applications to automate analysis and trading are available in the 'Expert Advisors' section. It features various applications based on different trading algorithms and provides different degrees of automation. You can find simple EAs and complex trading robots that can fully automate analysis and trading processes.

These applications can be downloaded and run in MetaTrader 4. It is recommended to test and optimize Expert Advisors in the Strategy tester. The Expert Advisors from the library can be accessed from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

This is the 2nd version of Source Code

Help me making this better.

GodBot EA is using Bollinger Bands together with DEMA, Moving Average and Candlesticks. (EURUSD M5)

LineOrder gives you the ability to place an order by using the horizontal line object from the toolbar menu. You can also control stop loss and take profit buy moving its horizontal lines.

The purpose of this EA is to receive by email the price quotes of the symbol selected and daily % change, as well as some information about your account. You can insert up to 50 different symbols of any type (FOREX, CFD).

This is first EA I am providing for everyone to see and work upon. This is written by me. This EA should be used on EURUSD 15min with initial capital of $1000.

This EA automatically moves your stop loss to break even at a predefined level.

ORDER MANAGEMENT FOR EA DEVELOPMENT - v1.5

Alerts you whenever there is a moving average cross

Places OCO Order, One pip Limit Order and One Pip Stop Order on Metatrader 4 platform.

Backtest your ideas in ST with simple order initiation. 100% visual, no typing, just drop a horizontal line on the chart to order! Focus on your indicators and trade with ease. Has SL and TP lines as well as PC line for partial close. Externals: BSRa

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

This EA alerts you whenever there is a MA cross.

Join me to develop this project. It has been my project for 2 years now and running.

The Expert Advisor places stop orders and waits for breakdown of the last day or time period.

Use the tester as Simulator

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

Opens and closes orders using parabolic SAR signals

EA Based on MAM_Crossover Indicator by pramono72 Code base: http://codebase.mql4.com/7113

Simply 450% profit

Uses movements of the relative strenghts index to find long-opportunities. Profitable (and especially reliable) parameters for short-positions couldn't be found

EA designed on the idea of the indicator Nik_PSAR_2B. EA works on the Symbol = "EURUSD" and Period = M1.

Working as scalper our long trading manage by settings. For scalping use 1-25 signal period, for long trade 25-100 and change period. Always use 2 % money management using this software!!!!

A tool to auto insert preset Take-Profit and Stop-Loss limits when an order is executed. Specially when doing scalping manually where you need quick setting of stop limits.

Nothing to say, the people of the game more money

Trades news events.

Expert Advisor trading with Local High/Local Low (msl/msh)

You can adjust SL/TP by dragging the lines drawn by the EA.

Stop-Orders are used to enter a position. Pending orders and postions are handled based on a daily system. Risk and money management are included as well as time and dayfilters. The entry logik (STP-value calculation) can be easily changed.

Betting Strategies Simulator

Powered by level equal to a whole cents (1.38 1.39 1.40 etc.)

Underlyings for this EA are the daily opening (o1), the daily high (h1) and the daily low (l1). The distances from each other in a maximum of 3 steps form the filter base, which is confirmed by the CCI.

Opens orders using moving average crosses.

Opens and closes orders using parabolic SAR signals now with improved features.

an EA , run with a profit this is Error EA in error, so you can correct the EA, But no use EA

Based on the idea of pramono72 I wrote an Expert Advisor for it. It may also server as a simple way to write expert advisors using an include file and very few code lines.

This EA is based on the indicator RSI_MA. EA designed for EURUSD, D1.

EA designed on the idea of the indicator Nik_PSAR_2B (http://codebase.mql4.com/6934). EA works on the Symbol = "EURUSD" and Period = M1.

EA works at the "slow" time (OpenHour_1 = 0) - North American Eastern Standard Time. EURUSD, H1

The script can apply the trailing function based on the portfolio profits, i.e. Stop Levels can be set upon reaching the total breakeven level of all the orders in the selected direction.

1...111213141516171819202122232425...29