Download MetaTrader 5

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

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.

latest|best

Based on ibull/ibear, but compare power to define good entry bars.

Kijun Sen and Envelope.

Any symbol Bid, LastDayDiff(% or pip), Spread, Swap, Hi-Lo Today, Hi-Lo Week, Hi-Lo Mounth view to separate window.

Buy only using High Previous candle Breakout H4 timeframe

This script can close all your open positions in your MetaTrader 4, or you can select different similar positions.

Writes Account Balance, Equity, Margin, to a .csv file in regular intervals, and alerts via email when certain Margins levels are reached

Trendsignal indicator with potential area drawn on chart.

Finds and draws channels using all timeframes from 1 minute to 1 month

Limited distance between the upper and lower donchian line.

Indicator to save screen shots of your charts at regular intervals, based off the timeframe of a chart. Great for analyzing combinations of indicators, Price Action, and multiple timeframes.

Any symbol Swap, Spread, Hi-Lo Today, Hi-Lo Week, Hi-Lo Mounth view to separate window.

Aeron Expert Advisor is well known. I am the author of Aeron Expert Advosor. It is based on martingale pattern and all of its parameters are fully customisable.

Ichimoku with Moving Average instead middle Price channel (Donchian channel) .

Export text to Excel in real time using native DDE library provided by Windows

Uses up to 4 visual "sliders" in the chart window to quickly and easily adjust values of any technical indicator in a separate window. Based on MetaTrader 4 chart objects, not DLLs.

Different view of the figures and the patterns of the day ....

Writes days of week above candles.

Moving average on the basis of individual price

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

Indicator displays information about the current positions

This is a new implementation of the SuperTrend indicator for MetaTrader 4. The SuperTrend indicator is an application of the concept of MAE (maximum adverse excursion), which was introduced by John Sweeney in the mid-nineties.

Expert Advisor opens deals based on price consolidations

The Expert Advisor places buy trades when RSI crosses above 73 and sells when it drops below 27. A trailing stop based on ATR protects profits.

See http://forum.mql4.com/54660 for getting a connection between highs and a connection between lows. I made a zigzag this way.

Improvements to the previous version.

I wrote a new indicator to find the range bound period, then we can place order when the price break the range bound.

The indicator specifies on trend and lateral movements of the price.

The moving average that divides the prices for classes. The classes with extreme price get bigger weight (importance)

Drag and drop wave counts.

I'm looking for a skilled programmer that can take my existing EA alert and fine tune it. I have a solid set of rules that consistantly make me money, and I am looking to automate the signals so that I can effectively manage several currency charts at th

"Follow Your Heart" is an Expert Advisor that open an Order strictly by price increase/decrease during nBars on the M1 time frame (without any indicators).

This EA will open a Long Order if the Price move above yesterday High or Short Order if the Price move beneath yesterday Low.

Expert Advisor based on the ACD and MA Attention: this is not a Holy Grail

Trades when two moving averages cross each other

Trades using parabolic SAR signals

Shows you profit history in real time.

Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations.

Moving Average on Moving Average

Strategy is founded on support and resistance AND the theory that the market moves in trends or consolidated horizontal movement containing smaller ranges. It uses default custom indicator moving average and partial order closing. -WhooDoo22.

Execute Script only one time and it will delete all pending orders i.e Limits and Stops by this script at once. No Need to run script for each order separately.

1...232425262728293031323334353637...83