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.

Submit your code
latest | best

Run your Profit Long or Short

Clone of Smart Envelope from tradingview

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

Redrawing trading position for history data and current trading position

This RSI stop and reverse indicator makes use of RSI on price v2 code. If required the RSI level bands can be hidden.

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.

RSI levels rendered on price as bands V2. This updated version now mirrors the same RSI level inputs. The RSI 70 level line is blue The RSI 50 level line is gray The RSI 30 level line is red Length and Levels are adjustable

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

RSI levels rendered on price as bands

Give the return zone of the MACD Zero Lag

Extension for the datetime with DayLightSavingTime adjustments.

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.

Draws Pivot Points Formulas

Braid Filter indicator of Robert Hill stocks and commodities magazine 2006

This one may not be the fastest, but it will definitely close all your positions.

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

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

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

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

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.

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

Colored volumes at the bottom of the chart

A light header-only version of Log4mql that provides standardized logging.

Corrected moving averages

In MetaTrader 4, we intend to calculate the intersection coordinates of two straight line objects with different slopes using MQL4.

With this script, you can send a message from MetaTrader 4 to Telegram.

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

Script that opens 2 orders - one set to close percent of position when profit equals stoploss, another set to close at TP

Relative volume trend

Relative price trend

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495