Watch how to download trading robots for free
Find us on Twitter!
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 - 61

icon

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

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.

Trailing can be carried out using the fractals, the extremal bars in the past or using the specified number of points. Can run as a single Expert Advisor or a script, together with any Expert Advisor.

Uses the ideas of envelopes, moving averages and parabolic SARs for entry and exits. Made for M15.

Multi Moving Average v2 - is a new version of the indicator Multi Moving Average.

In this field give a brief description of your script (1-2 sentences).

On of my books says about moving average, that there is no "magic settings", this indicator tries out a lot of possible combinations between a long and a short moving average.

KoliEr Bands give you a step by step view for support and resistant levels. If Bollinger Bands is Batman, KoliEr Bands is Robin. Use them together.

Imports live trades and orders from the firepips twitter page

This indicator shows changes in the direction of a moving average. It works like looking with a microscope at a moving average curve.

This version use Accelerator Oscilator as main indi to recognize the signal

This Expert Advisor will count all the pending orders for the chart it has been placed on.

Displays on the chart peaks of tick volume at exact time points

The Indicator analyses last 100 waves and shows its sizes, average volumes and average velocities (in pips/hour) for each wave.

Now with added options and features. pSAR Alert plays a sound whenever a first parabolic SAR signal appears.

Now with more options. Opens and closes orders on first parabolic SAR signals.

If you have a strategy to trade with it, You can use this EA and set Your Parameters And trade with this expert

This indi draws renko boxes on normal TF window.

This Indicator shows the current pair's current spread in the upper left corner.

Раскраска баров в зависимости от направления тренда.

An antimartingale which tries to maximise the gain/risk ratio. I have a 5 digits account, let me know if you have any problem with this.

This system use many methods to trade , you can trade about 52 different strategies,

EA based on the maximum and minimum price values of the previous trading day.

An expert advisor designed to alert you when every first parabolic SAR dot in a sequence appears.

An expert advisor designed to open and close orders at every first parabolic SAR signal i.e. when sequence shifts from below the price to above and vice.

alerts the user if the macd is above 0.0006 on 5m or below -0.0006 on 5m

A trading system based on the Vortex Oscillator.

1...545556575859606162636465666768...101