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 - 54

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

Base on 10 point , V003 But have been enhanced

Calculating the difference between the High and Low price to see the price range for every hour.

Based on the HAS indicator.

This indicator displays the variations of the Hurst Exponent which are seen as a predictor of the variations of volatility, therefore giving an indication on when to enter the market.

Script opening orders with specified Magic Number

Indicator draw green and red lines similar to wavy dash. Green is a buy signal, red is a sell signal.

Load history form server Set the option at 1.

Wave Power

This script allow you to modify the price, the Stop Loss or take profit or a pending order by just point and drop a script

Select the pending order you want to delete when you have severals pending orders on a same chart by point and drop over the price of the pending order you want to delete.

This script opens a pending sell order by just point and drop the script in the place you want.

This script opens a pending buy order by just point and drop the script in the place you want. The script will automatically place a "limit buy order" if you point and drop below actual bid. The script will automatically place a "stop buy order" if you

Continuing the theme "tumbler. Trade in breakdown rates timing.

3 Scripts to simplify scalper operations. The scripts puts new OrderBuy, new OrderSell or CloseAllPositiveOrder.

Multi function price indicator

Indicators Multi pairs and multi-functions

The Variant of the oscillator. Entry on change the sign (intersection 0 axise ) . It Is Painted depending on positions of the indicator for 0 axises (+or-) for two senior periods to the current. The Example: m1 red if m5+ m15- , м1 crimson if m5+ m15+.

This EA will send an e-mail about your account details every xx minutes.

I have programmed an EA using Moving Average (from mt4 default Moving Average.mq4) to decide open buy/sell combine with StopLoss using the Money Management.

The indicator alerts at order closing, and reports about its profit.

Displaying of any instrument, synchronisation on bars or on days.

This a bollinger band indicator with an extra deviation level. If you keep the period at 25 and deviations of 1.0 and 2.0, It will show you all your resistance and support lines. And also overbought and oversold levels.

Shows you the value of the highest high, the lowest low and the average of both over the last x Bars (to be set in the input tab).

This indicator is EMAs drawn by Fibonacci numbers.

Simple Expert Advisor. In this version RSI and Trailing Stop has been added.

Detection of a pattern "three Indians" on the basis of the ZigZag.

This EA simply opens two opposing positions at the beginning of the first new bar it comes across. Both positions can win lose or draw. Works best in 5M timeframe and can be optimised using "Open prices only".

This indicator measure the dispersion of the fractal dimension of various timeframes around the fractal dimension of a reference timeframe (which is the longer timeframe considered).

With this system you will be able to evaluate strategies in an objective way, to develop strategies and see immediate trading results after making changes, to test multi-currency strategies, etc. Sample trading indicator is also included.

Hi All, This is temporary fix to the original BPNN.dll posted by gpwr. Now you can play with the NN he created. Please keep in mind this is a makeshift - it will leave unreleased memory so be sure you restart your system after use. ALX

VSA is about reading the market and mapping it out to give you a better understanding of what it might do next.

This indicator combines the best traditions of oscillators and indicators for tracking the trend

three indicators to use with the Raghee Horner method

This indicator displays on the current (lower) timeframe the overall trend on a higher timeframe. It also displays & alerts RSI overbought oversold conditions.

In conjunction with Miranda IM, you can use this library to control your Mirand IM client. E.g. Send and receive messages, set the status, read the contact list, etc..

The Indicator analyses 4 currency pairs, compares them and prints the current divergence on the chart.

The script make TakeProfit and StopLoss on price, where total profit for all of the opened positions will have non-negative.

automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

This is an example of the one of trading news strategies. It can be a part of bigger EA which can play news.

Displaying of candles of any instrument of any period.