Download MetaTrader 5
Test any robot and indicator in two clicks!

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.

previous12345678...63next
latest|best

This indicator shows four price histograms when a chart click event is fired.

Expert Advisor I have developed for News Time Trading (set time and leave it).

The Hull Moving Average (HMA) is an extremely fast and smooth Moving Average that almost eliminates lag altogether and manages to improve smoothing at the same time.

Bounce Strength Indicator (BSI) shows the strength of bounce. It now works in trend and uses Tango Line calculations.

This indicator is a sharp turn to the dynamic change of direction. Like tango steps!

The indicator is a histogram of the lowest/minimum spread only, given in a candle whilst the indicator has been running. Example scripts for placing buy or sell at the lowest spread are included.

Reversal Navi indicator shows the entry point coming after the reversal bar.

Bounce Strength Indicator (BSI) shows the strength of bounce. Inspired by the Wyckoff method.

This script lists current open orders with profit.

This indicator combines two groups of six exponential moving averages of different periods to elucidate the direction and the strength of the short-term and long-term trend.

Log4mql is an MQL4 library for flexible logging to files and the terminal console. It is modeled after the Log4j Java library.

Exports CSV file to analyze trade history for a symbol.

Using Golden Section Analysis of the market for yesterday and last week.

This indicator allows you to plan your financial balance.

This Expert Advisor places Stop Loss and Take Profit for Buy, Sell, Buy Limit, Buy Stop, Sell Limit and Sell Stop orders.

Calculation of pivot and similar levels based on time zones.

This indicator will place up to 6 lines, at prime levels of your choosing, in a successive pattern on the chart.

PairsIndex indicator shows the price index of 7 currencies dealing with 7 currency pairs.

Simple implementation of physical calculation of Momentum.

Library to convert datetime to double and vice versa.

Pivot Point (PP) indicator for use on timeframes < D1 with adjustable preceding day close time, elimination of sunday bars, optional display of weekly and monthly PP, preview of tomorrows' PP and current days' midpoints.

Gives you information on pip value, spread value, daily pips average, how many you can earn, future range of the present day.

Calculation of pivot and similar levels based on time zones.

This indicator draws 3 Moving Averages by median price.

The indicator analyzes price volatility for optimal setting of Take Profit and Stop Loss.

This indicator shows low-volatility periods on the chart.

ZigZag Arrow indicator is based on a built-in ZigZag indicator that replaces the Line Section with Arrow.

An extended version of my RealValue indicator with a new parameter.

This indicator is my attempt to estimate the real market value.

Bound MA (Moving Average) to specific timeframe.

Simple EA template to export trade details from a backtest or live trading to a CSV file.

Expert Advisor based on JJN Scalper indicator.

This is a simple multistrategies EA based on many strategies that work in parallel mode.

This indicator acts by PRICE ACTION to find the strongest trend each day.

Difference between two currencies.

Doji candle histogram detector with alert & email notfication.

Expert Advisor with the system is very sensitive to movement.

Easy to use an open trade script.

This EA is based on 1 moving average indicator, the exit and entry points are determined by a "smoothing factor".

Second-by-second candle timer not dependent on incoming ticks. New candle alert option. Automatic Broker GMT and Daylight Saving Time adjustment.

previous12345678...63