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

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
latest | best

This code was made for a school project. It uses both the golden ratio and Fibonacci in order to make trades.

What if we could have two Stop Loss instead of one?

When you scalp manually, a simple EA could be an assistant to set StopLoss / TakeProfit for each trade you open.

This EA was created for learning purposes and can be developed for trading purposes.

Short description.

With the aim of educating you how to make trading tools that are simple and can be used immediately.

It's a auto scheduler.

This EA is used as a trading tool to help us close all orders with a specific target in the form of money or cut loss. We can filter orders by magic number.

Add on tool to support our trading by shifting stoploss (SL) to the profit area

For the purpose of learning to create an EA, I will share how to make an EA that uses 2 cross moving average indicators as a trading position entry signal.

The simple trading panel is a trading tool that is very interesting because it will allow you to predefine your StopLoss and your TakeProfit in term of pips.

Deep learning Expert advisor , This EA will collect market patterns to predict the next Patterns.

Fibonacci PRO ⭐️⭐️⭐️⭐️⭐️ You want to become a constantly profitable 5-star forex trader? ⭐️⭐️⭐️⭐️⭐️ FIBONACCI PRO is a professional expert for trading according to the Fibonacci Retracement method. 1. MANUAL_CONFIRMATION - manual confirmation of transactions; 2. FIBO_CLOSE_PRICE - FIBO calculation at closing prices; 3. RSI_FILTER - input filter by modified RSI; 4. ATR_FILTER - ATR input filter. 5. ZIG ZAG

This is a great template to start from if you're looking to build an MT4 EA quick and easily with your own rules/custom indicators. It has all the nice features for managing the account and the trades.

Force=((Bid-close)/close)*10000;

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

This is just a framework for building a simple EA

A simple but fully functional program that demonstrate how a martingale can work for you. Just change the entry analyis using your own scalping strategy and your personal money management style, then optimize.

Example how to use file write function

It only demonstrates the possibilities of the multiplier.

This strategy is the well known set & forget with the ALERTING system. It is very useful on different trading scenarios. I urge you guys to always use trading tools that will make your live easier. So instead of watching the charts and the time and all day long, you can use this indicator that will watch the charts for you.

This is a straightforward script for strategically managing open trades and pending orders.

I am sharing this pyramid. It is not perfect but works for me.

Any account type,leverage and deposit

On all MT4 market execution accounts (ECN, ECN Zero and Pro), preset stoploss/takeprofit price levels are not permitted. If a client wishes to specify stoploss/takeprofit values for an order, the client must modify the existing position after the order is opened. This EA helps a client effortlessly ensure that an on order is modified to desired stoploss/takeprofit values a short while after a trade position is opened This is especially helpful for scalpers who want to avoid the trouble of manually editing trade properties every-time a position is taken on a financial instrument. EA by Maduagwuna E.I

The power of Evelopes with trailing stop.

The source code is only a guide for the development of your EA.

Expert Advisor in MQL4 with 4 signals based on 6 Indicators. Works at any stock. If anybody wants to translate it to MQL5, it would be great. I still do not know MQL5. If you do, please, let me know.

This expert shows the maximum profit level that touched by price line for your first position on chart window. the expert don't need any variable or specified timeframe. Please vote this program to help know this program how much helpful. Thanks for your vote stars.

Synchronous change of a trading instrument in all charts

This Expert Advisor based on Envelopes indicator from MT4, my best TimeFrame is 5 Minutes on GBPUSD.

Manage risk like No Nonsense Forex easily in MT4

This Expert Advisor based on Relative Strenght Index, Commodity Channel Index and Moving Averages MT4 Indicator for Signal. Please test in Demo Account first. Regards.

"Currency Strength" EA finds the strongest\weakest currency from 8 major currencies and trades with moving averages, has Trailing Stop Loss &Take Profit works on all time frames major Forex pairs.

This is a simple function for the initial control of an expert.

MT4 Expert Advisor based on the CCI indicator

Close your positions in profit virtually

Fully operational ea for real/demo accounts or educational purpose

It's a triangular arbitrage system (three pairs correlation system) to use 3 currencies to make 3 pairs to open hedge orders on those. The expert starts opening six orders for each ring (3 plus and 3 minus) and waits to move prices in one direction to make a grid of orders.

Free utility for manual orders placement.

123456789101112131415161718192021222324252627