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

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

This uses the standard Bollinger Band calculations to further calculate the width of the Upper and Lower Bands, comparing that number to the Max and Min width of the bands for the last N periods. The results are plotted onto a histogram.

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

Example of using optimization reports in an Expert Advisor.

MMR

Combines a strategy based on MA crossover with RSI and MACD confirmation by cmillion

This is the standard Heiken Ashi, but with the option to spot Dojis and color them differently.

Price Alert MetaTrader indicator plays sound alerts when the price reaches certain levels that are specified by the trader.

This is a tool for you to automatically close all orders when you have dozens of pending orders and open orders.

Simple chart to display the highest and lowest values for a data series over "n" bars period.

Grid is a money maker in weak market, while a disaster in trending market. Maybe you can consider close all positions at some time, and run it totally again at another time, just like a fisher. This is AIGrid System With Manual Control.

EA based on the indicator Fibo-Average-2B.mq4

These indicators are made to show how much profit your EA have made in a certain period.

Calculates the Moving average indicator based on Fibonacci value.

A 15min intrday trading strategy

The script prints the week day and time.

Based on RSI with Parabolic SAR trailing...

This is a template EA with onBar() event.

Based on Alligator and MA indicators.

This EA capitalises on four timeframes SAR, RSI and BB to determine entry as well as time zone.

trend trading EA

This is a control library for MT Tester.

Sicker_EA_DIGITS - daytrading EA

A small utility making MT4 input windows resizable.

An evolution of John Ehlers Inverse Fisher Transform of RSI.

Shows correlation between different MAs.

Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted.

This indicator will trigger an audio/visual alert when the symbol mid-price crosses one of two trendlines placed on the chart.

This indicator will display a symbol watermark on the chart background, showing the timeframe and symbol name in large font.

Based On Bollinger Bands

After open a trade, take a screen shot and send email to you

Indicator for scalping trading - Chanel scalper M1-M15

Two Moving Averages (MA) crossover indicator with alerts and filters.

Velocity = High-Low / Time. Time is changeable to minutes, hours, or days. Seconds is the default. In physics, Velocity = distance / time.

This indicator is developed to show the average movement of any 2 correlated currency pairs of the same TF.

Counts crosses off moving averages, it shows % that all MAs are above slower MAs

Индикатор показывает в рабочем окне графика цены средних линий с других периодов.

This indicator makes use of increase in momentum of cci value with respect to the last peak or bottom.

The classic MT Sample EA updated for full/sub-pip accounts, also now handles ECN/STP brokers. Examples of setting trading hours, and added externals for StopLoss, MagicNumber and order comment.

This is the 2nd version of Source Code

Help me making this better.

GodBot EA is using Bollinger Bands together with DEMA, Moving Average and Candlesticks. (EURUSD M5)

1...474849505152535455565758596061...101