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

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

Indicator shows entry and exit points for all deals and account statistics on the chart. It is very useful for trade analysis.

Indicator shows a different Forex sessions and the market hours of the exchanges.

Indicator shows vertical lines at last week bar.

It calculates and shows Stop Loss levels (for Buy and Sell positions) using the method described by Bill Williams in his book "Trading Chaos". A new feature has added: now all it can be analysed in history.

It shows a trend table for a several timeframes in the bottom left corner of the chart.

Alfa Release English

A EURGBP/GBPUSD non-scalper robot

I've modified the "Next price predictor" posted by gpwr to allow any developer to create its own BPNN predictor easily, even without understanding how a neural network works. So easy even beginners can do it. Included: MA predictor and RSI predictor.

This oscillator is based on Ehlers' Two Pole Super Smoother, converted as an oscillator, and smoothed using Ehlers' Instantaneous trendline.

When the price is approaching to the Signal Lines, the indicator sends Alert.

The library contain several functions to get an additional information about the symbols, loaded into the client terminal. ATTENTION: Undocummented solution, it may not work in the other versions of MetaTrader

This script will allow you to use the information about the market watch and the client terminal settings. It can be very useful to study the client terminal and market watch options.

The multicurrency expert, which uses the "Stairs" strategy

Display Candles from a higher timeframe on top of your current chart (ex: see H1 candles on top of a M5 line chart)

A WinSock library and a client/server example

This EA will use the deposit currency as Stop Loss and Take Profit for each trade, once profit or loss has been reached it will close the entire trade.

Pending orders ADDED. This program is created for training on historical data.

Probably the best Awesome Oscillator (AO) available with zero line crossover and signal line alerts.

MA-like indicator based on Hodrick Prescott Filter

Automatic marking of the chart by the time and the timer.

Индикатор Аппроксимации Синусоидальных волн.

The adviser on the indicator ZigZag.

Using only ADX, this ea can make money, work better on M30

Улучшенные полосы Боллинджера

Timeframe indicator. Customizable timeboxes on any chart.

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

Продолжение темы "..взгляд по другому...", на этот раз работаем с Haiken Ashi.

This indicator informs you about the depth of the trend.

An alternative version for counting MA Angle.

Индикатор MACD, совмещённый с гистограммой MACD, усовершенствованный для использования импульсной торговой системы, предложенной А. Элдером.

If you have placed order and suddenly have to leave: don't panic! This EA will set initial Stop Loss, and after your position will reach settable profit threshold, it will start to apply proportional Trailing Stop.

Program for logging of non-market quotations from brokerage companies with MetaTrader platform.

The program-simulator v.2 for perfecting strategy, testing of indicators and trainings of trading skills.

This indicator informs you about the trend and offers a good entry possibility.

Indicator showing the Min/Max values for the last X bars

This EA can help users to manage opened orders. It takes line objects and indicator curves as tp and sl. When the price reaching them, it will close the orders.

This script is based on the 4th dimension of the Bill Williams chaos trading system. The advancement is that this script takes advantage of the Heiken Ashi candles.

Dollar Index - user can change parameters. Default same as USDX contract. Opens as a custom indicator in MT4.

1...565758596061626364656667686970...101