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

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 indicator line sharply changes its direction at the critical moments. It helps to identify the beginning of the trend.

The indicator calculates the correlation of the currency pairs.

A simple EA. It plays in the opposite direction on the specified difference between Bid and MA. It is considerably risky but it has own advantage.

The indicator of the Keltner's channel.

A standard ADX indicator with time frame setting.

An indicator of group moving. It shows the difference between two MAs in a separate window.

Judging by the code of indicator, it calculates the difference between the maximum maximums and minimum minimums of prices of the candlesticks for the last 20 bars (parameter). The result is displayed in points.

This set of functions enables one to capture mouse events on your trading chart. One can simmulate buttons to trigger actions in the EA.

Extrapolator is a result of my long-term research in the area of the Timeseries Forecasting.

The EA uses the method of Burg's linear prediction that was taken from my indicator Extrapolator.mq4.

It shows where to buy and where to sell via the arrows. If a trend occurs then it will bring profit, if there is no trend, there will be no profit.

The algorithm of tuning (optimization) by two ranges with the two-level three-stage optimization is used in the EA.

Running an EA in a virtual account

Another Fibo indicator.

The EA is based on the permanent variation of the direction of the trades depending on the TakeProfit, StopLoss and TrailingStop levels. It demonstrates how to create a profitable trading system without any indicators, mathematical models and other wisdom

The calculation of the amount of lots through the specified percentage of free assets.

Colored ОsМА, and ОsМА that shows the divergences.

Another indicator that shows the tick chart, it would be useful for the pipsers. It has some features.

The divergence of RSI, the continuation of the divergence topic.

It arranges the stop levels depending on the price and ATR.

Alert indicator that allows to move the signal via the mouse.

The script for simultaneous placing of several orders by different symbols.

The indicator has the informative character.

You often have to move the pending order every hour in reference to the trend line and it embarasses you concerning your time. That's why this EA (semi-automated) was developed, it totally relieves from tracking the trend line and from moving the pending

We place two pending orders at the specified time and delete one of them when another one triggers.

Universal EA scheme to enable easy multiple strategy implementation into one EA

New version of famous and simple indicator created by Joe DiNapoli. It is different than rest of this type indicators, because it could count and display overbought and oversold levels.

Visual and Audio alerts when reversal or continuation candle patterns occur.

Functions for processing the orders of Spot currency pairs, Spot Gold and Spot Silver with error handling. OrderProcess() strengthened. New functions Lots, OrderCloseByRetracement, OrderModifyTS and OrderSendI added. Revision 2 has been used to run expert

Wrapper for reading and writing to MySQL

The indicator writes the history to the CSV file.

It is calculated as the moving average of the values of the internal bars strength.

The UploadExport script is a universal program tool. It is developed to ease the working of the analyst and the trader with regard to the daily routine actions of wave analysis using the ELWAVE program.

The WKBIBS indicator is a new generation oscillator with combined functions of two indicators WKB and IBS.

The authors say that this system can trade 24 hours a day producing a stable profit even for a novice trader.

This EA works in hangseng futures.

The «Madlen» lines are similar to the lines of support and resistance of horizontal or trend lines by their application.

You can take the guaranteed 50-60-100 pips if you enter from the flat.

Indicator Indexes_v4. It shows the motion pattern of two or more indexes on a single chart.

1...626364656667686970717273747576...101