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

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

The Blockbuster EA.

Binario is not an automated trading system but a trading idea. It consists of entering at a breakout and following the trend. The suggested method can be used on all time frames.

The Avalanche_v1.0 Expert Advisor.

The Expert Advisor using artificial intelligence - a single-layer neural network. The "Perceptron" is used for identification of the quotes movement direction.

This indicator version was created using the code for Omega, written by John Ehlers

Universal Expert Advisor for working with any Custom indicator, that draws buy/sell arrows.

Expert Advisor that has been repeatedly discussed on the forum.

The NinaEA Expert Advisor. It uses the NINA indicator. And NINA uses 0_IndInverse.

The indicator of trading signals based on the divergence of the RSI and CCI values

This EA was discussed at Alpari. Opening when moving against the trade for the period of 0-n1 by p1 points after moving towards the trade for the period of n1-n2 by p2 points. Closing by TP or SL.

The program is designed to facilitate the routine work of the trader on testing and optimization of experts, performing sequential multi-currency, multi-timeframe and other types of tests and optimizations.

The EA uses the values of the Stochastic indicator on the H4 timeframe to open a position, and after that it builds up based on the martingale principle.

Example of an equity indicator based on the market profile

It uses VMA - ЕMA, which automatically adjust the smoothing percentage based on the market volatility.

The Wss_trader EA. People recommend setting the trading hours to 7-17, trailing to 60, metrics to 36 and to look back to 2 months.

Zs1

I came across an expert that was discussed many times on the forum.

Three-Line Break charts. This method has been described by Steve Nison in the book "Japanese Candlestick Charting Techniques". "Three-Line Break" combines the qualities of the "tic-tac-toe" charts and the standard line charts or bars.

A version of the Stochastic located right in the price window.

The Standard Deviation Channel is plotted on the basis of the Linear Regression Trend.

Another version of determining the pivot point of the next day.

The ADXm indicator, unlike the traditional one, allows to see the positive and negative waves of the trend. The method for working with this indicator is the same as with the traditional one.

The indicator shows when to sell and when to buy. But it is not so simple.

Quite interesting method for plotting a channel. Despite the obvious plotting primitivism, it can be useful during the flat level analysis (for example, if you had no access to the terminal in a while, and it is necessary to assess the past events quickly).

The script fixes the chart by extending it with the consideration of the weekends and holidays.

The indicator displays the channel.

Displays the probable direction of the price movement in future.

Paints the bars in the color corresponding to the current trend. Based on ADX.

Displays the High and Low price for the specified number of bars.

The RSI based on the MA values. Not as twitchy.

The chart layout in X-points reversal.

This indicator is based on the first version of Sidus trading method. It shows market entry points.

The indicator is replotted when a vertical line is moved.

Splits the chart by horizontal levels after a specified period.

The Past regression deviated indicator.

The indicator plots trend lines based on the two last extremums.

The indicator displays the Baryshpolets channels.

The ASCTrend is the program that determines the most probable direction of the market along with the optimal stops. The primary purpose of the ASCTREND is to determine the trend objectively.

The market volatility indicator.

This version of the indicator combines 3 TrendStrength.

The indicator used to determine the global trend.

1...202122232425262728293031323334...102