Watch how to download trading robots for free
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 - 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

This indicator shows some Support/Resistance lines. The number of lines is variable (max 6). The more support lines are, the stronger "bull" will be expected. It also displays entry signals.These signals may be often disappointing, but sometimes good.

Display risk/reward ratio in the chart (UPDATED)

This indicator is another implementation of daily pivot points that allows the time for pivot point calculation to be advanced or delayed from the server time. It considers any Saturday trading to be Friday and any Sunday trading to be Monday.

This code of Parabolic SAR doesn't make the errors when working together with the same second indicator located on the same chart.

The indicator of peak price values.

The divergences of the Stochastic, the continuation of the divergences topic.

BO

Oscillator.

The digital filter of the price.

The indicator of 2 МАs of different currency pairs in one window.

The trend indicator RAVI (Range Action Verification Index) invented by T. Chand.

It shows the levels: SPREAD and STOPLEVEL - the minimum allowed levels of the StopLoss/TakeProfit in points. It informs if these values are changed.

A signal indicator based on the signal from AO and AC - the changing of the hystogram color.

It is a simple indicator that consists of four trend lines that show the distance between the trend line and the price via the numbers and that give the signals when the price goes for the specified number of points.

The indicator draws the arrows at the intersection of the MA and the RSI of the 50 level.

Another Avocational Indicator by Hidden Divergence of OsMA.

A scalper by parabolic and Fibonacci.

The indicator applies Hodrick-Prescott low-frequency filter to predict future prices

The indicatorless system based on the analysis of 4 previous bars.

A package of libraries with the file functions for working without the limitations in any directories.

The function of adduction of the price to the correct form for the given symbol by means of rounding or discarding the excess.

The different colored snippets of MA are shown on the current chart depending on the direction of the MA moving at on the chosen timeframes, or they're not drawn at all if the moving on the chosen timeframes is differently directed.

EA is setup to use higher time frames for trend identification and lower time frames for entries/exits.

Indicator of the morning flat.

It closes an order by the intersection of two MAs (5 and 7 on default). Read the full description...

The indicators that can display several larger timeframes, japanese candlesticks and Fibo levels on a single chart.

Buy Sell Customized With RefreshRates and Lots Manager

The indicator draws the charts of the euqity and balance basing on the minute history. In such a manner you get more authentic picture of maximum rises and drawdowns.

An indicator that allows to see the "larger" periods (for example, half-yearly or yearly).

A practical EA for the intraday trading from 10:00 till 19:00. It works well on 5M EURUSD. The expected payoff is 40..60 pips per week on the forward testing.

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.

1...626364656667686970717273747576...102