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

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

RSI dual features Cutler RSI with standard RSI full formulas

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

Clarity index is a purely volume based indicator which is constructed on basis of volume, range and positive/negative candle count. It reflects the strength of trend with respect to volume.

MultiVote On Balance Indicator displays a higher resolution of trading volume activity to the regular On Balance Volume calculation.

This is just a framework for building a simple EA

New fisher to catch trend with indication UP and DN

Stock trading indicators. BIAS.

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.

ADR,AWR,AMR,Draws Average Range Lines

This script was developed in order to help us detect if a chart is actually trending or going nowhere.

The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495